Commit Graph

28 Commits

Author SHA1 Message Date
flodavid f90d259bc1 Add dark mode configuration setting in UI tab
- Allows to choose "Auto", "Always On" or "Always Off"
  - Dark mode options are only shown if the style does not support theme
- If Auto is chosen, value is retrieved from OS
  - On Windows, the application needs a restart to apply the settings
- Use the default dark palette for Windows, like on Linux
2024-03-27 12:48:53 +01:00
flodavid df9dea3f3d Rework themes to easily use light/dark palette, using only different icons
- Renamed themes:
  - "colorful" to "default" and "colorful_dark" to "default_dark"
  - "default" to "monochrome" and "default_dark" to "monochrome_dark"
  - "colorful_midnight_blue" to "qdarkstyle_midnight_blue"
  - "qdarkstyle_midnight_blue" to "qdarkstyle_midnight_blue_monochrome"
  - qdarkstyle is renamed from "Dark" to "Mine Shaft" in the UI
- default and monochrome themes all use the same qss stylesheet
- Remove the ability to select "default_dark" directly
    - Default has better support for light and dark
    - Controller and Keyboard applets icons and style adapt to dark mode
- Add "qdarkstyle_monochrome" theme
- Remove duplicated icon files
2024-03-27 12:38:37 +01:00
flodavid faa76d372c 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-03-27 12:34:33 +01:00
flodavid 6e904b602c Load custom Qt themes from yuzu data directory
- Directory is qt_themes, each theme must be in one folder
    - It should contain a file "style.qss"
    - It may contain an "icons" sub-directory, to override included icons
      (with files like mytheme/icons/colorful/48x48/star.png for example)
    - Directories ending by "_dark" are reserved for dark variant icons.
      They are not listed as themes in the UI.
- If theme directory contains "dark" or "midnight", theme will be considered dark
2024-03-25 13:25:36 +01:00
suyudontsueme 907f9aa6f2
Rewrite missing keys dialog to be more descriptive
Closes #30
2024-03-24 18:59:04 -03:00
SylverDiscord51 1648d189d3
license-fix (#31)
Co-authored-by: palfaiate <syl.paulo.alfaiate@gmail.com>
Co-authored-by: SylverDiscord51 <p71468162@gmail.com>
Co-committed-by: SylverDiscord51 <p71468162@gmail.com>
2024-03-23 22:58:07 -03:00
Fijxu 649a90ff40
ci: Use different runner label for Codespell and Format Verification 2024-03-23 16:39:17 -03:00
Exverge c6d34f6d77
fix: compile errors from #11 2024-03-23 12:23:00 -04:00
nullequal 15ca12c0ec Allow NRO files to skip FW and keys' presence checks (#11)
doing an old suggestion from the now-deleted "emulator-suggestions" channel on the discord
Co-authored-by: nullequal <nullequal@noreply.localhost>
Co-committed-by: nullequal <nullequal@noreply.localhost>
2024-03-23 16:31:28 +01:00
Exverge 259e65287f
Fix typo in encryption keys 2024-03-23 00:24:42 -04:00
Levi Akatsuki e0ff7d0a6e Fixed broken code in dev branch 2024-03-18 22:13:59 +00:00
Paulo Alfaiate e9eb3f3799 Removing Warning 2024-03-18 18:29:11 +00:00
Levi Akatsuki 8755d2bad4 Require both keys to use the emulator 2024-03-16 15:57:32 +00:00
Akatsuki Levi b98bd24d6a
feat: Changed folders in list to be a toggleable option 2024-03-15 20:36:46 -03:00
Akatsuki Levi bd9f1695cf
feat: Reduced clutter on game list 2024-03-15 20:36:41 -03:00
Akatsuki Levi 22f8b858a2
feat: Removed telemetry 2024-03-15 20:36:36 -03:00
ddutchie 5d8f3f7cb1 Revert "Quality-of-Life Improvements" 2024-03-15 22:26:16 +00:00
Levi Akatsuki e1538413e9 Quality-of-Life Improvements 2024-03-15 21:48:09 +00:00
JuanCStar 113b014b08 chore: re-enabled web service 2024-03-12 10:51:26 +01:00
JuanCStar de83c5e6a6 fix: clang format 2024-03-11 11:00:10 +01:00
MushrooomSooop 9afd74abde Added requirement for firmware upon game boot 2024-03-11 09:47:52 +00:00
ddutchie bd5bdbe6c7 Add -ql argument to launch QLaunch at startup 2024-03-10 23:20:48 +00:00
niansa 16e19b0b3c Implement option to start QLaunch from Tools menu 2024-03-09 01:28:33 +00:00
niansa 362f2047b4 Port changes from Early Access 2024-03-08 22:44:03 +00:00
niansa 539849b4d6 Fixed formatting 2024-03-08 20:38:28 +01:00
JuanCStar 88b901a24e Full rebrand 2024-03-08 09:06:48 +00:00
Crimson Hawk cdbdf63ebe Revert "Merge branch 'master' into 'dev'"
This reverts merge request !17
2024-03-06 05:26:38 +00:00
AMA2581 5720814b13 modifying all the files to match the app 2024-03-06 00:19:07 +03:30
Renamed from src/yuzu/main.cpp (Browse further)