-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix settings app system theme preview #4931
Fix settings app system theme preview #4931
Conversation
With exporting this internally, the settings app can access it and provide a more accurate preview.
…fault” is selected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :)
XDG files should not be included in mobile. For non-Android non-IOS mobile builds (e.g., running tests with `-tags mobile`) the `app_other.go` has to be included, to provide `OpenURL` and `SendNotification`. The whole scheme has clearly evolved over time. Might be useful to separate the different functionalities and get a more clear scheme in the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On this version the system default preview always seems to be dark?
Compiles on Darwin, iOS, Android, WASM - but does not seem to get the preview right on my macOS machine |
You are right, seems I’ve broken something in between. |
Found and fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good thanks, I just got stuck on naming.
themeNameDark = "dark" | ||
themeNameLight = "light" | ||
themeNameSystemLabel = "system default" | ||
themeNameSystemSettings = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was a little confused by the naming - would themeNameSystem
be OK? It feels like that matches the other keys, leaving the Label
variant just used for label purposes?
Description:
The settings app always shows a dark preview for “system default” no matter what the system actually said.
This PR moves the
app.defaultVariant()
tointernal/app.DefaultVariant()
and thus gives the settings app access to it.Note that someone need to check that this still compiles for all platforms.
Checklist: