Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current way of determining GTK_THEME_VARIANT (and based on that APPIMAGE_GTK_THEME) is to use the gtk-theme setting:
GTK_THEME_VARIANT
APPIMAGE_GTK_THEME
gtk-theme
https://github.com/linuxdeploy/linuxdeploy-plugin-gtk/blob/1f054c88fd3f0d9ee46b5d5079b4a3b31d4c051e/linuxdeploy-plugin-gtk.sh#L211-212
On my (Ubuntu 22.10) system,
gsettings get org.gnome.desktop.interface gtk-theme
returns Yaru-purple, which doesn't give any indication if I use dark mode or not, whereas
Yaru-purple
gsettings get org.gnome.desktop.interface color-scheme
returns prefer-dark which is what seems relevant.
prefer-dark
So I would suggest replacing gtk-theme by color-scheme on that line. Or why is the current version preferable?
color-scheme
The text was updated successfully, but these errors were encountered:
Use color-scheme instead of gtk-theme to check for light/dark theme
c630c41
Fix #48
Good idea. #49 opened.
Sorry, something went wrong.
fb06e22
Successfully merging a pull request may close this issue.
The current way of determining
GTK_THEME_VARIANT
(and based on thatAPPIMAGE_GTK_THEME
) is to use thegtk-theme
setting:https://github.com/linuxdeploy/linuxdeploy-plugin-gtk/blob/1f054c88fd3f0d9ee46b5d5079b4a3b31d4c051e/linuxdeploy-plugin-gtk.sh#L211-212
On my (Ubuntu 22.10) system,
returns
Yaru-purple
, which doesn't give any indication if I use dark mode or not, whereasreturns
prefer-dark
which is what seems relevant.So I would suggest replacing
gtk-theme
bycolor-scheme
on that line. Or why is the current version preferable?The text was updated successfully, but these errors were encountered: