How to enable dark mode in v4.6.0 UI Theme Configuration?

Windows specific questions, problems.
CarFMI
Newbie
Newbie
Posts: 3
Joined: Mon Oct 23, 2023 12:55 am

How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by CarFMI »

The most recent update v4.6.0 (Oct 22th 2023) now has something called the "UI Theme Configuration", allowing the customisation of the default theme: Options → Behaviour → Interface → Customize UI Theme...

The customisation panel presents a list of colours and icons for both a "Dark Mode" and a "Light Mode".

However, where exactly does one enable the "Dark Mode"?

UI Theme Configuration.png
UI Theme Configuration.png (10.39 KiB) Viewed 43261 times
CarFMI
Newbie
Newbie
Posts: 3
Joined: Mon Oct 23, 2023 12:55 am

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by CarFMI »

Do the developers involved with the project read this forum?

Should I post the question elsewhere so that it would be appropriately addressed?
PriitUring
Member
Member
Posts: 33
Joined: Wed Nov 25, 2020 7:23 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by PriitUring »

Where exactly does one enable the "Dark Mode"?
In your Windows Settings you have to enable it first.

There's no dark mode button in qBit v4.6.0, even current latest v5.0.0alpha1 experimental development build doesn't have such button and qBit relies on dependency Qt6 library to get and use more native OS theme automatically and immediately without requiring to restart qBit to see some changes to qBit interface. Otherwise too much unnecessary code to test and maintain if have to bundle extra theme files or to try to use workarounds instead of allowing Qt to be responsible for qBit theme changes.
The customisation panel presents a list of colours and icons for both a "Dark Mode" and a "Light Mode".
You can currently only specify icons and text colors in v4.6.0, even latest v5.0.0alpha1 doesn't allow specifying background color without modifying code or without using any custom theme file.
Do the developers involved with the project read this forum?
Better to use GitHub, although various help is asked and discussions happen more often in reddit, but GitHub is more organized and is a lot better if you really want feature requests, bug issue reports or qBit related Q&A on GitHub Discussion page to be read by developers and contributors.

Many users don't know how or not interested to give enough basic info in GitHub, so I'm not surprised if many prefer using other websites.

It's unfortunately very hard to keep track on unresolved and fixed things elsewhere other than in GitHub, seems as if it's not easy to even add tags or labels elsewhere and development is still done in GitHub, that it's probably too inconvenient to constantly read unorganized things elsewhere.

Forum is good if someone has a new tool, script or guide, then there's a chance it gets pinned on top for new users to notice them, unfortunately less things ever get pinned elsewhere.

This misunderstanding or hope to see somekind Dark Mode button was also recently mentioned in GitHub:
https://github.com/qbittorrent/qBittorrent/issues/19754

So if you don't want to use experimental v5.0.0alpha1 or not interested to create your own fork in GitHub to get qBit v4.6 to use Qt Fusion Style by default, then you can use qBit v4.6.0 and try this:

This is how I got qBit v4.6 Dark Mode in Win11:
1. Enable dark theme in Windows OS settings.
2. Make sure you disable custom theme in qBit.
3. Exit qBittorrent and make sure it's fully closed.
4. Now try running qBit with one of these:

Right-click on your Windows Start Menu icon, then select RUN, then copy and paste the default qBit location with the extra command and press OK:
"C:\Program Files\qBittorrent.exe" -platform windows:darkmode=2

Alternatively, you can modify qBit shortcuts:

Open Start Menu, right-click on the qBit shortcut, select to open its location, now right-click on the shortcut file, right-click on it, click properties, and then change Target field to: "C:\Program Files\qBittorrent\qbittorrent.exe" -platform windows:darkmode=2

Or on desktop, copy your qBit shortcut, rename it as qBit Dark Mode, then right-click on it, select properties, and then change the Target field to: "C:\Program Files\qBittorrent\qbittorrent.exe" -platform windows:darkmode=2
CarFMI
Newbie
Newbie
Posts: 3
Joined: Mon Oct 23, 2023 12:55 am

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by CarFMI »

Thank you very much for the detailed answer.

As for your various steps ...
  1. Yes, I already had Windows in dark mode.
  2. Yes, I had already disabled the theme I was using before, because it does not work on v4.6.
  3. Done.
  4. Update the shortcut with the extra command line parameter, as per your instructions.
