rainer
rainer

Reputation: 3411

Codename One LeftBarCommand Text Size not Changing

In my application I am using a command added to the top left bar and I am trying to change the font size.

What is generally a simple task is causing quite a bit of labor and I still couldn't figure it out.

In the theme builder, I have tried to change the font size in the default settings (changes the color, but not the size) and accessing several component UIIDs, including Command, SideCommand, ToolBar and others, all to no avail.

Command also does not give give direct access to the styles.

How can I change the font size of the command? Is there a special UIID?

    Command left = new Command("Done") {            
        @Override
        public void actionPerformed(ActionEvent evt) {
            confirmationDialog();
        }             
    };            

    tb.addCommandToLeftBar(left); 

Upvotes: 3

Views: 44

Answers (1)

Shai Almog
Shai Almog

Reputation: 52770

You can customize the command UIID by:

left.putClientProperty("uiid", "MyUIID");

In the case of title commands they have the UIID TitleCommand.

Upvotes: 3

Related Questions