Linux: handle dark system themes nicely

yuzu's default theme doesn't specify everything, which is fine for
windows, but in linux anything unspecified is set to the users theme.

Symptoms of this are that a linux user with a dark theme won't think
to change the theme to a dark theme when first using yuzu

Idea here is to try and support arbitrary themes on linux.

preliminary work on a "default_dark" theme, used only as overlay
for any themes that are measured to be dark mode.

Other work done:

FreeDesktop standard icon names:
plus -> list-add
delete refresh, we use view-refresh

remove duplicated icons for qdarkstyle_midnight_blue
referencing icon aliases in the qrc files is the way to go

Note:
Dynamic style changing doesn't appear to work with AppImage
This commit is contained in:
Kyle K 2022-07-28 07:50:20 -07:00
parent 1f7e62e86e
commit b51db12567
32 changed files with 819 additions and 35 deletions

View file

@ -41,20 +41,18 @@ Files: dist/qt_themes/*/icons/16x16/connected.png
dist/qt_themes/*/icons/48x48/sd_card.png
dist/qt_themes/*/icons/48x48/star.png
dist/qt_themes/*/icons/256x256/plus_folder.png
dist/qt_themes/colorful/icons/48x48/plus.png
dist/qt_themes/colorful/icons/48x48/list-add.png
dist/qt_themes/default/icons/16x16/checked.png
dist/qt_themes/default/icons/16x16/failed.png
Copyright: https://icons8.com
License: CC-BY-ND-3.0
Files: dist/qt_themes/*/icons/16x16/refresh.png
dist/qt_themes/*/icons/16x16/view-refresh.png
Files: dist/qt_themes/*/icons/16x16/view-refresh.png
Copyright: Google, Inc.
License: Apache-2.0
Files: dist/qt_themes/default/icons/48x48/plus.png
dist/qt_themes/qdarkstyle/icons/48x48/plus.png
dist/qt_themes/qdarkstyle_midnight_blue/icons/48x48/plus.png
Files: dist/qt_themes/default/icons/48x48/list-add.png
dist/qt_themes/qdarkstyle/icons/48x48/list-add.png
Copyright: BreadFish64
License: CC0-1.0