It is now working splendidly in "Dark Mode". Thank you!

qbt.V4.6.0.darkmode.png
qbt.V4.6.0.darkmode.png (34.14 KiB) Viewed 42952 times
jmcc84
Newbie
Newbie
Posts: 3
Joined: Tue Nov 01, 2022 5:01 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by jmcc84 »

I have the same problem. Obviously my Windows is already in dark mode. Why I have to add a command line for it to work?
User avatar
Peter
Administrator
Administrator
Posts: 2702
Joined: Wed Jul 07, 2010 6:14 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by Peter »

jmcc84 wrote: Wed Oct 25, 2023 5:58 pm I have the same problem. Obviously my Windows is already in dark mode. Why I have to add a command line for it to work?
Because of how Qt works. I'm fairly sure this behavior will be corrected.
You can follow the ticket here: https://github.com/qbittorrent/qBittorrent/issues/19754
DanaLuke
Newbie
Newbie
Posts: 3
Joined: Wed Jun 07, 2023 1:46 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by DanaLuke »

PriitUring wrote: Tue Oct 24, 2023 1:51 pm
Where exactly does one enable the "Dark Mode"?
In your Windows Settings you have to enable it first.

There's no dark mode button in qBit v4.6.0, even current latest v5.0.0alpha1 experimental development build doesn't have such button and qBit relies on dependency Qt6 library to get and use more native OS theme automatically and immediately without requiring to restart qBit to see some changes to qBit interface. Otherwise too much unnecessary code to test and maintain if have to bundle extra theme files or to try to use workarounds instead of allowing Qt to be responsible for qBit theme changes.
The customisation panel presents a list of colours and icons for both a "Dark Mode" and a "Light Mode".
You can currently only specify icons and text colors in v4.6.0, even latest v5.0.0alpha1 doesn't allow specifying background color without modifying code or without using any custom theme file.
Do the developers involved with the project read this forum?
Better to use GitHub, although various help is asked and discussions happen more often in reddit, but GitHub is more organized and is a lot better if you really want feature requests, bug issue reports or qBit related Q&A on GitHub Discussion page to be read by developers and contributors.

Many users don't know how or not interested to give enough basic info in GitHub, so I'm not surprised if many prefer using other websites.

It's unfortunately very hard to keep track on unresolved and fixed things elsewhere other than in GitHub, seems as if it's not easy to even add tags or labels elsewhere and development is still done in GitHub, that it's probably too inconvenient to constantly read unorganized things elsewhere.

Forum is good if someone has a new tool, script or guide, then there's a chance it gets pinned on top for new users to notice them, unfortunately less things ever get pinned elsewhere.

This misunderstanding or hope to see somekind Dark Mode button was also recently mentioned in GitHub:
https://github.com/qbittorrent/qBittorrent/issues/19754

So if you don't want to use experimental v5.0.0alpha1 or not interested to create your own fork in GitHub to get qBit v4.6 to use Qt Fusion Style by default, then you can use qBit v4.6.0 and try this:

This is how I got qBit v4.6 Dark Mode in Win11:
1. Enable dark theme in Windows OS settings.
2. Make sure you disable custom theme in qBit.
3. Exit qBittorrent and make sure it's fully closed.
4. Now try running qBit with one of these:

Right-click on your Windows Start Menu icon, then select RUN, then copy and paste the default qBit location with the extra command and press OK:
"C:\Program Files\qBittorrent.exe" -platform windows:darkmode=2

Alternatively, you can modify qBit shortcuts:

Open Start Menu, right-click on the qBit shortcut, select to open its location, now right-click on the shortcut file, right-click on it, click properties, and then change Target field to: "C:\Program Files\qBittorrent\qbittorrent.exe" -platform windows:darkmode=2

Or on desktop, copy your qBit shortcut, rename it as qBit Dark Mode, then right-click on it, select properties, and then change the Target field to: "C:\Program Files\qBittorrent\qbittorrent.exe" -platform windows:darkmode=2
Thanks, I will try it and if I face any issue, I will update by starting my own thread.
User avatar
SinShadowFox
Newbie
Newbie
Posts: 15
Joined: Thu Aug 05, 2021 2:42 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by SinShadowFox »

