using MaterialScreensUIKit and the following code:
     public void init(Object context) {
    try {
      theme = UIManager.initNamedTheme("/theme", "material");
    } catch (Exception e) {
    }

        // Enable Toolbar on all Forms by default
        Toolbar.setGlobalToolbar(true);
        
    }
    
    public void start() {
      if(current != null){
            current.show();
            return;
        }
        Form hi = new Form("Toolbar", new BoxLayout(BoxLayout.Y_AXIS));
        hi.getToolbar().addCommandToLeftBar("Native", null, (e) -> 
setTheme("Native"));
        hi.getToolbar().addCommandToRightBar("Material", null, (e) -> 
setTheme("material"));        
                 hi.getToolbar().addCommandToSideMenu("Test", null, (e) -> 
setTheme("test"));

        hi.show();
    }
    
    public void setTheme(String theme) {
Resources res = null;
try {
res = Resources.openLayered("/theme");
} catch (IOException e) {
Log.p(e.toString());
}
if (res != null) {
UIManager.getInstance().setThemeProps(res.getTheme(theme));
Display.getInstance().getCurrent().refreshTheme();
}

    }



shows no side menu.  

<https://lh3.googleusercontent.com/-v_00QtXRuv0/WeAVJJa7SxI/AAAAAAAAFr0/04pcX-9XvuYViGQ6uwxTLiPjWCdXvVYGgCLcBGAs/s1600/Screenshot%2Bfrom%2B2017-10-12%2B18-21-01.png>


and yes, I have the themes in my .res file

<https://lh3.googleusercontent.com/-KhJ32X-Lf-8/WeAUHIQinyI/AAAAAAAAFro/g2v3NCoHJmAXEANx8z3BN9I5v4wFzQTjQCLcBGAs/s1600/Screenshot%2Bfrom%2B2017-10-12%2B18-16-38.png>


However starting with "Native" (I renamed Theme1 from when the project was 
created) and then switch to the material theme it shows the hamburger icon, 
but then of course there are a ton of other artifacts.

Peter

-- 
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/c366d8b4-656f-4e7a-a686-69e95f3c7807%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to