rpcs3 icon indicating copy to clipboard operation
rpcs3 copied to clipboard

fix toolbar text color in dark theme

Open guoyunhe opened this issue 1 year ago • 8 comments

RPCS3 uses some custom stylesheets to customize the toolbar. However, these styles bring serious usability issues on Linux and macOS when users choose dark theme. The action button text is very hard to read:

image

This PR disabled these styles in favor of default Qt Widgets styles. In result, it show correct colors in both light and dark mode:

图片

图片

Fix #12707 #12065

guoyunhe avatar Apr 11 '23 15:04 guoyunhe

The issue isn't the stylesheet. The issue is that stylesheets in general don't work properly when using a system wide override on macOs and some linux platforms. So the "fix" would be to hope that a newer Qt version has this sorted out or to use a different stylesheet or even a proper style instead of a stylesheet (see command line args with --help).

Megamouse avatar Apr 11 '23 17:04 Megamouse

It's not an issue on Windows because there Qt defaults to ignoring system wide styles. (which should be normal on any proper platform)

Megamouse avatar Apr 11 '23 17:04 Megamouse

@Megamouse older version Windows + Qt has very limited support for system color mode. However, this will change in future. See https://www.qt.io/blog/dark-mode-on-windows-11-with-qt-6.5 In the end, all systems will have the same issue.

guoyunhe avatar Apr 12 '23 02:04 guoyunhe

We're not on Qt 6.5 though. And your changes make no sense

Megamouse avatar Apr 12 '23 09:04 Megamouse

If you spend some time check issues, you will find out why people need it. Anyway, we are already shipping patched version for openSUSE Linux users and people like it.

guoyunhe avatar Apr 12 '23 10:04 guoyunhe

It's not an issue on Windows because there Qt defaults to ignoring system wide styles. (which should be normal on any proper platform)

If the operating system has a way to set up system-wide styles then I would have assumed that most people would expect those styles to apply system-wide. My opinion is that the default should be to respect system-wide styles, not ignore them (by all means, have an option to override them, but it seems strange to me to ignore the user's preferences by default).

However, I digress. If I understand correctly then the game list background is being specified as white, but the text colour isn't specified at all. The OS could therefore legitimately make it black, or white, or even red-and-purple striped with a gold trim. I'm not familiar with Qt but I can't imagine that it would be difficult to specify both the foreground and background, fixing the issue (albeit forcing light mode, but that's better than having an unreadable game list).

PS. It's unclear from the screenshots whether this PR actually fixes the issue with list view, as the "after" screenshots only show grid view (which already works, at least under MacOS).

Behodar avatar Apr 26 '23 05:04 Behodar

@Behodar currently I only fixed color of the toolbar. neither list view or grid view are changed. (I use grid view only) If people are interested, I can keep updating this patch.

guoyunhe avatar Apr 26 '23 06:04 guoyunhe

Btw, you can just set a style using cli args, which would circumvent the use of a stylesheet.

Megamouse avatar Apr 26 '23 10:04 Megamouse

I'll close this PR due to inactivity. I provided a way to use native styles using the settings dialog in another PR: #14915

Apparently the Qt developers are working on better control over the dark mode. So I expect to be able to force the application to use the bright mode while using stylesheets in the nearish future, as currently all stylesheets work well with the bright default styles.

I'll try to fix the existing bright stylesheets in the meantime. I think they are just missing some default fore and back colors.

Megamouse avatar Dec 19 '23 23:12 Megamouse

You said my PR "make no sense" and now you are doing the same thing in your own PR? I deserve an apologias.

guoyunhe avatar Dec 20 '23 02:12 guoyunhe