Codename One - Can't fix CheckBox style - styles

I used the "flat blue" theme on my app and when I tried it on the phone, the checkboxes looked diferent.
I checked every Style Status and the one that matches the phone style is the "disabled" style, although my checkboxes are not disabled.
Thinking I was making a mistake, I edited the "disabled style" to make it look like the "unselected style" but it still looks bad.
What do you think?

I see an issue there. Its related to recent changes we added for icon fonts where we migrated the old check and radio button icons to use font icons: http://www.codenameone.com/blog/material-icons-background-music-geofencing-gradle.html
This should be fixed in the next server update.

Related

stackoverflow: save theme preference

Suddenly today stackoverflow looks like this:
The blue color is undesired.
I tried to change the theme under settings. The theme is correctly applied, but I don't see a way to save it: As soon as I leave the settings page, the blue colors are back.
What can I do to get to permanently revert to the default look?
UPDATE
Could this be a virus? Heres' what I get on Safari:
I'm on MacOS Monterey. The first screenshot is on Firefox, the second screenshot on Safari. Chrome also gives different colors.
On the "FILTERS" bar at the bottom of your screen, click on the "circle with slash" icon. It will revert your screen to the default view.
Check the date. It's April fool's day.
The way you fix it is you click on your profile picture in the top, then you go to settings, and then you can choose your background. It probably isn't a virus, but I'm not sure.

How do I set "StyleBoxEmpty" on buttons in Godot?

I'm trying to remove the blue box that appears around focused buttons in Godot. I saw here that it can be done with "StyleBoxEmpty", but the example picture is a broken link. I have looked through all the node properties, but I cannot find it. Can someone clarify how to enable this property?
Okay, I figured it out...
To remove the unwanted blue "style box" border around focused buttons, do the following:
In the inspector for the button node, scroll down until you find "Custom Styles", expand.
Under the focus property, set the null value to StyleBoxEmpty.
Done.

Codename one form appearance changed

Is there any change in CN1 default theme?
Here is my form what it was looking prior on the phone
(it has list item background and square button by default)
Then all of a sudden from last 2 days, without changing anything in themes.res from my side, list item background and button shape have disappeared & button caption became all caps. As per this
This happened across the whole app and all of my 4 apps. Please may I know is the change going to be revert from the CN1 side or this is an enhancement?
I think it's explained in this blog post:
https://www.codenameone.com/blog/pixel-perfect-material-buttons.html

Is there a way to change some "special" GUI colors in eclipse?

I have on Linux/KDE a installed version of eclipse Mars.2. But there are strong problems with colors. So there is no different between a activated toolbar button and a inactive toolbar button. At example the "Link with editor" button of the "Project Explorer" view has exactly the same background color if the button is selected or not:
Another thing is that I cannot see if a checkbox or radio button is selected or not. It seems that the foreground color for the check/radio box selections is also identical to the background color. So there is in many configuration views no way to find out what's currently selected and wath's not. In the next screenshot at least one of the "Open mode" radio button must be selected (I assume it's "Double click" button):
Note also that the colors are only in eclipse wrong. In other (native) KDE applications I don't have these effects (at example the foreground of check boxes/radio buttons are black - like I have it expected). Also play around with the color settings in KDE "Application Appearance" has no effects ...
How can I change the colors of these stuff?
There is an Eclipse plugin that helps you import downloaded themes from the online marketplace (themes are free).
This is where you can find it: http://eclipsecolorthemes.org/
You may choose whatever eclipse theme fits your needs!
Good luch!
Ok. Found the solution for my problem on following site:
http://www.jroller.com/andyl/entry/mars_on_linux
Mars is the first eclipse version which uses GTK3 (instead of GTK2 like eclipse versions before 4.5). And on the side above Andrey Loskutov wrotes that may be also the GTK theme (widget style) can be also the problem. The Widget style "oxygen-gtk" should be extremly buggy! After changing the widget style (to now "Adwaida") the problems are gone :-)
You can change the Widget style in KDE by opening in the KDE settings: "Application Appearance" and "GTK+ Appearance".

How do I get action buttons with custom layouts to be styled like standard action buttons in Android 3.0+

I'm having a bit of trouble with custom action buttons in the honeycomb+ action bar. I'm adding a menu item that uses a custom layout (using the android:actionLayout attribute). The reason for the custom layout is that I want a button that has two lines of text that can be updated dynamically.
However, I still want this action button to operate like the other standard buttons. By this I mean that the background fades in when the button is selected, and fades out again if it is unselected, all in the style of the platform (the colour seems to differ between different platforms/devices - I've seen both grey and blue versions)
I've tried using the action button style for the custom layout:
style="#android:style/Widget.ActionButton"
and I've tried setting the background for the custom layout to:
android:background="?android:attr/actionBarItemBackground"
but to no avail, and I'm kind of trying things fairly randomly as I can't find any documentation on how to do this (or if indeed it is even possible).
I know I can approximate this behaviour myself by setting the background, but it would be nice if I could just set the item to behave like a normal action button in terms of how it appears when the user interacts with it.
Anyone have any ideas?
Thanks in advance!
Ah, sorry to answer my own question but I have just stumbled upon a way to do this. I was halfway there - you need your custom layout's style to inherit from ActionButton:
#android:style/Widget.ActionButton
but then you also need to make the layout clickable:
android:clickable="true"
for it to work. Using both of these makes the custom action buttons look just like the regular ones when you press them.
Hopefully that'll help someone trying to do this!

Resources