![]() ![]() WxSysColourChangedEvent when the mode changes as I believe thatĪpplications are supposed to react to this dynamically, i.e. A new parameter for wxSystemSettings::HasFeature().Īnd finally I also think that it could be useful to send a To summarize, here are the various possibilities about what the newĥ. Another possibility wouldīe to add it to wxSystemSettings. The function into TLW or even wxWindow, rather than wxApp, because it'sĬlearly GUI-related and you typically do always have a window at handĪnyhow anywhere were you need to set the colours. One which doesn't, but I still wonder if it could make more sense to put it's impossible to have one TLW using it and another I'm not sure at all about where should this function go. The main question is about how the API should look like, however, because ![]() But please let me know if you know of any better way. This is what everybody else seems to be using, so I guess it should be fine Have with this approach is that it doesn't appear to be documented - but "AppleInterfaceStyle" value in the user defaults object. Implementing this function is apparently as simple as checking for Whether they shouldn't be used at all or reversed. Such as black or white that become totally inappropriate for the dark modeĪnd so having some IsUsingDarkMode() function would be helpful to check Idea, it's not uncommon to have some UI elements using hardcoded colours Under macOS 10.14+, as it turns out that, even though it's obviously a bad I think we need to have some function returning whether dark mode is used
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |