Skip to content

Commit

Permalink
LateNight: fix library radio buttons (Analyze)
Browse files Browse the repository at this point in the history
* fixed size
* background: -> image:
  • Loading branch information
ronso0 committed Dec 8, 2023
1 parent b978dad commit c83b125
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 38 deletions.

This file was deleted.

This file was deleted.

9 changes: 5 additions & 4 deletions res/skins/LateNight/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -841,14 +841,15 @@ WEffectChainPresetButton::menu-indicator {
min-width: 40px;
}

/* Extra declaration for QRadioButton otherwise it shows up with wrong colors in
Linux with Gnome */
#LibraryFeatureControls QLabel,
#LibraryFeatureControls QRadioButton {
background: transparent;
}

/* Additional space for QRadionButtons */
#LibraryFeatureControls QRadioButton {
margin: 2px 3px 2px 3px;
#LibraryFeatureControls QRadioButton::indicator {
width: 18px;
height: 18px;
}
/* Push 'New' radio button away from corner */
QRadioButton#radioButtonRecentlyAdded {
Expand Down
16 changes: 10 additions & 6 deletions res/skins/LateNight/style_classic.qss
Original file line number Diff line number Diff line change
Expand Up @@ -2362,13 +2362,17 @@ WSearchLineEdit {


/************ Library feature controls / tree view / table view *************/
WLibrary QRadioButton::indicator:checked {
background: url(skin:../LateNight/classic/buttons/btn__lib_radio_button_on_yellow.svg) center center;
}

WLibrary QRadioButton::indicator:unchecked {
background: url(skin:../LateNight/classic/buttons/btn__lib_radio_button_off.svg) center center;
}
/* Additional space */
#LibraryFeatureControls QRadioButton {
margin: 2px 3px 2px 3px;
}
#LibraryFeatureControls QRadioButton::indicator:checked {
image: url(skin:../LateNight/classic/buttons/btn__lib_radio_button_on_yellow.svg) center center;
}
#LibraryFeatureControls QRadioButton::indicator:unchecked {
image: url(skin:../LateNight/classic/buttons/btn__lib_radio_button_off.svg) center center;
}

/* triangle for closed/opened branches in treeview */
/* closed */
Expand Down
37 changes: 14 additions & 23 deletions res/skins/LateNight/style_palemoon.qss
Original file line number Diff line number Diff line change
Expand Up @@ -2824,21 +2824,16 @@ WSearchLineEdit {
}
/************ splitters ***********************/


/* Extra declaration for QRadioButton otherwise it shows up with wrong colors in
Linux with Gnome */
#LibraryFeatureControls QLabel,
#LibraryFeatureControls QRadioButton {
background: transparent;
}

#LibraryFeatureControls QRadioButton::indicator:checked {
image: url(skin:../LateNight/palemoon/buttons/btn__lib_radio_button_on_blue.svg) center center;
}

#LibraryFeatureControls QRadioButton::indicator:unchecked {
image: url(skin:../LateNight/palemoon/buttons/btn__lib_radio_button_off.svg) center center;
}
/* bottom margin! */
margin: 6px 3px 4px 3px;
}
#LibraryFeatureControls QRadioButton::indicator:checked {
image: url(skin:../LateNight/palemoon/buttons/btn__lib_radio_button_on_blue.svg) center center;
}
#LibraryFeatureControls QRadioButton::indicator:unchecked {
image: url(skin:../LateNight/palemoon/buttons/btn__lib_radio_button_off.svg) center center;
}

/* Library feature pushbuttons
Don't use 'WLibrary QPushButton' here, as this would apply padding
Expand All @@ -2852,15 +2847,11 @@ WSearchLineEdit {
/* #fadeModeCombobox set below */
#spinBoxTransition {
margin-top: 4px;
}
#LibraryFeatureControls QRadioButton {
/* bottom margin! */
margin: 6px 3px 4px 3px;
}
QLabel#labelProgress, /* Analysis progress */
QLabel#labelSelectionInfo /* AutoDJ track selection info */ {
margin: 4px 5px 5px 1px;
}
}
QLabel#labelProgress, /* Analysis progress */
QLabel#labelSelectionInfo /* AutoDJ track selection info */ {
margin: 4px 5px 5px 1px;
}

WLibrarySidebar {
show-decoration-selected: 0;
Expand Down

0 comments on commit c83b125

Please sign in to comment.