-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable native Windows 10 dark theme support by default #13952
Conversation
https://doc.qt.io/qt-5/qguiapplication.html#platform-specific-arguments |
How does it interact with custom themes when both custom theme and Windows dark mode are enabled? |
Also please provide screenshots in PR description. |
Adding |
Doesn't work for me. |
Go to Settings->Personalisation->Colours->"Dark" or Go to Settings->Personalisation->Colours->Custom->Choose your default app mode->Check/Enable "Dark" |
Title is probably a bit misleading..... EDIT (FranciscoPombal): Thanks for the screenshots, moved to a collapsible section in the OP. |
some more screenshots: EDIT (FranciscoPombal): Thanks for the screenshots, moved to a collapsible section in the OP. |
fontengine=freetype may solve font rendering problems in some cases related to usage of high DPI scaling settings on Windows.
fddef7b
to
208442c
Compare
As the Qt docs state, it is currently experimental, so it can use some polish, but it's usable at least. I'm sure that even in this state, some users will prefer it. I'm expecting it to improve in future Qt versions of course. The user can always disable it for qBittorrent even if they have dark theme system-wide.
How so? Enabling Qt to respond to the activation/deactivation of "dark mode for applications" is the same as saying that we enable support for the native dark theme.
Fixed. Let me know if you have a better suggestion for the commit message. |
Apologies! that should've been part of this #13952 (comment) (I think. there was a presumption that dark mode would've been on/active by default) not that there is a requirement of user interaction/choice....(my interpretation of the comment may be wrong too) |
How? going and editing the .conf file is not good UX. IMHO darkmode=1; is more than enough for now. |
Dark mode won't be on by default. Support for it will be active by default. This means that if the user selects "Dark mode for applications" in the Windows settings, qBittorrent will use dark mode. As soon as the user turns off "Dark mode for applications", qBittorrent automagically reverts back to the default native look & feel, without even needing to be restarted.
I doubt that a user who turns on "Dark mode for applications" in the Windows settings, which is meant to apply systemwide, prefers the non-dark native look to the dark theme, even if it does not have the greatest polish yet. Also, if they are truly unhappy with Qt's dark theme, I'm guessing they'd still much rather hunt for a custom dark theme first before resorting to deactivating the dark theme and use the non-dark native look. But hey, if they really want qBittorrent to be non-dark mode in their dark-mode system, the escape hatch is there in any case. Also, again, as I've said before, |
you know how bad it looks, right? and I assume you know we have our own theme system right? the whole point of our theming system is to overcome qt's limitations. why you want to eat half-baked cake when the chef himself advised not to eat.
no with the custom theme this is more than enough jagannatharjun/qbt-theme#40 I was thinking to open a PR over the weekend, huh |
I am aware of that. (we are getting our wires crossed, lol!) as explained - it should've been in response to an0n666's comment. |
I think it's not too bad except for a few hiccups/colour changes required ("stalled arrows") What has to be taken in to account as well is there will be users who won't want to use a 3rd party theme.... No harm in giving the user another choice! @jagannatharjun What do you find so bad about it? also that windows title bar that you linked to wouldn't be a problem...see OP for screenshots. |
As suspected in #13952 (comment), it "just works" as expected: custom themes completely override the base dark theme. I tested a bit with themes from https://github.com/jagannatharjun/qbt-theme, and It looks identical to the screenshots. As far as I can see, this is a straight improvement to the current situation. Previously (3 out of 4 cases work as expected):
Now (4 out of 4 cases work as expected):
The only "regression" is the following case, which I don't think is realistic:
But even in this case, there is the conf file escape hatch (these users can just set Final note: since with |
personally, I don't want |
Disagree. Native dark theme support, even if unpolished, is better than none at all, especially when we have custom themeing support to make up for any deficiencies. As my previous comment states, now 4/4 cases are covered, without this change only 3/4. If the user really dislikes the native dark theme, they can still use custom themes, as they were forced to do previously anyway. |
Yes, both in a machine where I have Windows installed on bare-metal, and on a VM that I have on one of my Linux systems, which is also running a dark theme (xfce + |
Unfortunately, this is not true - I am a sinner because of both gaming (though Proton has been chunking away at that particular stronghold at a steady pace) and the occasional cross-platform stint (as is the case for qBittorrent). |
Then it's like an argument between a mute and a deaf person, sorry... |
Merging this would go a long way to get users to provide feedback... If you are concerned about users complaining, the responsibility is not solely yours, you can tell them (and they can see) that it was originally my idea. But perhaps I'm more optimistic in thinking that users would be most likely to provide constructive feedback, rather than come at us with pitchforks in case they don't like it. Anyway, you know I'll do my best to be present and active in addressing feedback from the theme. This is Free Software made by the people, for the people, one either engages productively in the discussion or gets their post closed & locked and we all move on. |
Not sure what he meant by "UI theme bundle", but contrary to popular belief, I do sometimes find myself using Windows, and when I do so, I always use the native dark theme FWIW: #13952 (comment), #13952 (comment) |
In any case, my approval and its reasons are set out above. But this is not enough, as you know. And I have no reason to put pressure on someone else to get this PR approved. |
My main OS is always been windows and I only started using linux recently because of work.
This PR would've been fine if it were to be not make this the default behavior. My concern is providing an experimental feature as a default behavior with no clear way to change it. Plus it doesn't look good.
👍
I meant by qbittorrent's UI theme system. |
Sorry, I don't see the point in this argument... If someone wishes a dark theme, presently their only choice is to try the custom theme. Whereas after this PR, if someone uses dark theme in Windows, they would be furnished with power to choose:
Then why be against it at all?
I guess it means custom theme...? |
Simultaneously, I can understand that there is no point in feature which no one intends to make use of. EDIT2:
Well, in my opinion, no one in right mind will use dark theme at all, unless lighting in their chambers is broken 😃 |
Someone may say "You don't use dark theme, how you could speak of it?" however I need not be a dark-theme specialist to understand that to improve something afterwards is much easier than to create something flawless right from the start... |
from #13952 (comment)
@jagannatharjun, |
If this was to be merged, I presume it would only be in |
No reason why it couldn't be backported. |
It seems my commentaries left no as deep impression here as I wanted them to, so I shall make myself more plain and elaborate on this point. Whilst Windows user has the custom themes as the only native option of dark theming, they will not even dare to dwell upon the thought that there might be another direction, and even more native, too. |
This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity. |
Having 2 default themes would be great (+ a toggle option) and it would make it easier for @nowshed-imran since he could make 2 sets, one for light/normal and one for dark. |
There's no need for two sets of icons.......if we get the coloring right with The toggle option you refer to is what this PR does.......activates windows dark mode for qBittorrent. |
Wasn't that one of the reasons why people couldn't agree, because it's hard to make it work for both light & dark themes? |
Look at the screen shots from my previous post........the icon colors are the same. I use a different source to check out colors which give an example of what it looks like with white background/black background. |
This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity. |
This PR was closed because it has been stalled for some time with no activity. |
Wow... For the last two years, my tedious routine has been to enable a custom dark theme every evening and restart qBittorrent, and disable it in the morning and then again restart. Except sometimes in the evening I didn't want to stop a download by restarting, so I had to suffer the blinding white UI until I could restart. I never knew that all that effort and discomfort was unnecessary, that qBittorrent can actually change automatically according to Windows theme, without even needing to restart... And some qBittorrent contributors were blocking this feature, because they personally disliked the aesthetics of this dark theme... Incredible. Anyway, I was happy to see that this change doesn't require recompiling and I can simply edit the Also, interestingly, this dark theme is slightly more compact than qBittorrent's default theme, but only if qBittorrent was started while Windows is already set to dark mode, not transitioned while it is open. I figured this is due to the changes in version 4.2.2, so I tried 4.2.1's compact theme to see if that's the case, but 4.2.1 theme is even more compact; dark theme is somewhere in between. Anyway, it's a minor difference, I only noticed it because I took screenshots to compare it with the default theme and the custom dark theme I used to use until today. Also, I am using Qt 5.15.2; I didn't test with Qt 6 version of qBittorrent 4.4.0, maybe that makes improvements to the aesthetics aspect that might satisfy qBittorrent contributors. I didn't check as I think this version, as seen in the screenshots above, is already perfectly fine, much better than all the unofficial themes listed in the wiki (except for the "legacy-qBittorrent" and "qbittorrent-black-theme"), in addition to the ease-of-use advantages. |
Settings related to workarounds to HiDPI issues
are still commented out by default.
See #13675 (comment) and Ctrl+F
darkmode
here: https://doc.qt.io/qt-5/qguiapplication.htmlI did not test on a Windows version lower than Windows 10 1903, but I think in such cases Qt simply ignores this. However, it would be nice for someone to confirm this before merging, since we still support those versions.
The new font related argument that is commented out comes from here: #13749 (comment) and this whole discussion: #12295
Screenshots:
Click to expand
It respects title bars and window borders color changes:
Go to Settings->Personalisation->Colours->"Choose your accent colour"
Show the accent colour on the following surfaces->Check/Enable Title bars and windows borders