#Programmatic Theme can't find StyleBoxFlat

3 messages · Page 1 of 1 (latest)

astral rune
#

I am looking to dynamically change the colour of all my StyleBoxFlats within a theme of my choosing so I can allow users/devs to change the colour of the base/accent colours in one spot.

Having gone over the documentation, I can't seem to pull up the theme and confirm it even exists. In the image you can see the theme element, as well as the StyleBoxFlat in question, but I can't seem to confirm the element exists (has_stylebox) to perform the changes in bg_color and border_color.

Any assistance is appreciated

willow fractal
#

The usage for has/set/get_stylebox is Theme.has_stylebox(the name of the stylebox, the class the theme is applied to)

#

So you want setting_window_theme.has_stylebox(&"pressed", &"Button")