Skip to content

Commit

Permalink
highlight close button hover; make selected tabs slightly lighter
Browse files Browse the repository at this point in the history
  • Loading branch information
RazinShaikh committed Jul 31, 2024
1 parent 35843c0 commit 506047e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zxlive/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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");
Expand All @@ -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

Expand Down

0 comments on commit 506047e

Please sign in to comment.