Skip to content

Commit

Permalink
skins: add focus indicator (right-click) to library sidebar items
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Feb 10, 2023
1 parent a21dc9b commit e0d4b93
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 7 deletions.
11 changes: 9 additions & 2 deletions res/skins/Deere/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down
11 changes: 8 additions & 3 deletions res/skins/LateNight/style_classic.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -2088,9 +2096,6 @@ WTrackTableView {

WLibrarySidebar {
show-decoration-selected: 0;
}
WLibrarySidebar,
WLibrarySidebar::item:focus {
outline: none;
}

Expand Down
11 changes: 9 additions & 2 deletions res/skins/Shade/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
8 changes: 8 additions & 0 deletions res/skins/Tango/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit e0d4b93

Please sign in to comment.