From 6f4ab6474fa81556b1d90f6f87f8322282d054db Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周六, 08 2月 2025 21:46:13 +0800 Subject: [PATCH] fix unwanted title bar when special effect is enabled --- examples/mainwindow/dark-style.qss | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/mainwindow/dark-style.qss b/examples/mainwindow/dark-style.qss index e3820a0..09f32ab 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; } @@ -37,7 +39,7 @@ 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 { @@ -47,7 +49,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 { -- Gitblit v1.9.1