PriitUring wrote: Tue Oct 24, 2023 1:51 pm
Where exactly does one enable the "Dark Mode"?
In your Windows Settings you have to enable it first.

There's no dark mode button in qBit v4.6.0, even current latest v5.0.0alpha1 experimental development build doesn't have such button and qBit relies on dependency Qt6 library to get and use more native OS theme automatically and immediately without requiring to restart qBit to see some changes to qBit interface. Otherwise too much unnecessary code to test and maintain if have to bundle extra theme files or to try to use workarounds instead of allowing Qt to be responsible for qBit theme changes.
The customisation panel presents a list of colours and icons for both a "Dark Mode" and a "Light Mode".
You can currently only specify icons and text colors in v4.6.0, even latest v5.0.0alpha1 doesn't allow specifying background color without modifying code or without using any custom theme file.
Do the developers involved with the project read this forum?
Better to use GitHub, although various help is asked and discussions happen more often in reddit, but GitHub is more organized and is a lot better if you really want feature requests, bug issue reports or qBit related Q&A on GitHub Discussion page to be read by developers and contributors.

Many users don't know how or not interested to give enough basic info in GitHub, so I'm not surprised if many prefer using other websites.

It's unfortunately very hard to keep track on unresolved and fixed things elsewhere other than in GitHub, seems as if it's not easy to even add tags or labels elsewhere and development is still done in GitHub, that it's probably too inconvenient to constantly read unorganized things elsewhere.

Forum is good if someone has a new tool, script or guide, then there's a chance it gets pinned on top for new users to notice them, unfortunately less things ever get pinned elsewhere.

This misunderstanding or hope to see somekind Dark Mode button was also recently mentioned in GitHub:
https://github.com/qbittorrent/qBittorrent/issues/19754

So if you don't want to use experimental v5.0.0alpha1 or not interested to create your own fork in GitHub to get qBit v4.6 to use Qt Fusion Style by default, then you can use qBit v4.6.0 and try this:

This is how I got qBit v4.6 Dark Mode in Win11:
1. Enable dark theme in Windows OS settings.
2. Make sure you disable custom theme in qBit.
3. Exit qBittorrent and make sure it's fully closed.
4. Now try running qBit with one of these:

Right-click on your Windows Start Menu icon, then select RUN, then copy and paste the default qBit location with the extra command and press OK:
"C:\Program Files\qBittorrent.exe" -platform windows:darkmode=2

Alternatively, you can modify qBit shortcuts:

Open Start Menu, right-click on the qBit shortcut, select to open its location, now right-click on the shortcut file, right-click on it, click properties, and then change Target field to: "C:\Program Files\qBittorrent\qbittorrent.exe" -platform windows:darkmode=2

Or on desktop, copy your qBit shortcut, rename it as qBit Dark Mode, then right-click on it, select properties, and then change the Target field to: "C:\Program Files\qBittorrent\qbittorrent.exe" -platform windows:darkmode=2
Where is target field?
Image
Attachments
Capture.PNG
Capture.PNG (46.48 KiB) Viewed 33499 times
User avatar
Peter
Administrator
Administrator
Posts: 2702
Joined: Wed Jul 07, 2010 6:14 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by Peter »

SinShadowFox wrote: Wed Jan 24, 2024 11:21 am...
You get a target field when you make a shortcut to the .exe file. You need to modify the shortcut's properties.
idimus
Newbie
Newbie
Posts: 5
Joined: Fri Jan 19, 2024 9:04 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by idimus »

