From c83b1257ae8fdea9880b2a7bfbb7567852783752 Mon Sep 17 00:00:00 2001 From: ronso0 Date: Fri, 8 Dec 2023 02:04:30 +0100 Subject: [PATCH] LateNight: fix library radio buttons (Analyze) * fixed size * background: -> image: --- .../buttons/btn__lib_radio_button_gold_on.svg | 4 -- .../btn__lib_radio_button_yellow_on.svg | 1 - res/skins/LateNight/style.qss | 9 +++-- res/skins/LateNight/style_classic.qss | 16 +++++--- res/skins/LateNight/style_palemoon.qss | 37 +++++++------------ 5 files changed, 29 insertions(+), 38 deletions(-) delete mode 100644 res/skins/LateNight/classic/buttons/btn__lib_radio_button_gold_on.svg delete mode 100644 res/skins/LateNight/classic/buttons/btn__lib_radio_button_yellow_on.svg diff --git a/res/skins/LateNight/classic/buttons/btn__lib_radio_button_gold_on.svg b/res/skins/LateNight/classic/buttons/btn__lib_radio_button_gold_on.svg deleted file mode 100644 index af13df7919d2..000000000000 --- a/res/skins/LateNight/classic/buttons/btn__lib_radio_button_gold_on.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/res/skins/LateNight/classic/buttons/btn__lib_radio_button_yellow_on.svg b/res/skins/LateNight/classic/buttons/btn__lib_radio_button_yellow_on.svg deleted file mode 100644 index 5207747fc87b..000000000000 --- a/res/skins/LateNight/classic/buttons/btn__lib_radio_button_yellow_on.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/res/skins/LateNight/style.qss b/res/skins/LateNight/style.qss index 0892c091fc66..a7572edc9d4b 100644 --- a/res/skins/LateNight/style.qss +++ b/res/skins/LateNight/style.qss @@ -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 { diff --git a/res/skins/LateNight/style_classic.qss b/res/skins/LateNight/style_classic.qss index 9ea9d60dd30e..c9b9ef46eb0b 100644 --- a/res/skins/LateNight/style_classic.qss +++ b/res/skins/LateNight/style_classic.qss @@ -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 */ diff --git a/res/skins/LateNight/style_palemoon.qss b/res/skins/LateNight/style_palemoon.qss index 2966410dab33..a15cbc03e93e 100644 --- a/res/skins/LateNight/style_palemoon.qss +++ b/res/skins/LateNight/style_palemoon.qss @@ -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 @@ -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;