[solved] Theme - Style OptionButton Items
Asked Answered
M

4

0

Hi,

I'm a little in despair trying to create a theme for my settings menu. First I changed the font via Theme Override and it was immediately used for the button and the items. Now that the menu is slowly starting to grow I decided to create a theme.

As soon as I did that, the items of the drop-down button got this radio button in front and are displayed with the wrong font. Even if I delete the theme and go back using Override, all the items of the OptionButton are displayed as shown.

How can I change the style and font of the items?

I have gone through all the options of the theme that seemed even remotely useful, but nothing seems to change the items. What am I doing wrong?

I am grateful for any help.

Murtha answered 2/2, 2022 at 14:55 Comment(0)
C
0

You may need to style any components used by this control.

I learned this when using a spin-box I think.

When instantiated the control itself may instance other controls to compose its function.

the fastest way to determine this is to inspect the scene while debugging (remote scene tree)

Charlatan answered 2/2, 2022 at 17:24 Comment(0)
W
0

The theme items you need to change are PopupMenu, as an OptionButton (like a MenuButton) will display a PopupMenu when clicked.

Wiredraw answered 2/2, 2022 at 19:45 Comment(0)
M
0

The PopupMenu item was exactly what I was looking for - or should have been looking for, but ignored it because I associated it exclusively with the MenuButton item. Thank you very much.

Murtha answered 3/2, 2022 at 8:47 Comment(0)
A
0

Wiredraw Thank you very much, it was exactly what I was looking for!

Abiding answered 14/12, 2023 at 0:26 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.