From 506047e896f8014a373187ffb2bc64094e5079f7 Mon Sep 17 00:00:00 2001 From: Razin Shaikh Date: Wed, 31 Jul 2024 22:33:06 +0100 Subject: [PATCH] highlight close button hover; make selected tabs slightly lighter --- zxlive/mainwindow.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zxlive/mainwindow.py b/zxlive/mainwindow.py index 4af2b3d..2e343c7 100644 --- a/zxlive/mainwindow.py +++ b/zxlive/mainwindow.py @@ -84,7 +84,7 @@ def __init__(self) -> None: tab_widget.setStyleSheet( f''' QTabBar::Tab:hover {{ - background-color: rgba(100, 190, 255, 50); + background-color: rgba(100, 190, 255, 30); }} QTabBar::Tab{{ padding: 8px; @@ -97,7 +97,7 @@ def __init__(self) -> None: margin-right: 0px; }} QTabBar::tab:selected {{ - background-color: rgba(100, 190, 255, 75); + background-color: rgba(100, 190, 255, 50); }} QTabBar::close-button{{ background-image: url("zxlive/icons/close.svg"); @@ -107,6 +107,9 @@ def __init__(self) -> None: subcontrol-origin: padding; padding: 10px; }} + QTabBar::close-button:hover{{ + background-color: rgba(140, 140, 140, 90); + }} ''') self.tab_widget = tab_widget