When using dark theme in Windows 10 and in browser on almost all sites, its extremely annoying that when occasionally you need to pop up Task Manager or regedit it breaks all the dark immersion. Is there a way to change this by modifying some DLLs, perhaps?
Windows 10 – Force Dark Theme for Regedit and Task Manager
dark moderegedittask-managerwindows 10
Related Solutions
You can try using Process Explorer, there is an icon in the toolbar named Find Window's process
, you drag it over the window or dialog in question and it shows which process owns that window.
I had the same problem. After a few hours of messing around with this, I was able to come up with a working solution.
TL;DR
Apparently Dolphin needs to be run like this:
dolphin.exe --stylesheet C:\Users\USER\path\to\grey.qss --platform windows:darkmode=2
Where grey.qss
needs to be placed in the given path.
grey.qss
:
QWidget {
color: white;
background-color: rgb(72, 72, 72);
}
QScrollBar {
background: rgb(42, 42, 42);
}
/* Context menu buttons. */
QMenu::item:selected {
background: black;
}
/* Makes some cickable things in the configuration menu look nicer. */
QAbstractButton:hover {
background-color: rgb(66, 66, 66);
}
QAbstractButton:pressed {
background-color: black;
}
/* Top menu bar buttons */
QToolButton {
background-color: rgb(58, 58, 58);
}
QToolButton:hover {
background-color: rgba(30, 30, 30, 0.505);
}
QToolButton:disabled {
background-color: rgb(126, 126, 126);
}
QToolButton:checked {
background-color: black;
}
QToolButton:selected {
background-color: rgb(31, 28, 99);
}
Explanation
Instead of --platformtheme
the option --stylesheet
needs to be used. There is no mention of it in dolphin.exe --help-all
, but it seems to be a standard option for Qt applications.
With this option I was able to use the style as defined in an external .qss
file. However, I wasn't able to find a way to change the color of some elements, namely the filename labels were still black just like they are in the light theme.
So that's where the other option comes in: --platform windows:darkmode=2
. This changes the color to white, allowing us to use a darker background.
Now at first I tried using the file DarkMonokai.qss
as mentioned in the question, but it didn't work for me. Since it's very long and I had no idea what the issue might be, I went ahead and created my own minimal stylesheet grey.qss
. It's nothing special, but gets the job done giving us a dark theme.
In order to be as reproducible as possible, this is the Dolphin build I used.
Here is what my Dolphin looks with that stylesheet. Again, it's nothing special, but at least it doesn't burn my eyes.
Improve
I also made a git repository in case anyone wants to fork/contribute and improve the solution.
Best Answer
I can't believe that 2 months actually passed since I embarked on the quest to make Windows 10 100% Dark Mode, in every window in the system. I was focused on this all this time, almost all day long. I went on a few tangents, however, like learning a bit of assembly and injection into other processes, a bit of JavaScript/CSS to style Firefox too, made custom low level API registry access library, etc.
Well, now I can give myself and others a definitive answer of how to do it. At first I thought it's not possible, but it is. And it probably will look better than Windows 11. This is only possible with theme patch, however. It is not possible to achieve adequate Dark Mode on unpatched system, I'm afraid (there is one attempt at this, using high-contrast theme, but due to very poor Microsoft's High Contrast implementation, its very limited and almost unusable). So here is the steps:
userChrome.css
code where I implemented a perfect titlebar buttons.Of course, me being crazy perfectionist, I went on the Windows 10 improvement spree along with the Dark Mode, like removing useless context menu items for Explorer, adding useful context items, making custom garbage collector for Trash Bin, etc. But this all things are out of the scope of this question.
The result:
Note that Task Manager is incorrectly scaled by Windows (DPI system aware), as I changed DPI scaling in the very beginning of this "quest" and didn't restart PC for 62 days and 22 hours +
I hope that my efforts will benefit not only me, but maybe someone else who dreamed about proper Windows 10 Dark Mode, as much as me.