So enabling Dark Windows theme in Windows Setting doesn't affect my qBittorrent color. Although enabling dark mode by launching with command line or editing link works pretty well.
BUT! If I'm opening torrent file, when qBit not launched, it still white. So, I have better solution. You can edit "qt.conf" file instead of modifying link. If's sit beside to qBittorrent.exe ("c:\Program Files\qBittorrent\" for me)
Open qt.conf file for editing (administrative privileges would required).
In the end of file, add following line:

Code: Select all

WindowsArguments = darkmode=2
Save file. After relaunching qBit it would be dark mode enabled. Works even if you launching qBit though opening torrent file.
Image
User avatar
SinShadowFox
Newbie
Newbie
Posts: 15
Joined: Thu Aug 05, 2021 2:42 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by SinShadowFox »

Peter wrote: Wed Jan 24, 2024 12:42 pm
SinShadowFox wrote: Wed Jan 24, 2024 11:21 am...
You get a target field when you make a shortcut to the .exe file. You need to modify the shortcut's properties.
It didn't work.
Image
Attachments
Capture.PNG
Capture.PNG (133.04 KiB) Viewed 33259 times
User avatar
SinShadowFox
Newbie
Newbie
Posts: 15
Joined: Thu Aug 05, 2021 2:42 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by SinShadowFox »

idimus wrote: Wed Jan 24, 2024 9:11 pm So enabling Dark Windows theme in Windows Setting doesn't affect my qBittorrent color. Although enabling dark mode by launching with command line or editing link works pretty well.
BUT! If I'm opening torrent file, when qBit not launched, it still white. So, I have better solution. You can edit "qt.conf" file instead of modifying link. If's sit beside to qBittorrent.exe ("c:\Program Files\qBittorrent\" for me)
Open qt.conf file for editing (administrative privileges would required).
In the end of file, add following line:

Code: Select all

WindowsArguments = darkmode=2
Save file. After relaunching qBit it would be dark mode enabled. Works even if you launching qBit though opening torrent file.
Image
How do you do that? Mine won't let me, even with admin privs
Image
Attachments
Capture.PNG
Capture.PNG (54.92 KiB) Viewed 33258 times
idimus
Newbie
Newbie
Posts: 5
Joined: Fri Jan 19, 2024 9:04 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by idimus »

In first place, your windows actually let you to choose the program, by second option:
* Select a program from a list of installed programs.
Then click Ok button, and locate notepad.

There is several ways how to launch notepad with admin privileges.

Launch notepad. Press Ctrl+Shift+"Left mouse click" on Notepad app icon in the taskbar.
It should prompt dialog to run new application instance with administrative privileges.

Or.

Open Windows "Start" menu. Locate notepad. Right mouse click on it, and choose "Run as administrator".

After that you can open qt.conf from "File/Open" dialog (don't' forget to change "Text document (*.txt)" selector to "All files (*.*)")

Open qt.conf file in administrative instance of app. Add the dark mode enabling line to qt.conf and save file.

And last option.

Save following as qt.conf file (not qt.conf.txt one!)

Code: Select all

[Paths]
Translations = translations

[Platforms]
;WindowsArguments = dpiawareness=1
WindowsArguments = darkmode=2
Copy that file, and paste it in qBits folder in Program files using Explorer. Explorer would ask you, about administrative privileges in order to replace original one.
User avatar
SinShadowFox
Newbie
Newbie
Posts: 15
Joined: Thu Aug 05, 2021 2:42 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by SinShadowFox »

idimus wrote: Fri Jan 26, 2024 11:29 pm In first place, your windows actually let you to choose the program, by second option:
* Select a program from a list of installed programs.
Then click Ok button, and locate notepad.

There is several ways how to launch notepad with admin privileges.

Launch notepad. Press Ctrl+Shift+"Left mouse click" on Notepad app icon in the taskbar.
It should prompt dialog to run new application instance with administrative privileges.

Or.

Open Windows "Start" menu. Locate notepad. Right mouse click on it, and choose "Run as administrator".

After that you can open qt.conf from "File/Open" dialog (don't' forget to change "Text document (*.txt)" selector to "All files (*.*)")

Open qt.conf file in administrative instance of app. Add the dark mode enabling line to qt.conf and save file.

And last option.

Save following as qt.conf file (not qt.conf.txt one!)

Code: Select all

[Paths]
Translations = translations

[Platforms]
;WindowsArguments = dpiawareness=1
WindowsArguments = darkmode=2
Copy that file, and paste it in qBits folder in Program files using Explorer. Explorer would ask you, about administrative privileges in order to replace original one.
I tried this, it didn't work.
idimus
Newbie
Newbie
Posts: 5
Joined: Fri Jan 19, 2024 9:04 pm

Re: How to enable dark mode in v4.6.0 UI Theme Configuration?

Post by idimus »

You have windows 7?
Post Reply