1
0
Fork 0
forked from suyu/suyu
suyu/dist
flodavid 0b2409d1bd Automatic dark theme switching for Windows and Linux
- Windows dark theme uses "fusion" style, which is better suited, but has minor differences
- Improve OS theme detection
  - Linux:
    - Listen for OS color schemes changes on D-Bus
    - Read OS scheme for D-Bus. Fallback with gsettings, reading org.gnome.desktop.interface.
      First "color-scheme" key, then "gtk-theme". Finally, fallback to checking window palette
  - Windows (dark mode detection was not implemented before):
    - Force dark palette when OS uses dark mode by setting QT_QPA_PLATFORM to "windows:darkmode=2"
    - This enables to detect dark mode by checking the window palette
- Improve theming capabilites:
  - Linux uses custom palette when dark mode is detected.
    By using palette(xxx) in .qss files, there is no need to create a dark stylesheet
  - Allow themes to have stylesheet variants, dark.qss and light.qss
  - If current mode is dark, use dark icons for controller and keyboard applets
  - Add "dark" property to RendererStatusBarButton and GPUStatusBarButton, set to true when dark mode is used.
    Allows to have distinct colors for GPU API and accuracy buttons depending on dark mode or not
  - Enable all themes to have dark icon alternatives, not just "default" and "colorful"
    - If dark mode, icons are loaded from the directory "THEME-NAME_dark/icons"
  - If current mode is dark, use dark icons for controller and keyboard applets
  - Only qdarkstyle, qdarkstyle_midnight_blue, colorful_dark and
    colorful_midnight_blue used elements specific to dark themes
2024-04-03 21:06:48 +02:00
..
compatibility_list chore: make yuzu REUSE compliant 2022-07-27 12:53:49 +02:00
english_plurals Full rebrand 2024-03-08 09:06:48 +00:00
icons Revert "Merge branch 'master' into 'dev'" 2024-03-06 05:26:38 +00:00
languages Added requirement for firmware upon game boot 2024-03-11 09:47:52 +00:00
qt_themes Automatic dark theme switching for Windows and Linux 2024-04-03 21:06:48 +02:00
readme Add missing REUSE files and directories 2024-03-24 20:27:11 -03:00
72-suyu-input.rules license-fix (#31) 2024-03-23 22:58:07 -03:00
icns_generator.sh Error handling for the icns generator script 2024-03-19 15:58:16 +00:00
org.suyu_emu.suyu.desktop license-fix (#31) 2024-03-23 22:58:07 -03:00
org.suyu_emu.suyu.metainfo.xml license-fix (#31) 2024-03-23 22:58:07 -03:00
org.suyu_emu.suyu.xml license-fix (#31) 2024-03-23 22:58:07 -03:00
suyu.bmp Replace yuzu.bmp references 2024-03-06 03:51:23 -05:00
suyu.icns Updating moltenVK and macOS icon 2024-03-13 13:00:31 +00:00
suyu.ico Changed app window name, logo and other references related 2024-03-06 11:19:34 +01:00
suyu.manifest license-fix (#31) 2024-03-23 22:58:07 -03:00
suyu.svg Changed app window name, logo and other references related 2024-03-06 11:19:34 +01:00