Commit graph

97 commits

Author SHA1 Message Date
Nayla Hanegan
75a9451d0b Merge branch 'master' of https://github.com/dolphin-emu/dolphin into dolphin-emu-maste2r 2024-12-24 20:47:03 -05:00
mitaclaw
12f8b11452 MainWindow: Avoid Global System Accessor 2024-10-24 21:41:35 -07:00
Nayla Hanegan
4bd7d38a77 Merge branch 'master' of https://github.com/dolphin-emu/dolphin into dolphin-emu-master 2024-10-23 14:29:49 -04:00
robxnano
5e8f5afb52
DolphinQt: Remove unneeded Win32 code
Dolphin already uses QStyleHints::colorScheme to detect dark mode,
so this code is now redundant.
2024-09-27 10:41:01 +01:00
Nayla Hanegan
2670ec26f6 auto dark mode restored, fix merging 2024-08-23 14:48:50 -04:00
Nayla Hanegan
7e6752e8fc Merge branch 'master' of https://github.com/dolphin-emu/dolphin into dolphin-emu-master 2024-08-23 13:38:17 -04:00
TryTwo
81fc60f888 MainWindow: Remove Show() and redistribute its logic to other places.
bugfix:  SetQWidgetWindowDecorations(this); not called before show() for Windows darkmode titlebars.

The actual call to (QWidget) show() needed to come sooner. Show() was originally left alone, but with other checks needing to move with (QWidget) show(), this function became less useful.  Show()  was originally created to fix the render widget appearing behind the main window, but that appears to work fine in this iteration.
2024-06-23 10:49:14 -07:00
Nayla Hanegan
d07549505a Revert "meh"
This reverts commit 9d9204430e.
2024-05-23 17:35:22 -04:00
Nayla Hanegan
b4cc0fc9ca Revert "More work on theming"
This reverts commit cc775770bf.
2024-05-23 17:34:15 -04:00
Nayla Hanegan
cc775770bf More work on theming 2024-05-22 23:11:11 -04:00
Nayla Hanegan
9d9204430e meh 2024-05-22 20:08:43 -04:00
Nayla Hanegan
98c174edc4 meh 2024-05-12 02:17:59 -04:00
mitaclaw
73f9904f2a Core: Remove RunAsCPUThread
It's a fine function, but CPUThreadGuard is more vogue. Also, its potential for being confused with RunOnCPUThread will not be missed.
2024-03-23 03:33:26 -07:00
mitaclaw
f09b71582e Core: Avoid (Some) Global System Accessor 2024-03-18 01:35:42 -07:00
Nayla Hanegan
394228990a
commit changes 2024-01-04 19:42:18 -05:00
Nayla Hanegan
c18016e795 Merge branch 'master' of https://github.com/dolphin-emu/dolphin into dolphin-emu-master 2023-12-25 20:08:08 -05:00
Admiral H. Curtiss
6d585b6eb6
DolphinQt/Settings: Split setting of the user style into two functions.
This makes it so that if you just want to reload the current style (eg. on program start, or in response to a system event), you don't need to know the name of the currently selected user style. It's also more consistent with the way the 'userstyle/enabled' flag works.
2023-11-05 12:58:11 +01:00
Admiral H. Curtiss
887b07af71
DolphinQt: Set the theme before constructing the MainWindow, some panels that explicitly request palette colors get the wrong colors otherwise. 2023-08-16 21:13:36 -04:00
Admiral H. Curtiss
84861e7514
DolphinQt: Set the application palette to a matching one when the Windows dark theme is in use. 2023-08-16 21:13:36 -04:00
Admiral H. Curtiss
94c954ce17
DolphinQt: Switch dark/light theme when Windows theme changes. 2023-08-16 21:13:35 -04:00
Admiral H. Curtiss
0a73df6b7b
DolphinQt: Set window decorations for all top-level QWidgets. 2023-08-16 21:13:35 -04:00
Admiral H. Curtiss
1983af9fb1
DolphinQt: On Windows, detect whether the system is using a dark theme.
Co-authored-by: FearlessTobi <thm.frey@gmail.com>
2023-08-16 21:13:33 -04:00
Admiral H. Curtiss
c2e29153e9
DolphinQt: Set the theme before constructing the MainWindow, some panels that explicitly request palette colors get the wrong colors otherwise. 2023-08-12 16:54:54 +02:00
Admiral H. Curtiss
d725aaa5bc
DolphinQt: Set the application palette to a matching one when the Windows dark theme is in use. 2023-08-12 16:54:54 +02:00
Admiral H. Curtiss
250d5f55de
DolphinQt: Switch dark/light theme when Windows theme changes. 2023-08-12 16:54:54 +02:00
Admiral H. Curtiss
e2fb8fab2f
DolphinQt: Set window decorations for all top-level QWidgets. 2023-08-12 16:54:54 +02:00
Admiral H. Curtiss
5d33f2abd1
DolphinQt: On Windows, detect whether the system is using a dark theme.
Co-authored-by: FearlessTobi <thm.frey@gmail.com>
2023-08-12 16:54:53 +02:00
Nayla Hanegan
206b2ab5c3
fusion style for windows for dark mode 2023-06-30 20:02:18 -04:00
Nayla Hanegan
e575a7a3d5
improve auto updater now just needs 1 exe 2023-06-23 15:25:44 -04:00
Nayla Hanegan
6280ce45a7
Merge branch 'master' of https://github.com/dolphin-emu/dolphin into dolphin-emu-master 2023-06-23 12:58:43 -04:00
Admiral H. Curtiss
b3c9f49cbe
Core: Assert that only the Host thread may call PauseAndLock(). 2023-06-02 18:51:43 +02:00
Shawn Hoffman
ca49f49037 Revert "Revert "DolphinQt: use default dpi rounding mode (passthrough)""
This reverts commit 20e14aab06.
2023-05-29 11:47:29 -07:00
Nayla Hanegan
871da4e307
Merge #15 2023-05-26 15:52:58 -04:00
Lioncash
954afd81ec StringUtil: Move CommandLineToUtf8Argv() into Common namespace 2023-05-16 14:23:21 -04:00
JosJuice
20e14aab06 Revert "DolphinQt: use default dpi rounding mode (passthrough)"
This reverts commit cfe3683668.

On Windows systems with 125% DPI scaling, this was causing both icons
and the OSD to be upscaled by 25% using nearest neighbor scaling, which
looks really bad. shuffle2 has said that this will be improved later,
but we should revert it for now for the sake of the upcoming beta build.
2023-05-02 20:18:56 +02:00
Shawn Hoffman
b00e898aff DolphinQt: fix handling of Qt-specific cmdline args
QApplication should parse and remove and args it recognizes
before dolphin starts inspecting the args.
This allows using e.g. -style <style> on the commandline.
2023-04-25 10:50:49 -07:00
Shawn Hoffman
cfe3683668 DolphinQt: use default dpi rounding mode (passthrough) 2023-04-23 11:56:39 -07:00
Nayla
daf9812378
Update Main.cpp 2023-04-21 23:26:04 -04:00
Nayla
f14e00f6bb
Rename Main.cppf to Main.cpp 2023-04-21 21:43:39 -04:00
Nayla
d3773ae25c
Update and rename Main.cpp to Main.cppf 2023-04-21 21:42:27 -04:00
Nayla
61a7605673
Update Main.cpp 2023-04-21 19:31:20 -04:00
Nayla
fe441ed524
Update Main.cpp 2023-04-21 18:52:06 -04:00
Nayla
10e2fa331d
Update Main.cpp 2023-04-21 17:59:06 -04:00
Nayla
ec88dfa66f
Update Main.cpp 2023-04-21 16:52:17 -04:00
Nayla Hanegan
cbfd634a4b
update Cheat files 2023-04-20 20:32:13 -04:00
Pokechu22
c0b6e9e69c Treat --debugger command line as a temporary setting
Before, Settings::SetDebugModeEnabled was used; this calls SetBaseOrCurrent() which will usually permanently change the base configuration setting for the debugger to true. Thus, the debugger would remain active even if the --debugger command line option was removed. Now, it remains active only for the current run, like other command-line options.

Note that SetBaseOrCurrent is also used by the "Show Debugging UI" option under Options -> Interface; this means that if the debugger is turned off (or off and then back on) by the user while --debugger is specified, this will be reset to whatever the base configuration had when Dolphin is closed and reopened. This behavior is consistent with the rest of the UI.

To my understanding, the --debugger option is something from 5.0 stable/DolphinWx where there was no way to toggle the debug UI in the settings (and the command-line option was the only way of enabling it). It's less useful nowadays.
2023-04-17 23:11:26 -07:00
Minty-Meeo
3282082599 Resolve [-Wwrite-strings] 2023-04-10 14:21:15 -05:00
OatmealDome
d40dbe4670 DolphinQt: Add workaround for Qt 6.3+ bug on Linux
See https://bugs.dolphin-emu.org/issues/12913 for more information.
2023-01-20 03:06:04 -05:00
JosJuice
04072f0ce6 Integrate "Ignore for this session" better with config system
Because of the previous commit, this is needed to stop DolphinQt from
forgetting that the user pressed ignore whenever any part of the config
is changed.

This commit also changes the behavior a bit on DolphinQt: "Ignore for
this session" now applies to the current emulation session instead of
the current Dolphin launch. This matches how it already worked on
Android, and is in my opinion better because it means the user won't
lose out on important panic alerts in a game becase they played another
game first that had repeated panic alerts that they wanted to ignore.

For Android, this commit isn't necessary, but it makes the code cleaner.
2022-09-24 13:03:45 +02:00
Dentomologist
059cd5f6e1 Windows: Remove unused Qt 5 code and references 2022-05-25 17:51:17 -07:00