Is there a way to change the text size from the values argument within Spinner? I've found that I can change the height and width of the dropdown boxes and change the size of the "label" (Layer). But is there a way to change the text size of both heads and all?
Spinner:
id: spinner_lry
text: 'Layer'
values:['heads', 'all']
size_hint_y: None
height: 50
font_size: 20
Yes, the options in a
Spinnerare displayed using theSpinnerOptionclass (just aButton) by default. You can set a different class to display the options usingoption_clsatribute, and specify thefont_sizefor that class, like this in yourkv:If you want the options to inherit the
font_sizeof theSpinner, you can define a newSpinnerclass extension:The new
on_font_size()method adjust thefont_sizeof the options whenever thefont_sizeofMpSpinnerchanges. You also need to adjust yourkv:This uses the new
MySpinnerclass and theMyOptionclass now adjusts itsheightbased on itstexture_size.