-
Notifications
You must be signed in to change notification settings - Fork 283
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
Option to use dark theme #68
Comments
Concept ACK for a GUI option, if it makes dark mode easier for users to have. I use the GUI with dark mode theme only, thanks to these tips from @laanwj: https://twitter.com/orionwl/status/1240948484334813185 and https://twitter.com/orionwl/status/1240954362614120448 |
What would be the technical hurdles of having a dark / light theme toggle switch in the settings / setup of the GUI? |
|
Link did not work: https://bitcoincore.org/en/releases/0.17.0/ |
Looks like it is disabled in MacOS |
Fixed.
Yes. This is a kind of workaround. |
I'm using Dark mode on self compiled GUI, thanks to the tips shared by @jonatack I confirm, @hebasto comment:
I've found two main UI glitches: Otherwise, the dark mode seems pretty OK on macOS Big Sur. I'll try to make PR to address the 2 issues above, if you think of any other glitches, let me know. |
It seems that using https://github.com/ColinDuquesnoy/QDarkStyleSheet might resolve most of the visual issues. Switching to dark mode in macOS, Qt will trigger an event of the type |
@prusnak for now, the GUI is not using any self defined palette, it inherits the OS color palette. We could force our own light / dark palette, but that will be a bigger change, and might involve some UI designers. My idea was to keep the current system as it is, but just fix the 2/3 glitches that occur on mac OS dark mode. |
@prusnak I've tried to play with QPalette and styleSheet to fix the display glitches, but it's not working because the bugs are directly in QMacStyle definition. One solution could be to use the embedded QT style |
I was reading https://github.com/bitcoin-core/bitcoin-devwiki/wiki/0.21-Release-Candidate-Testing-Guide and it has dark mode screenshots So do we already have dark theme in bitcoin core gui? |
@prayank23
I think this is linux platform screenshots |
@prusnak I tried following the steps mentioned in README.rst but getting error when I launch Steps that I followed:
#include <QTextStream> QFile f(":/home/satoshi/bitcoin/src/qt/style.qss");
if (!f.exists()) {
printf("Unable to set stylesheet, file not found\n");
}
else {
f.open(QFile::ReadOnly | QFile::Text);
QTextStream ts(&f);
qApp->setStyleSheet(ts.readAll());
}
Error: |
@prayank23 on Ubuntu/Debian (as your screenshot suggests you are using), just set a dark GTK theme. |
@jarolrod I understand the workaround as jonatack had shared links when I created this issue. I am trying to add option in Bitcoin Core to switch light/dark theme which can work on all platforms irrespective of OS settings. |
@prayank23 I see, you'd need to come up with a stylesheet for both (light + dark) I believe. Maybe in talks with the design community. And you can add a toggle button somewhere in the menu. |
Its working :) Suggestion by @hebasto in IRC channel ##bitcoin-core-gui helped. Had to remove There are few things that will need to be changed or added. Screenshots: Splash screen still looks the same: |
This does not work on Windows as expected |
dc4551c remove incompatibility release note for darkmode on macos (Sylvain Goumy) 303cfc6 allow darkmode on macos build (Sylvain Goumy) 78f75a2 Allow icon colorization on mac os to better support dark mode (Uplab) Pull request description: Allow icons to be colorized on macOS to support native Dark mode color scheme. Rendering on macOS Big Sur before PR:  Rendering on macOS Big Sur after PR:  Light mode stay visually unchanged. <del>Note, that this currently only affect the build from source, as the macos dmg includes an attributes to force light color scheme on macos windows (see bitcoin/bitcoin#14593). </del> <del>But once all glitches are fixed, we will be able to remove this temporary fix. </del> Edit: this PR is know including the removal of `NSRequiresAquaSystemAppearance` on Info.plist file so that the color fix is apply to every build. Linked issues: #68 #136 ACKs for top commit: hebasto: re-ACK dc4551c jarolrod: ACK dc4551c Tree-SHA512: 1c3a4dec796063e61fcaf80112afc2b15c8669a1cd30ebd537cea96647c20215f8f80289719f905820bb0c490c8c1f94bfae4bb32f9c6d1fdd4e8f199ebb559f
After #366 is merged the Bitcoin Core GUI should follow system appearance settings. It works on macOS. Also it works on some DEs on Linux. Not sure if anybody test the current master on Windows, though. Going to close this issue. Feel free to open a new platform or DE specific one. |
I understand priority is to keep things simple and secure however some users prefer dark theme.
Dynamically change the theme to either light or dark.
Almost every bitcoin wallet for desktop has dark theme.
Those pictures are looking good: Design for a bitcoin wallet bitcoin/bitcoin#9639
Did some research related to light/dark theme and qt although I am not the best person to suggest code related to design: https://github.com/Alexhuszagh/BreezeStyleSheets
The text was updated successfully, but these errors were encountered: