From ac1a62b2a76e4d15e412b9579b80da2dafbc6d6a Mon Sep 17 00:00:00 2001
From: SineStriker <55847490+SineStriker@users.noreply.github.com>
Date: 周一, 19 5月 2025 15:38:12 +0800
Subject: [PATCH] Update qmsetup

---
 examples/mainwindow/dark-style.qss |   33 +++++++++++++++++++++++++--------
 1 files changed, 25 insertions(+), 8 deletions(-)

diff --git a/examples/mainwindow/dark-style.qss b/examples/mainwindow/dark-style.qss
index 43ea3ee..33ac251 100644
--- a/examples/mainwindow/dark-style.qss
+++ b/examples/mainwindow/dark-style.qss
@@ -1,11 +1,13 @@
 /* Window bar */
 
 QWK--WindowBar[bar-active=true] {
-    background-color: #3C3C3C;
+    /*background-color: #3C3C3C;*/
+    background-color: transparent;
 }
 
 QWK--WindowBar[bar-active=false] {
-    background-color: #505050;
+    /*background-color: #505050;*/
+    background-color: transparent;
 }
 
 
@@ -16,6 +18,7 @@
     border: none;
     color: #ECECEC;
     background-color: transparent;
+    min-height: 28px;
 }
 
 
@@ -29,14 +32,24 @@
     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(255, 255, 255, 15%);
+}
+
 QWK--WindowBar>QAbstractButton#min-button {
     qproperty-iconNormal: url(":/window-bar/minimize.svg");
-    qproperty-iconSize: 12px 12px;
 }
 
 QWK--WindowBar>QAbstractButton#min-button:hover,
 QWK--WindowBar>QAbstractButton#min-button:pressed {
-    background-color: rgba(0, 0, 0, 15%);
+    background-color: rgba(255, 255, 255, 15%);
 }
 
 QWK--WindowBar>QAbstractButton#max-button {
@@ -46,7 +59,7 @@
 
 QWK--WindowBar>QAbstractButton#max-button:hover,
 QWK--WindowBar>QAbstractButton#max-button:pressed {
-    background-color: rgba(0, 0, 0, 15%);
+    background-color: rgba(255, 255, 255, 15%);
 }
 
 QWK--WindowBar>QAbstractButton#close-button {
@@ -62,8 +75,8 @@
 /* Icon button */
 
 QWK--WindowBar>QAbstractButton#icon-button {
-    qproperty-iconNormal: url(":/window-bar/icon.svg");
-    qproperty-iconSize: 20px 20px;
+    qproperty-iconNormal: url(":/app/example.png");
+    qproperty-iconSize: 18px 18px;
     min-width: 40px;
     border: none;
     padding: 0;
@@ -103,7 +116,7 @@
 QMenu {
     padding: 4px;
     background: #303030;
-    border: 1.25px solid transparent;
+    border: 1px solid transparent;
 }
 
 QMenu::indicator {
@@ -145,6 +158,10 @@
     background-color: #1E1E1E;
 }
 
+MainWindow[custom-style=true] {
+    background-color: transparent;
+}
+
 QWidget#clock-widget {
     font-size: 75px;
     color: #FEFEFE;

--
Gitblit v1.9.1