Skip to content

Commit

Permalink
'Kvantum' .qss whitespace clean-up (#83)
Browse files Browse the repository at this point in the history
* 'kvantum' qss whitespace cleanup

* newline for rules with no properties
  • Loading branch information
ianfarrell47 authored Nov 4, 2022
1 parent 017d3c6 commit 3b9c580
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 53 deletions.
2 changes: 1 addition & 1 deletion themes/kvantum/lxqt-config.qss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
QAbstractItemView {
icon-size: 32px;
icon-size: 32px;
}
12 changes: 5 additions & 7 deletions themes/kvantum/lxqt-notificationd.qss
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
Notification {
/*background-color:rgba(0, 0, 0, 75%);
/* background-color: rgba(0, 0, 0, 75%);
border-top: 1px solid rgba(50, 50, 50, 80%);
border-left: 1px solid rgba(40, 40, 40, 80%);*/

background-color:rgba(20, 20, 20, 90%);
border-left: 1px solid rgba(40, 40, 40, 80%); */
background-color: rgba(20, 20, 20, 90%);
border-top: 1px solid rgba(50, 50, 50, 70%);
border-left: 1px solid rgba(40, 40, 40, 70%);

border-radius: 2px;
margin: 0px;
}
Expand All @@ -17,7 +15,7 @@ QLabel {

#appLabel {
color: #c8c8c8;
/*font: normal;*/
/* font: normal; */
font-style: italic;
}

Expand All @@ -37,5 +35,5 @@ QToolButton:hover {
}

QToolButton:pressed {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 40%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 40%));
}
72 changes: 36 additions & 36 deletions themes/kvantum/lxqt-panel.qss
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,25 @@
LXQtPanel {
color: white;
}

LXQtPanel #BackgroundWidget {
color:white;
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(80, 80, 80, 80%), stop:0.11 rgba(60, 60, 60, 80%), stop:0.12 rgba(60, 60, 60, 80%), stop:1 rgba(0, 0, 0, 72%));
color: white;
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(80, 80, 80, 80%), stop:0.11 rgba(60, 60, 60, 80%), stop:0.12 rgba(60, 60, 60, 80%), stop:1 rgba(0, 0, 0, 72%));
}

/* PositionBottom */
LXQtPanel[position="Bottom"] #BackgroundWidget {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(80, 80, 80, 80%), stop:0.11 rgba(60, 60, 60, 80%), stop:0.12 rgba(60, 60, 60, 80%), stop:1 rgba(0, 0, 0, 72%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(80, 80, 80, 80%), stop:0.11 rgba(60, 60, 60, 80%), stop:0.12 rgba(60, 60, 60, 80%), stop:1 rgba(0, 0, 0, 72%));
}

/* PositionLeft */
LXQtPanel[position="Left"] #BackgroundWidget {
background-color:qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgba(80, 80, 80, 80%), stop:0.11 rgba(60, 60, 60, 80%), stop:0.12 rgba(60, 60, 60, 80%), stop:1 rgba(0, 0, 0, 72%));
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgba(80, 80, 80, 80%), stop:0.11 rgba(60, 60, 60, 80%), stop:0.12 rgba(60, 60, 60, 80%), stop:1 rgba(0, 0, 0, 72%));
}

/* PositionRight */
LXQtPanel[position="Right"] #BackgroundWidget {
background-color:qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgba(80, 80, 80, 80%), stop:0.11 rgba(60, 60, 60, 80%), stop:0.12 rgba(60, 60, 60, 80%), stop:1 rgba(0, 0, 0, 72%));
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgba(80, 80, 80, 80%), stop:0.11 rgba(60, 60, 60, 80%), stop:0.12 rgba(60, 60, 60, 80%), stop:1 rgba(0, 0, 0, 72%));
}

