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/light-style.qss | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/examples/mainwindow/light-style.qss b/examples/mainwindow/light-style.qss index c314c7f..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, -- Gitblit v1.9.1