From f1d4f07dcb8bd93578abb2fc1e289050d7e1c3ee Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周日, 09 2月 2025 11:27:42 +0800
Subject: [PATCH] fix the QML demo

---
 examples/mainwindow/light-style.qss |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/examples/mainwindow/light-style.qss b/examples/mainwindow/light-style.qss
index b2b7287..9180001 100644
--- a/examples/mainwindow/light-style.qss
+++ b/examples/mainwindow/light-style.qss
@@ -1,11 +1,13 @@
 /* Window bar */
 
 QWK--WindowBar[bar-active=true] {
-    background-color: #195ABE;
+    /*background-color: #195ABE;*/
+    background-color: transparent;
 }
 
 QWK--WindowBar[bar-active=false] {
-    background-color: #195ABE;
+    /*background-color: #195ABE;*/
+    background-color: transparent;
 }
 
 
@@ -103,8 +105,8 @@
 
 QMenu {
     padding: 4px;
-    background: #303030;
-    border: 1.25px solid transparent;
+    background: white;
+    border: 1px solid #E0E0E0;
 }
 
 QMenu::indicator {
@@ -119,23 +121,21 @@
 
 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;
 }
 
@@ -146,6 +146,10 @@
     background-color: #F3F3F3;
 }
 
+MainWindow[custom-style=true] {
+    background-color: transparent;
+}
+
 QWidget#clock-widget {
     font-size: 75px;
     color: #333333;

--
Gitblit v1.9.1