Commit Graph

23983 Commits (9bba778d1540dddb6e46973731e6bd564f43a25b)

Author SHA1 Message Date
flodavid 9bba778d15 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
2 years ago
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
2 years ago
flodavid c889f1bd36 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
2 years ago
Nikilite a3c8b29607
Updated the links for the Info Popup 2 years ago
Lucas Clemente Vella 4015b1d397 Solves warning about GuestMemory having internal linkage.
It is very hard to explain why this public interface class was defined
in an anonymous namespace inside a header file.
2 years ago
voidanix d3f67d1e9c Fix GCC builds with Debug build type
When compiling with -DCMAKE_BUILD_TYPE=Debug, GCC would (correctly) fail to
compile intrinsics in stb and host1x due to lack of optimizations.

Sadly, the compilation error given is bogus and Clang completing the builds
without issues does raise some eyebrows.

Therefore, force optimizations for the offending files under GCC when
creating Debug builds.

Signed-off-by: voidanix <voidanix@keyedlimepie.org>
2 years ago
Crimson-Hawk c25bcb6083 Merge branch 'dev' into dev 2 years ago
Belal Ashraf 7215ac9543 Fix NROs crashing and loading infinitely 2 years ago
Exverge 39eea71e62
fix: resume application when library applets are closed 2 years ago
Lucas Clemente Vella 36ede797f3 Vulkan validation error fix.
Different image usage flags between image creation and image view
creation.
2 years ago
Fijxu ce8f3e802e
Use proper SPDX-FileCopyrightText for Sudachi. Corrects db647d915d 2 years ago
ilonachan 040893da00 formatting 2 years ago
Kelebek1 876d7f90b6 Add option to log synchronously, add tooltip to log filter. 2 years ago
Lucas Clemente Vella db647d915d Including sudachi Emulator Project as a copyright owner.
To the files where sudachi changes were ported into in the parent
commit.
2 years ago
Jarrod Norwell b3e989343d Added support for Princess Peach: Showtime! 2 years ago
ivchodev 09578d522b revert 925ce2fad3
Reverting potentially plagiarized code. The developer team did not sign off on this commit.
2 years ago
ivchodev 9b77efe2b4 revert eb306775c6
revert fix clong format
2 years ago
ivchodev 224cac988e revert fd1ec51496
revert try 2 fix clang
2 years ago
ivchodev 43c1a4c643 revert 77e9b7b59b
revert try 3 fixing clang omfg its just a space
2 years ago
Crimson-Hawk 77e9b7b59b
try 3 fixing clang omfg its just a space 2 years ago
Crimson-Hawk fd1ec51496
try 2 fix clang 2 years ago
Crimson-Hawk eb306775c6
fix clong format 2 years ago
Crimson-Hawk 925ce2fad3
preliminary fix to the peach game 2 years ago
XForYouX 1f2bbfdf6d Increase Limit ( FSR Sharp , AUDIO ) Android
Increase Limit FSR Sharp 
( 0 - 200 )
Increase Limit Audio ( 0-120 )
2 years ago
XForYouX 9b3fa0d3da Add 32:9 Android
Fix Issue Aspec Ratio For Android
2 years ago
XForYouX 77042ae6f7 Add 32:9 Android
This Fix Issue Aspec Ratio For Android
2 years ago
Exverge f033d7e1e9 Merge branch 'dev' into dev-fork 2 years ago
zqpvr01 ba411a17e0 change application id
when we enable discord rpc for use this will change the yuzu icon to suyu.
2 years ago
Fijxu 201bff1731
Add missing REUSE files and directories 2 years ago
suyudontsueme 907f9aa6f2
Rewrite missing keys dialog to be more descriptive
Closes #30
2 years ago
Exverge 77813b232e We (don’t) own gradle. 2 years ago
RadsammyT 2857540817
resolve merge conflict in .forgejo/workflows/verify.yml
i hope to fucking god this works
2 years ago
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>
2 years ago
Exverge c1a1731324
Revert "Add suyu copyright notice in files with modifications" 2 years ago
Exverge 4106a59d8f
Add suyu copyright notice in files with modifications
Would've been nice to know [skip ci] was on Forgejo >1.21 only
2 years ago
Exverge 82e47a196e
Fix GPL copyright notice in Android [skip ci]
I'll add the relevant "2024 suyu Emulator" notices soon
2 years ago
RadsammyT ede4f2d8f4
PR#3 review: remove <filename> from --help + formatting changes
ran clang-format on suyu_cmd/suyu.cpp
and removed one blank line on library_applet_accessor.cpp so formatting CI doesn't complain
2 years ago
Fijxu cb9f9da7b6 Merge branch 'dev' into dev-fork 2 years ago
Fijxu 649a90ff40
ci: Use different runner label for Codespell and Format Verification 2 years ago
RadsammyT bce23c24e0
PR#3 review: fix -l arg breaking
because optarg goes NULL when encountering an optional argument, so I have to do this instead to get the argument. See case 'p'.
2 years ago
Exverge c6d34f6d77
fix: compile errors from #11 2 years ago
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>
2 years ago
Crimson-Hawk 18ba0f1345
Revert "Merge branch 'XForYouX-dev' into dev"
this broke android build

This reverts commit 16841915fd, reversing
changes made to c7d2f08de8.
2 years ago
RadsammyT caa93cda48
PR#3 review: (hopefully) unfuck formatting changes
squash: re-deanonymize AppletIdToProgramId()
2 years ago
RadsammyT f9c3b8dc75
PR#3 review: -l's arg is now optional 2 years ago
Exverge 259e65287f
Fix typo in encryption keys 2 years ago
RadsammyT 1ed34b1e47 suyu_cmd: allow launching of applets by supplying FrontendAppletParameters as an arg
Based off of a patch i saved before I nuked my local copy of the suyu repo from gitlab and replaced it with the one local-hosted
2 years ago
Fijxu e509698a9a
ci: Linux builds ready to use. 2 years ago
XForYouX 52ed4ef9aa Add 32:9 For Android
Add 32:9 For Android Fix Issue Aspec Ratio
2 years ago
XForYouX 120296beaf Add 32:9 For Android
32:9 For Android Fix Issue Aspce Ratio
2 years ago