From 430d245bb94c634047e7b65232eb3e50e2b6e49a Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: ćšć, 21 12æ 2023 22:00:37 +0800 Subject: [PATCH] add more attrib --- examples/mainwindow/light-style.qss | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/examples/mainwindow/light-style.qss b/examples/mainwindow/light-style.qss index b2b7287..6c15e62 100644 --- a/examples/mainwindow/light-style.qss +++ b/examples/mainwindow/light-style.qss @@ -103,8 +103,8 @@ QMenu { padding: 4px; - background: #303030; - border: 1.25px solid transparent; + background: white; + border: 1px solid #E0E0E0; } QMenu::indicator { @@ -119,30 +119,32 @@ QMenu::item { background: transparent; - color: #CCCCCC; + color: #333333; padding: 6px 24px; } QMenu::item:selected { - color: white; - background-color: #0060C0; + background-color: rgba(0, 0, 0, 10%); } QMenu::item:disabled { - color: #666666; - background-color: transparent; + color: #CCCCCC; } QMenu::separator { height: 2px; - background-color: #5B5B5B; + background-color: #CCCCCC; margin: 6px 0; } /* Window */ -MainWindow { +MainWindow[custom-style=true] { + background-color: transparent; +} + +MainWindow[custom-style=false] { background-color: #F3F3F3; } -- Gitblit v1.9.1