From 3e942c3dc8955be577079fbc028ce216e1c594b2 Mon Sep 17 00:00:00 2001 From: SineStriker <55847490+SineStriker@users.noreply.github.com> Date: 周二, 11 2月 2025 19:07:53 +0800 Subject: [PATCH] Fix numerous bugs (#162) --- examples/mainwindow/light-style.qss | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/examples/mainwindow/light-style.qss b/examples/mainwindow/light-style.qss index 9180001..1f7b4c9 100644 --- a/examples/mainwindow/light-style.qss +++ b/examples/mainwindow/light-style.qss @@ -1,13 +1,13 @@ /* Window bar */ QWK--WindowBar[bar-active=true] { - /*background-color: #195ABE;*/ - background-color: transparent; + background-color: #195ABE; + /* background-color: transparent; */ } QWK--WindowBar[bar-active=false] { - /*background-color: #195ABE;*/ - background-color: transparent; + background-color: #195ABE; + /* background-color: transparent; */ } @@ -32,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