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 b0dac2
  &:editable {  /* for editable ComboBox */
Kite b0dac2
    color: @input-text-color;
Kite b0dac2
    background-color: @input-bg-color;
Kite b0dac2
    border-color: @input-border-color;
Kite b0dac2
    padding: 1 0 1 3;
Kite b0dac2
  }
Kite 8c766d
  &:hover {
Kite b0dac2
    background-color: @button-bg-color-hover;
Kite b0dac2
    &:editable {
Kite b0dac2
      background-color: @input-bg-color;
Kite b0dac2
    }
Kite b0dac2
  }
Kite b0dac2
  &:focus {
Kite b0dac2
    border-color: @input-border-color-focus;
Kite 8c766d
  }
Kite 8c766d
  &:checked {
Kite 8c766d
    &:extend(.ComboBox);
Kite b0dac2
    border-color: @input-border-color-focus;
Kite 8c766d
  }
Kite 8c766d
  &:disabled {
Kite 8c766d
    &:extend(.Button:disabled);
Kite 8c766d
  }
Kite 8c766d
  &::drop-down {
Kite b0dac2
    border: 0;
Kite 8c766d
    image: url('@{img-url}/combo_downarrow.svg');
Kite 8c766d
    image-position: center center;
Kite 8c766d
    width: 16;
Kite b0dac2
    &:editable {
Kite b0dac2
      background-color: @button-bg-color;
Kite b0dac2
      border-left: @combobox-dropdown-border-size solid @button-border-color;
Kite b0dac2
      border-top-right-radius: @combobox-dropdown-border-radius;
Kite b0dac2
      border-bottom-right-radius: @combobox-dropdown-border-radius;
Kite b0dac2
    }
Kite b0dac2
    &:hover {
Kite b0dac2
      border-color: @combobox-dropdown-border-color-hover;
Kite b0dac2
      &:editable {
Kite b0dac2
        background-color: @button-bg-color-hover;
Kite b0dac2
        border-color: @button-border-color;
Kite b0dac2
      }
Kite b0dac2
    }
Kite 8c766d
    &:disabled {
Kite 8c766d
      image: url('@{img-url}/combo_downarrow_disabled.svg');
Kite b0dac2
      &:editable {
Kite b0dac2
        background-color: @combobox-dropdown-bg-color-disabled-editable;
Kite b0dac2
      }
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

manongjohn b14489
QPlainTextEdit
manongjohn b14489
,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 b0dac2
        background-color: @checkbox-bg-color-checked-hover;
Kite b0dac2
        border-color: @checkbox-border-color-checked-hover;
Kite 8c766d
      }
Kite 8c766d
      &:disabled {
Kite b0dac2
        background-color: @checkbox-bg-color-checked-disabled;
Kite b0dac2
        border-color: @checkbox-border-color-checked-disabled;
Kite 8c766d
        image: url('@{img-url}/checkmark_disabled.svg');
shun-iwasawa 29ceb2
      }
shun-iwasawa 29ceb2
    }
shun-iwasawa 29ceb2
    &:indeterminate {
shun-iwasawa 29ceb2
      background-color: @checkbox-bg-color-checked;
shun-iwasawa 29ceb2
      border-color: @checkbox-border-color-checked;
shun-iwasawa 29ceb2
      image: url('@{img-url}/checkpartially.svg');
shun-iwasawa 29ceb2
      &:hover {
shun-iwasawa 29ceb2
        &:extend(.CheckBox::indicator:hover);
shun-iwasawa 29ceb2
      }
shun-iwasawa 29ceb2
      &:disabled {
Kite b0dac2
        background-color: @checkbox-bg-color-checked-disabled;
Kite b0dac2
        border-color: @checkbox-border-color-checked-disabled;
shun-iwasawa 29ceb2
        image: url('@{img-url}/checkpartially_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 b0dac2
  color: @text-color;
Kite 6ecce0
  &:hover {
Kite b0dac2
    color: @checkbox-text-color-hover;
Kite 6ecce0
  }
Kite b0dac2
  &:checked {
Kite b0dac2
    color: @text-color;
Kite b0dac2
  }
Kite b0dac2
  &:disabled {
Kite b0dac2
    color: @text-color-disabled;
Kite b0dac2
  }
Kite b0dac2
  padding: 0;
Kite b0dac2
  margin: 0;
Kite 8c766d
  &::indicator {
Kite b0dac2
    @size: 11;
Kite b0dac2
    width: @size;
Kite b0dac2
    height: @size;
Kite b0dac2
    background-color: transparent;
Kite b0dac2
    border: 0;
Kite b0dac2
    image-position: center center;
Kite 8c766d
    &:unchecked {
Kite b0dac2
      image: url('@{img-url}/@{radiobutton-img-unchecked}');
Kite b0dac2
      &:hover {
Kite b0dac2
        image: url('@{img-url}/@{radiobutton-img-unchecked-hover}');
Kite b0dac2
      }
Kite 8c766d
    }
Kite 8c766d
    &:checked {
Kite b0dac2
      image: url('@{img-url}/@{radiobutton-img-checked}');
Kite b0dac2
      &:disabled {
Kite b0dac2
        background-color: transparent;
Kite b0dac2
        image: url('@{img-url}/@{radiobutton-img-checked-disabled}');
Kite b0dac2
      }
Kite b0dac2
    }
Kite b0dac2
    &:disabled {
Kite b0dac2
      image: url('@{img-url}/@{radiobutton-img-unchecked-disabled}');
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
}
Kite b0dac2

Kite b0dac2
/* -----------------------------------------------------------------------------
Kite b0dac2
   Progress Bar
Kite b0dac2
----------------------------------------------------------------------------- */
Kite b0dac2

Kite b0dac2
QProgressBar {
Kite b0dac2
  text-align: center;
Kite b0dac2
  background-color: @progressbar-bg-color;
Kite b0dac2
  border: 1 solid @progressbar-border-color;
Kite b0dac2
  border-radius: 3; /* 2 fits inside 3 */
Kite b0dac2
  padding: 0;
Kite b0dac2
  &::chunk {
Kite b0dac2
    margin: -1; /* hide border of chunk except for right side */
Kite b0dac2
    background-color: @progressbar-chunk-bg-color;
Kite b0dac2
    border: 1 solid @progressbar-chunk-border-color;
Kite b0dac2
    border-radius: 2;
Kite b0dac2
  }
Kite b0dac2
}