Last active
October 5, 2022 10:57
-
-
Save skyrpex/5547015 to your computer and use it in GitHub Desktop.
Qt5 Fusion style (dark color palette)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qApp->setStyle(QStyleFactory::create("fusion")); | |
QPalette palette; | |
palette.setColor(QPalette::Window, QColor(53,53,53)); | |
palette.setColor(QPalette::WindowText, Qt::white); | |
palette.setColor(QPalette::Base, QColor(15,15,15)); | |
palette.setColor(QPalette::AlternateBase, QColor(53,53,53)); | |
palette.setColor(QPalette::ToolTipBase, Qt::white); | |
palette.setColor(QPalette::ToolTipText, Qt::white); | |
palette.setColor(QPalette::Text, Qt::white); | |
palette.setColor(QPalette::Button, QColor(53,53,53)); | |
palette.setColor(QPalette::ButtonText, Qt::white); | |
palette.setColor(QPalette::BrightText, Qt::red); | |
palette.setColor(QPalette::Highlight, QColor(142,45,197).lighter()); | |
palette.setColor(QPalette::HighlightedText, Qt::black); | |
qApp->setPalette(palette); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How about adding rules for disabled texts, like: