From e697479f2922b14d02bfc0d813b86fb2e9d9c4f3 Mon Sep 17 00:00:00 2001 From: Mauro Mura Date: Thu, 31 Oct 2024 15:50:17 +0100 Subject: [PATCH] removed palette modification --- src/gui/main.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index c77202e37b9a5..f9a92fda2d1be 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -92,33 +92,6 @@ int main(int argc, char **argv) OCC::Application app(argc, argv); - //NMC customization: enforce our palette to avoid dark mode colors - QPalette palette = app.palette(); - - palette.setColor(QPalette::WindowText, QColor(0, 0, 0)); - palette.setColor(QPalette::Button, QColor(236, 236, 236)); - palette.setColor(QPalette::Light, QColor(255, 255, 255)); - palette.setColor(QPalette::Midlight, QColor(245, 245, 245)); - palette.setColor(QPalette::Dark, QColor(191, 191, 191)); - palette.setColor(QPalette::Mid, QColor(168, 168, 168)); - palette.setColor(QPalette::Text, QColor(0, 0, 0)); - palette.setColor(QPalette::BrightText, QColor(255, 255, 255)); - palette.setColor(QPalette::ButtonText, QColor(0, 0, 0)); - palette.setColor(QPalette::Base, QColor(255, 255, 255)); - palette.setColor(QPalette::Window, QColor(236, 236, 236)); - palette.setColor(QPalette::Shadow, QColor(0, 0, 0)); - palette.setColor(QPalette::Highlight, QColor(179, 215, 255)); - palette.setColor(QPalette::HighlightedText, QColor(0, 0, 0)); - palette.setColor(QPalette::Link, QColor(0, 104, 218)); - palette.setColor(QPalette::LinkVisited, QColor(255, 0, 255)); - palette.setColor(QPalette::AlternateBase, QColor(245, 245, 245)); - palette.setColor(QPalette::NoRole, QColor(0, 0, 0)); - palette.setColor(QPalette::ToolTipBase, QColor(255, 255, 255)); - palette.setColor(QPalette::ToolTipText, QColor(0, 0, 0)); - palette.setColor(QPalette::PlaceholderText, QColor(0, 0, 0)); - - app.setPalette(palette); - #ifndef Q_OS_WIN signal(SIGPIPE, SIG_IGN); #endif