/*
Expand Down Expand Up @@ -66,7 +67,7 @@ Plugin > QWidget > QToolButton {
Plugin > QToolButton:pressed,
Plugin > QWidget > QToolButton:pressed {
margin: 3px 1px 0 1px;
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 20%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 20%));
border: none;
}

Expand Down Expand Up @@ -107,8 +108,7 @@ LXQtPanel[position="Right"] Plugin > QWidget > QToolButton:pressed {
}

LXQtPanel[position="0"] #DesktopSwitch QToolButton,
LXQtPanel[position="1"] #DesktopSwitch QToolButton
{
LXQtPanel[position="1"] #DesktopSwitch QToolButton {
margin-bottom: 0px;
margin-top: 0px;
}
Expand Down Expand Up @@ -143,7 +143,7 @@ LXQtPanel[position="1"] #DesktopSwitch QToolButton
}

#QuickLaunch QToolButton:pressed {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 20%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 20%));
}

/*
Expand All @@ -157,15 +157,15 @@ LXQtPanel[position="1"] #DesktopSwitch QToolButton
}

#TaskBar QToolButton:on {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #3a5f84, stop:0.31 #345372, stop:0.32 #2e4964, stop:1 #4584be);
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #3a5f84, stop:0.31 #345372, stop:0.32 #2e4964, stop:1 #4584be);
}

#TaskBar QToolButton:hover {
background: rgba(255, 255, 255, 20%);
}

#TaskBar QToolButton:hover:on {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #436d98, stop:0.31 #385a7c, stop:0.32 #375778, stop:1 #488cc8);
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #436d98, stop:0.31 #385a7c, stop:0.32 #375778, stop:1 #488cc8);
}

#TaskBar QToolButton[urgent="true"] {
Expand All @@ -175,7 +175,7 @@ LXQtPanel[position="1"] #DesktopSwitch QToolButton
}

#TaskBar LXQtGroupPopup {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(69, 69, 69, 80%), stop:0.25 rgba(63, 63, 63, 80%), stop: 0.5 rgba(53, 53, 53, 80%), stop: 0.75 rgba(45, 45, 45, 80%), stop:1 rgba(22, 22, 22, 80%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(69, 69, 69, 80%), stop:0.25 rgba(63, 63, 63, 80%), stop: 0.5 rgba(53, 53, 53, 80%), stop: 0.75 rgba(45, 45, 45, 80%), stop:1 rgba(22, 22, 22, 80%));
border-radius: 3px;
}

Expand Down Expand Up @@ -218,7 +218,7 @@ QToolTip {
* Line-edit
*/
#MainMenu QLineEdit {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #141414, stop:0.2 #232323, stop:0.98 #242424 stop:1 #323232);
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #141414, stop:0.2 #232323, stop:0.98 #242424 stop:1 #323232);
border: 1px solid #000000;
border-left-color: #0a0a0a;
border-bottom-color: #414141;
Expand All @@ -245,7 +245,7 @@ QMenu {
border-bottom-color: rgba(20, 20, 20, 50%);
border-right-color: rgba(40, 40, 40, 50%);
border-left-color: rgba(70, 70, 70, 50%);
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(75, 75, 75, 92%), stop:0.02 rgba(73, 73, 73, 92%), stop:0.2 rgba(58, 58, 58, 92%), stop:1 rgba(52, 52, 52, 92%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(75, 75, 75, 92%), stop:0.02 rgba(73, 73, 73, 92%), stop:0.2 rgba(58, 58, 58, 92%), stop:1 rgba(52, 52, 52, 92%));
border-radius: 3px;
color: white;
}
Expand Down Expand Up @@ -277,7 +277,7 @@ QMenu::item {
}

QMenu::item:selected {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(90, 90, 90), stop:0.05 rgb(60, 60, 60), stop:0.95 rgb(25, 25, 25), stop:1 rgb(10, 10, 10));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(90, 90, 90), stop:0.05 rgb(60, 60, 60), stop:0.95 rgb(25, 25, 25), stop:1 rgb(10, 10, 10));
color: #4DA6FF;
}

Expand Down Expand Up @@ -364,7 +364,7 @@ TrayIcon {
}

#MainMenu ActionView::item:selected {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #55aaff, stop:0.05 #0064c8, stop:0.95 #0050a0, stop:1 #001428);
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #55aaff, stop:0.05 #0064c8, stop:0.95 #0050a0, stop:1 #001428);
color: white;
}

Expand All @@ -374,7 +374,7 @@ TrayIcon {
}

#MainMenu ActionView::item:selected:hover {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #55aaff, stop:0.05 #006edc, stop:0.95 #005ab4, stop:1 #001e3c);
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #55aaff, stop:0.05 #006edc, stop:0.95 #005ab4, stop:1 #001e3c);
color: white;
}

Expand Down Expand Up @@ -409,7 +409,7 @@ TrayIcon {
* Mount plugin
*/
#LXQtMountPopup {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #595959, stop:0.25 #535353, stop: 0.5 #494949, stop: 0.75 #414141, stop:1 #2A2A2A);
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #595959, stop:0.25 #535353, stop: 0.5 #494949, stop: 0.75 #414141, stop:1 #2A2A2A);
border: 1px solid #2A2A2A;
padding: 2px;
}
Expand Down Expand Up @@ -460,7 +460,7 @@ VolumePopup > QPushButton:hover {
}

VolumePopup > QPushButton:pressed {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 20%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 20%));
border: none;
}

Expand All @@ -476,7 +476,7 @@ VolumePopup {
border-bottom-color: rgba(20, 20, 20, 100%);
border-right-color: rgba(40, 40, 40, 100%);
border-left-color: rgba(70, 70, 70, 100%);
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(75, 75, 75, 100%), stop:0.02 rgba(73, 73, 73, 100%), stop:0.2 rgba(58, 58, 58, 100%), stop:1 rgba(52, 52, 52, 100%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(75, 75, 75, 100%), stop:0.02 rgba(73, 73, 73, 100%), stop:0.2 rgba(58, 58, 58, 100%), stop:1 rgba(52, 52, 52, 100%));
border-radius: 0px;
color: white;
}
Expand All @@ -487,12 +487,12 @@ VolumePopup > QSlider {
}

VolumePopup > QSlider::groove:vertical {
background-color:qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #2e4964, stop:1 #4d8fd2);
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #2e4964, stop:1 #4d8fd2);
width: 3px;
}

VolumePopup > QSlider::sub-page:vertical {
background-color:qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgba(15, 15, 15, 100%), stop:1 rgba(110, 110, 110, 100%));
VolumePopup > QSlider::sub-page:vertical {
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgba(15, 15, 15, 100%), stop:1 rgba(110, 110, 110, 100%));
}

VolumePopup > QSlider::handle:vertical {
Expand Down Expand Up @@ -521,7 +521,7 @@ VolumePopup > QSlider::handle:vertical {
}

#Backlight > SliderDialog > QToolButton:pressed {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 20%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 20%));
border: none;
}

Expand All @@ -532,7 +532,7 @@ VolumePopup > QSlider::handle:vertical {
border-bottom-color: rgba(20, 20, 20, 100%);
border-right-color: rgba(40, 40, 40, 100%);
border-left-color: rgba(70, 70, 70, 100%);
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(75, 75, 75, 100%), stop:0.02 rgba(73, 73, 73, 100%), stop:0.2 rgba(58, 58, 58, 100%), stop:1 rgba(52, 52, 52, 100%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(75, 75, 75, 100%), stop:0.02 rgba(73, 73, 73, 100%), stop:0.2 rgba(58, 58, 58, 100%), stop:1 rgba(52, 52, 52, 100%));
border-radius: 0px;
color: white;
}
Expand All @@ -543,12 +543,12 @@ VolumePopup > QSlider::handle:vertical {
}

#Backlight > SliderDialog > QSlider::groove:vertical {
background-color:qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #2e4964, stop:1 #4d8fd2);
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #2e4964, stop:1 #4d8fd2);
width: 3px;
}

#Backlight > SliderDialog > QSlider::sub-page:vertical {
background-color:qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgba(15, 15, 15, 100%), stop:1 rgba(110, 110, 110, 100%));
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgba(15, 15, 15, 100%), stop:1 rgba(110, 110, 110, 100%));
}

#Backlight > SliderDialog > QSlider::handle:vertical {
Expand Down Expand Up @@ -680,35 +680,35 @@ QCalendarWidget #qt_calendar_navigationbar {
}

QCalendarWidget #qt_calendar_nextmonth {
max-height:20px;
min-height:20px;
max-height: 20px;
min-height: 20px;
border: 1px solid transparent;
border-radius: 3px;
qproperty-icon: url(/lxqt-panel/arrow-right.svg);
margin: 3px;
padding:3px
padding: 3px
}

QCalendarWidget #qt_calendar_nextmonth:hover {
background-color: rgba(255, 255, 255, 10%);
}

QCalendarWidget #qt_calendar_prevmonth {
max-height:20px;
min-height:20px;
max-height: 20px;
min-height: 20px;
border: 1px solid transparent;
border-radius: 3px;
qproperty-icon: url(/lxqt-panel/arrow-left.svg);
margin: 3px;
padding:3px
padding: 3px
}

QCalendarWidget #qt_calendar_prevmonth:hover {
background-color: rgba(255, 255, 255, 10%);
}

QCalendarWidget #qt_calendar_monthbutton::menu-indicator {
image: none;
image: none;
}

QCalendarWidget #qt_calendar_monthbutton,
Expand All @@ -720,13 +720,14 @@ QCalendarWidget #qt_calendar_yearbutton {
color: white;
background-color: transparent;
}

QCalendarWidget #qt_calendar_monthbutton:hover,
QCalendarWidget #qt_calendar_yearbutton:hover {
background-color: rgba(255, 255, 255, 10%);
}

QCalendarWidget QMenu { /* it was changed in "QCalendarWidget QWidget" */
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(75, 75, 75, 92%), stop:0.02 rgba(73, 73, 73, 92%), stop:0.2 rgba(58, 58, 58, 92%), stop:1 rgba(52, 52, 52, 92%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(75, 75, 75, 92%), stop:0.02 rgba(73, 73, 73, 92%), stop:0.2 rgba(58, 58, 58, 92%), stop:1 rgba(52, 52, 52, 92%));
}

QCalendarWidget QSpinBox {
Expand Down Expand Up @@ -787,7 +788,6 @@ QCalendarWidget QSpinBox::down-arrow:pressed {
/*
* Spacer
*/

#Spacer {
background-position: center center;
}
Expand Down
18 changes: 9 additions & 9 deletions themes/kvantum/lxqt-runner.qss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Dialog {
}

#panel {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(100, 100, 100, 80%), stop:0.11 rgba(80, 80, 80, 80%), stop:0.12 rgba(80, 80, 80, 80%), stop:1 rgba(0, 0, 0, 72%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(100, 100, 100, 80%), stop:0.11 rgba(80, 80, 80, 80%), stop:0.12 rgba(80, 80, 80, 80%), stop:1 rgba(0, 0, 0, 72%));
border-radius: 3px;
}

Expand All @@ -23,19 +23,19 @@ Dialog {

#closeButton:pressed,
#actionButton:pressed {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 40%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 20%), stop:1 rgba(255, 255, 255, 40%));
border: none;
}

#closeButton {
qproperty-icon: url(lxqt-runner/close.svg);
qproperty-icon: url(lxqt-runner/close.svg);
}

#actionButton {
qproperty-icon: url(lxqt-runner/down.svg);
}

#actionButton::menu-indicator {
#actionButton::menu-indicator {
image: none;
}

Expand All @@ -46,7 +46,7 @@ QMenu {
border-bottom-color: rgba(20, 20, 20, 50%);
border-right-color: rgba(40, 40, 40, 50%);
border-left-color: rgba(70, 70, 70, 50%);
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(75, 75, 75, 92%), stop:0.02 rgba(73, 73, 73, 92%), stop:0.2 rgba(58, 58, 58, 92%), stop:1 rgba(52, 52, 52, 92%));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(75, 75, 75, 92%), stop:0.02 rgba(73, 73, 73, 92%), stop:0.2 rgba(58, 58, 58, 92%), stop:1 rgba(52, 52, 52, 92%));
border-radius: 3px;
color: white;
}
Expand Down Expand Up @@ -76,7 +76,7 @@ QMenu::item {
}

QMenu::item:selected {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(90, 90, 90), stop:0.05 rgb(60, 60, 60), stop:0.95 rgb(25, 25, 25), stop:1 rgb(10, 10, 10));
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(90, 90, 90), stop:0.05 rgb(60, 60, 60), stop:0.95 rgb(25, 25, 25), stop:1 rgb(10, 10, 10));
color: #4DA6FF;
}

Expand Down Expand Up @@ -128,7 +128,7 @@ QMenu::indicator:exclusive:checked {
}

#commandEd {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #141414, stop:0.2 #232323, stop:0.98 #242424 stop:1 #323232);
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #141414, stop:0.2 #232323, stop:0.98 #242424 stop:1 #323232);
border: 1px solid #000000;
border-left-color: #0a0a0a;
border-bottom-color: #414141;
Expand Down Expand Up @@ -165,7 +165,7 @@ QMenu::indicator:exclusive:checked {
}

#commandList::item:selected {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #55aaff, stop:0.05 #0064c8, stop:0.95 #0050a0, stop:1 #001428);
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #55aaff, stop:0.05 #0064c8, stop:0.95 #0050a0, stop:1 #001428);
color: white;
}

Expand All @@ -175,7 +175,7 @@ QMenu::indicator:exclusive:checked {
}

#commandList::item:selected:hover {
background-color:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #55aaff, stop:0.05 #006edc, stop:0.95 #005ab4, stop:1 #001e3c);
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #55aaff, stop:0.05 #006edc, stop:0.95 #005ab4, stop:1 #001e3c);
color: white;
}

Expand Down

0 comments on commit 3b9c580

Please sign in to comment.