From e0d4b9310bcac0c18ba779c8edc150b8cb903218 Mon Sep 17 00:00:00 2001 From: ronso0 Date: Fri, 10 Feb 2023 11:22:29 +0100 Subject: [PATCH] skins: add focus indicator (right-click) to library sidebar items --- res/skins/Deere/style.qss | 11 +++++++++-- res/skins/LateNight/style_classic.qss | 11 ++++++++--- res/skins/Shade/style.qss | 11 +++++++++-- res/skins/Tango/style.qss | 8 ++++++++ 4 files changed, 34 insertions(+), 7 deletions(-) diff --git a/res/skins/Deere/style.qss b/res/skins/Deere/style.qss index bfe72df5aff8..f2d06b875895 100644 --- a/res/skins/Deere/style.qss +++ b/res/skins/Deere/style.qss @@ -229,6 +229,14 @@ WLibrarySidebar::item:selected, color: #D6D6D6; background-color: #006596; } +WLibrarySidebar::item:selected:focus { + outline: none; + border: 0px; +} +WLibrarySidebar::item:!selected:focus { + outline: none; + border: 1px solid white; +} /* Use the native focus decoration */ /* This is for all cells including Played and Location */ WTrackTableView, @@ -412,8 +420,7 @@ WSearchLineEdit { qproperty-layoutSpacing: 0; } -WLibrarySidebar, -WLibrarySidebar::item:focus { +WLibrarySidebar { outline: none; /* Spacing between treeview and preview deck/search bar */ margin: 0px; diff --git a/res/skins/LateNight/style_classic.qss b/res/skins/LateNight/style_classic.qss index 4a3b5b51aa8c..08415e122416 100644 --- a/res/skins/LateNight/style_classic.qss +++ b/res/skins/LateNight/style_classic.qss @@ -2071,6 +2071,14 @@ WTrackTableView::item:selected, color: #fff; background-color: #5e4507; } +WLibrarySidebar::item:selected:focus { + outline: none; + border: 0px; +} +WLibrarySidebar::item:!selected:focus { + outline: none; + border: 1px solid white; +} /* Use the native focus decoration */ /* This is for all cells including Played and Location */ @@ -2088,9 +2096,6 @@ WTrackTableView { WLibrarySidebar { show-decoration-selected: 0; -} -WLibrarySidebar, -WLibrarySidebar::item:focus { outline: none; } diff --git a/res/skins/Shade/style.qss b/res/skins/Shade/style.qss index ae60e8a8c9fa..0f6f4c3c6360 100644 --- a/res/skins/Shade/style.qss +++ b/res/skins/Shade/style.qss @@ -470,9 +470,16 @@ WLibrarySidebar::branch:selected, WSearchLineEdit::indicator { width: 0; } -WLibrarySidebar, -WLibrarySidebar::item:focus { +WLibrarySidebar { + outline: none; +} +WLibrarySidebar::item:selected:focus { + outline: none; + border: 0px; +} +WLibrarySidebar::item:!selected:focus { outline: none; + border: 1px solid white; } /* Use the native focus decoration */ diff --git a/res/skins/Tango/style.qss b/res/skins/Tango/style.qss index b66d65bec089..38a5f7c695b0 100644 --- a/res/skins/Tango/style.qss +++ b/res/skins/Tango/style.qss @@ -2650,6 +2650,14 @@ WLibrarySidebar::item:!selected { background-color: #0f0f0f; color: #999; } +WLibrarySidebar::item:selected:focus { + outline: none; + border: 0px; +} +WLibrarySidebar::item:!selected:focus { + outline: none; + border: 1px solid white; +} WTrackTableViewHeader { /* Don't set a font size to pick up the system font size. */