I have added the following themes to my res file: "Native", "Blue", 
"Chrome", "Dark", "Green"
I change the theme with the below code, and when I do, the theme changes 
just fine, but the title bar of the Frame ("Settings") disappears
protected void onSave() {
Preferences.set("theme", cmbTheme.getSelectedString());
Resources res = null;
try {
res = Resources.openLayered("/theme");
} catch (IOException e) {
MessageBox.OK("Error", e.toString());
}
if (res != null) {
UIManager.getInstance().setThemeProps(res.getTheme(Preferences.get("theme", 
"Native")));
Display.getInstance().getCurrent().refreshTheme();
}
}



<https://lh3.googleusercontent.com/-alBxLw3pYRQ/V5aCLiwdQII/AAAAAAAAEH8/E4ZoX6EFm1k6EQDIuJJZS0564vzP7dhjwCLcB/s1600/Screenshot%2Bfrom%2B2016-07-25%2B14-18-22.png>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ec0ba134-268e-4bc1-a146-6186379a0070%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to