|
Kite |
8c766d |
|
|
Kite |
8c766d |
// The Less compiler has trouble compiling Qt selectors when they have been
|
|
Kite |
8c766d |
// extended to, so extend Qt selectors to mixins as workaround for now
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
/* -----------------------------------------------------------------------------
|
|
Kite |
8c766d |
Push Button
|
|
Kite |
8c766d |
----------------------------------------------------------------------------- */
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
.Button {
|
|
Kite |
8c766d |
background-color: @button-bg-color;
|
|
Kite |
8c766d |
border: 1 solid @button-border-color;
|
|
Kite |
8c766d |
border-radius: 2;
|
|
Kite |
8c766d |
color: @button-text-color;
|
|
Kite |
8c766d |
margin: 0;
|
|
Kite |
8c766d |
padding: 3 15;
|
|
Kite |
8c766d |
&:hover {
|
|
Kite |
8c766d |
background-color: @button-bg-color-hover;
|
|
Kite |
8c766d |
border-color: @button-border-color-hover;
|
|
Kite |
8c766d |
color: @button-text-color-hover;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:pressed {
|
|
Kite |
8c766d |
background-color: @button-bg-color-pressed;
|
|
Kite |
8c766d |
border-color: @button-border-color-pressed;
|
|
Kite |
8c766d |
color: @button-text-color-pressed;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:checked {
|
|
Kite |
8c766d |
background-color: @button-bg-color-checked;
|
|
Kite |
8c766d |
border-color: @button-border-color-checked;
|
|
Kite |
8c766d |
color: @button-text-color-checked;
|
|
Kite |
8c766d |
&:hover {
|
|
Kite |
8c766d |
background-color: @button-bg-color-checked-hover;
|
|
Kite |
8c766d |
&:pressed {
|
|
Kite |
8c766d |
background: @button-bg-color-checked-hover-pressed;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:disabled {
|
|
Kite |
8c766d |
background-color: @button-bg-color-disabled;
|
|
Kite |
8c766d |
border-color: @button-border-color-disabled;
|
|
Kite |
8c766d |
color: @button-text-color-disabled;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
QPushButton {
|
|
Kite |
8c766d |
&:extend(.Button all);
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
#PushButton_NoPadding {
|
|
Kite |
8c766d |
padding: 3;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
/* -----------------------------------------------------------------------------
|
|
Kite |
8c766d |
Combo Box
|
|
Kite |
8c766d |
----------------------------------------------------------------------------- */
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
.ComboBox {
|
|
Kite |
8c766d |
&:extend(.Button);
|
|
Kite |
8c766d |
padding: 1 0 1 4;
|
|
Kite |
8c766d |
margin: 1 0;
|
|
Kite |
8c766d |
&:hover {
|
|
Kite |
8c766d |
&:extend(.Button:hover);
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:checked {
|
|
Kite |
8c766d |
&:extend(.ComboBox);
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:disabled {
|
|
Kite |
8c766d |
&:extend(.Button:disabled);
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&::drop-down {
|
|
Kite |
8c766d |
image: url('@{img-url}/combo_downarrow.svg');
|
|
Kite |
8c766d |
image-position: center center;
|
|
Kite |
8c766d |
width: 16;
|
|
Kite |
8c766d |
&:disabled {
|
|
Kite |
8c766d |
image: url('@{img-url}/combo_downarrow_disabled.svg');
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
& QAbstractItemView {
|
|
Kite |
8c766d |
background-color: @menu-bg-color;
|
|
Kite |
8c766d |
border: 1 solid @menu-border-color;
|
|
Kite |
8c766d |
selection-background-color: @hl-bg-color;
|
|
Kite |
8c766d |
selection-color: @hl-text-color;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
QComboBox {
|
|
Kite |
8c766d |
&:extend(.ComboBox all);
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
/* -----------------------------------------------------------------------------
|
|
Kite |
8c766d |
Textfield
|
|
Kite |
8c766d |
----------------------------------------------------------------------------- */
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
.LineEdit {
|
|
Kite |
8c766d |
background-color: @input-bg-color;
|
|
Kite |
8c766d |
border: 1 solid @input-border-color;
|
|
Kite |
8c766d |
border-radius: 2;
|
|
Kite |
8c766d |
color: @input-text-color;
|
|
Kite |
8c766d |
selection-background-color: @input-selection-bg-color;
|
|
Kite |
8c766d |
selection-color: @input-selection-text-color;
|
|
Kite |
8c766d |
padding: 0 0 0 1;
|
|
Kite |
8c766d |
&:focus {
|
|
Kite |
8c766d |
background-color: @input-bg-color-focus;
|
|
Kite |
8c766d |
border-color: @input-border-color-focus;
|
|
Kite |
8c766d |
color: @input-text-color-focus;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:disabled {
|
|
Kite |
8c766d |
background-color: @input-bg-color-disabled;
|
|
Kite |
8c766d |
border-color: @input-border-color-disabled;
|
|
Kite |
8c766d |
color: @input-text-color-disabled;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
QLineEdit {
|
|
Kite |
8c766d |
&:extend(.LineEdit all);
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
/* -----------------------------------------------------------------------------
|
|
Kite |
8c766d |
CheckBox
|
|
Kite |
8c766d |
----------------------------------------------------------------------------- */
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
.CheckBox {
|
|
Kite |
8c766d |
color: @text-color;
|
|
Kite |
8c766d |
&:hover {
|
|
Kite |
8c766d |
color: @checkbox-text-color-hover;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:disabled {
|
|
Kite |
8c766d |
color: @text-color-disabled;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&::indicator {
|
|
Kite |
8c766d |
background-color: @checkbox-bg-color;
|
|
Kite |
8c766d |
border: 1 solid @checkbox-border-color;
|
|
Kite |
8c766d |
border-radius: 2;
|
|
Kite |
8c766d |
height: 9; /* fix for QGroupBox */
|
|
Kite |
8c766d |
padding: 1;
|
|
Kite |
8c766d |
width: 9; /* fix for QMenu */
|
|
Kite |
8c766d |
&:hover {
|
|
Kite |
8c766d |
background-color: @checkbox-bg-color-hover;
|
|
Kite |
8c766d |
border-color: @checkbox-border-color-hover;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:checked {
|
|
Kite |
8c766d |
background-color: @checkbox-bg-color-checked;
|
|
Kite |
8c766d |
border-color: @checkbox-border-color-checked;
|
|
Kite |
8c766d |
image: url('@{img-url}/checkmark.svg');
|
|
Kite |
8c766d |
&:hover {
|
|
Kite |
8c766d |
&:extend(.CheckBox::indicator:hover);
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:disabled {
|
|
Kite |
8c766d |
background-color: @checkbox-bg-color-disabled;
|
|
Kite |
8c766d |
border-color: @checkbox-border-color-disabled;
|
|
Kite |
8c766d |
image: url('@{img-url}/checkmark_disabled.svg');
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:disabled {
|
|
Kite |
8c766d |
background-color: @checkbox-bg-color-disabled;
|
|
Kite |
8c766d |
border-color: @checkbox-border-color-disabled;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
QCheckBox {
|
|
Kite |
8c766d |
&:extend(.CheckBox all);
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
/* -----------------------------------------------------------------------------
|
|
Kite |
8c766d |
Radio Button
|
|
Kite |
8c766d |
----------------------------------------------------------------------------- */
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
.RadioButton {
|
|
Kite |
6ecce0 |
&:hover {
|
|
Kite |
6ecce0 |
&:extend(.CheckBox:hover);
|
|
Kite |
6ecce0 |
}
|
|
Kite |
8c766d |
&::indicator {
|
|
Kite |
8c766d |
&:unchecked {
|
|
Kite |
8c766d |
image: url('@{img-url}/radiobutton_unchecked.svg');
|
|
Kite |
8c766d |
image-position: center center;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:checked {
|
|
Kite |
8c766d |
image: url('@{img-url}/radiobutton_checked.svg');
|
|
Kite |
8c766d |
image-position: center center;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
QRadioButton {
|
|
Kite |
8c766d |
&:extend(.RadioButton all);
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
/* -----------------------------------------------------------------------------
|
|
Kite |
8c766d |
GroupBox
|
|
Kite |
8c766d |
----------------------------------------------------------------------------- */
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
.GroupBox {
|
|
Kite |
8c766d |
&:extend(.frame all);
|
|
Kite |
8c766d |
margin: 6 0 0 0;
|
|
Kite |
8c766d |
padding: 5 0;
|
|
Kite |
8c766d |
&::title {
|
|
Kite |
8c766d |
subcontrol-origin: margin;
|
|
Kite |
8c766d |
left: 15;
|
|
Kite |
8c766d |
margin: -3 0 0 0;
|
|
Kite |
8c766d |
padding: 0 3;
|
|
Kite |
8c766d |
&:hover {
|
|
Kite |
8c766d |
color: @checkbox-text-color-hover;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:disabled {
|
|
Kite |
8c766d |
color: @text-color-disabled;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&::indicator {
|
|
Kite |
8c766d |
&:extend(.CheckBox::indicator all);
|
|
Kite |
8c766d |
subcontrol-origin: margin;
|
|
Kite |
8c766d |
margin-top: 2;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&:disabled {
|
|
Kite |
8c766d |
color: @text-color-disabled;
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
QGroupBox {
|
|
Kite |
8c766d |
&:extend(.GroupBox all);
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
/* -----------------------------------------------------------------------------
|
|
Kite |
8c766d |
Slider
|
|
Kite |
8c766d |
----------------------------------------------------------------------------- */
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
.Slider {
|
|
Kite |
8c766d |
&::groove:horizontal {
|
|
Kite |
8c766d |
background-color: transparent;
|
|
Kite |
8c766d |
background-image: url('@{img-url}/@{slider-groove-img}');
|
|
Kite |
8c766d |
background-position: center center;
|
|
Kite |
8c766d |
background-repeat: repeat-x;
|
|
Kite |
8c766d |
margin: 0;
|
|
Kite |
8c766d |
height: 20;
|
|
Kite |
8c766d |
min-height: 20;
|
|
Kite |
8c766d |
&:disabled {
|
|
Kite |
8c766d |
background-image: url('@{img-url}/@{slider-groove-img-disabled}');
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
&::handle:horizontal {
|
|
Kite |
8c766d |
width: @slider-handle-width;
|
|
Kite |
8c766d |
margin: @slider-handle-margin;
|
|
Kite |
8c766d |
image: url('@{img-url}/@{slider-handle-img}');
|
|
Kite |
8c766d |
&:disabled {
|
|
Kite |
8c766d |
image: url('@{img-url}/@{slider-handle-img-disabled}');
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
QSlider {
|
|
Kite |
8c766d |
&:extend(.Slider all);
|
|
Kite |
8c766d |
}
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
/* -----------------------------------------------------------------------------
|
|
Kite |
8c766d |
Double Slider
|
|
Kite |
8c766d |
----------------------------------------------------------------------------- */
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
#IntPairField,
|
|
Kite |
8c766d |
#DoublePairField {
|
|
Kite |
8c766d |
qproperty-LightLineColor: @slider-groove-color;
|
|
Kite |
8c766d |
qproperty-LightLineEdgeColor: @slider-groove-color;
|
|
Kite |
8c766d |
qproperty-DarkLineColor: @slider-groove-color;
|
|
Kite |
8c766d |
qproperty-MiddleLineColor: @slider-groove-color;
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
qproperty-HandleLeftPixmap: url("@{img-url}/@{slider-left-handle}");
|
|
Kite |
8c766d |
qproperty-HandleRightPixmap: url("@{img-url}/@{slider-right-handle}");
|
|
Kite |
8c766d |
|
|
Kite |
8c766d |
qproperty-HandleLeftGrayPixmap: url("@{img-url}/@{slider-left-handle-disabled}");
|
|
Kite |
8c766d |
qproperty-HandleRightGrayPixmap: url("@{img-url}/@{slider-right-handle-disabled}");
|
|
Kite |
8c766d |
}
|