From 5c3098aab287abecf3ec2bdf72e2560e16a1ab6a Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周五, 30 5月 2025 16:08:41 +0800
Subject: [PATCH] update qmsetup

---
 examples/mainwindow/light-style.qss |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/examples/mainwindow/light-style.qss b/examples/mainwindow/light-style.qss
index 6c15e62..1f7b4c9 100644
--- a/examples/mainwindow/light-style.qss
+++ b/examples/mainwindow/light-style.qss
@@ -2,10 +2,12 @@
 
 QWK--WindowBar[bar-active=true] {
     background-color: #195ABE;
+    /* background-color: transparent; */
 }
 
 QWK--WindowBar[bar-active=false] {
     background-color: #195ABE;
+    /* background-color: transparent; */
 }
 
 
@@ -30,9 +32,19 @@
     background-color: transparent;
 }
 
+QWK--WindowBar>QAbstractButton#pin-button {
+    qproperty-iconNormal: url(":/window-bar/pin.svg");
+    qproperty-iconChecked: url(":/window-bar/pin-fill.svg");
+    qproperty-iconSize: 15px 15px;
+}
+
+QWK--WindowBar>QAbstractButton#pin-button:hover,
+QWK--WindowBar>QAbstractButton#pin-button:pressed {
+    background-color: rgba(0, 0, 0, 15%);
+}
+
 QWK--WindowBar>QAbstractButton#min-button {
     qproperty-iconNormal: url(":/window-bar/minimize.svg");
-    qproperty-iconSize: 12px 12px;
 }
 
 QWK--WindowBar>QAbstractButton#min-button:hover,
@@ -140,12 +152,12 @@
 
 /* Window */
 
-MainWindow[custom-style=true] {
-    background-color: transparent;
+MainWindow {
+    background-color: #F3F3F3;
 }
 
-MainWindow[custom-style=false] {
-    background-color: #F3F3F3;
+MainWindow[custom-style=true] {
+    background-color: transparent;
 }
 
 QWidget#clock-widget {

--
Gitblit v1.9.1