From 6945a197490e7aa0113bca1f9a13019a27b5d8eb Mon Sep 17 00:00:00 2001 From: Joker <joker2387089590@gmail.com> Date: 周三, 18 6月 2025 23:10:25 +0800 Subject: [PATCH] change submodule url --- examples/mainwindow/light-style.qss | 32 +++++++++++++++++++++++--------- 1 files changed, 23 insertions(+), 9 deletions(-) diff --git a/examples/mainwindow/light-style.qss b/examples/mainwindow/light-style.qss index b2b7287..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, @@ -103,8 +115,8 @@ QMenu { padding: 4px; - background: #303030; - border: 1.25px solid transparent; + background: white; + border: 1px solid #E0E0E0; } QMenu::indicator { @@ -119,23 +131,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 +156,10 @@ background-color: #F3F3F3; } +MainWindow[custom-style=true] { + background-color: transparent; +} + QWidget#clock-widget { font-size: 75px; color: #333333; -- Gitblit v1.9.1