yuzu/dist/qt_themes
flodavid 91d8666bb1 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-02-22 15:25:58 +01:00
..
colorful general: compress png images 2022-10-17 15:08:07 +01:00
colorful_dark UI: move icons from default into colorful theme. 2022-09-15 23:00:49 -07:00
colorful_midnight_blue Moving Icons away from CC BY-ND 3.0 for FOSS packaging purposes 2022-08-14 06:45:40 -07:00
default Automatic dark theme switching for Windows and Linux 2024-02-22 15:25:58 +01:00
default_dark Updated padded style 2023-08-25 10:29:23 -07:00
qdarkstyle Updated padded style 2023-08-25 10:29:23 -07:00
qdarkstyle_midnight_blue Merge pull request #11144 from flodavid/master 2023-10-11 09:23:52 -04:00