Font sizes in drop-down menus not updating with Scale Factor and Custom LAF
-
I've been customizing the LAF thanks to the amazing addition that @Christoph-Hart gave us in the last few updates and noticed just one little bug. Here's the interface with the scale factor set to 100%:
And here it is when set to 125%:
The main font got larger, as it should, but the one in the drop-down list didn't.
Christoph, would it be possible to fix that?
-
The right-click popup doesn’t resize as well, but I think it’s the same class in the code
-
Yeah I noticed that too at some point, I remember there was some discussion about this in the JUCE forum too, I'll see what I can do (IIRC it was a setting that you have to turn on, but then it breaks context menus on iOS AUv3 plugins...)
-
@Christoph-Hart I'm not releasing the plugins for iOS so if there's a quick fix for this that wouldn't break things for other users, I'm all ears!
-
HI_LookAndFeels.h, line 300:
bool shouldPopupMenuScaleWithTargetComponent(const PopupMenu::Options& /*options*/) override { return false; };
I'll leave it as riddle what to do in order to scale the popup menu with the target component :)
-
@Christoph-Hart You're a riddle master, thank you!