Kite 8c766d

Kite 521c84
// Note: The compiler has trouble with Qt names when they have been extended to
Kite 521c84
// so we extend Qt names to mixins as a 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 521c84
  border-color: @button-border-color;
Kite 521c84
  border-width: @button-border-width;
Kite 521c84
  border-style: solid;
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 521c84
      border-color: @button-border-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

shun-iwasawa 9b2afe
#CustomPanelButton {
shun-iwasawa 9b2afe
  &:extend(.Button all);
shun-iwasawa 9b2afe
  padding: 0;
shun-iwasawa 9b2afe
}
shun-iwasawa 9b2afe

Kite 8c766d
/* -----------------------------------------------------------------------------
Kite 521c84
   ComboBox
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 521c84
    selection-background-color: @input-selection-bg-color;
Kite 521c84
    selection-color: @input-selection-text-color;
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 521c84
  &:checked {
Kite b0dac2
    border-color: @input-border-color-focus;
Kite 8c766d
  }
Kite 521c84
  &:focus {
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 521c84
    selection-background-color: @menu-item-bg-color-selected;
Kite 521c84
    selection-color: @menu-item-text-color-selected;
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 521c84
  border-radius: @input-border-radius;
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

shun-iwasawa caf3c6
QPlainTextEdit,
shun-iwasawa caf3c6
QLineEdit,
shun-iwasawa caf3c6
QTextEdit {
Kite 8c766d
  &:extend(.LineEdit all);
Kite 8c766d
}
Kite 8c766d

shun-iwasawa caf3c6
// reset all styles for read-only QtextEdit
shun-iwasawa caf3c6
QTextEdit[readOnly="true"]{
shun-iwasawa caf3c6
  &:extend(QWidget all);
shun-iwasawa caf3c6
  border: 0;
shun-iwasawa caf3c6
  &:focus,
shun-iwasawa caf3c6
  &:disabled {
shun-iwasawa caf3c6
    background-color: @bg;
shun-iwasawa caf3c6
    color: @text-color;
shun-iwasawa caf3c6
    border: 0;
shun-iwasawa caf3c6
  }
shun-iwasawa caf3c6
}
shun-iwasawa caf3c6

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 521c84
    border-radius: @checkbox-border-radius;
Kite 521c84
    height: @checkbox-size;      /* fix for QGroupBox */
Kite 8c766d
    padding: 1;
Kite 521c84
    width: @checkbox-size;       /* 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 521c84
      image: url('@{img-url}/@{checkbox-img}');
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 521c84
        image: url('@{img-url}/@{checkbox-img-disabled}');
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;
Kite 521c84
      image: url('@{img-url}/@{checkbox-partially-img}');
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;
Kite 521c84
        image: url('@{img-url}/@{checkbox-partially-img-disabled}');
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 521c84
   RadioButton
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 521c84
    @size: 13;
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 {
shun-iwasawa 692990
  &::groove{
Kite 8c766d
    background-color: transparent;
Kite 8c766d
    background-image: url('@{img-url}/@{slider-groove-img}');
Kite 8c766d
    background-position: center center;
Kite 8c766d
    margin: 0;
shun-iwasawa 692990
    &:horizontal {
shun-iwasawa 692990
    background-repeat: repeat-x;
Kite 8c766d
    height: 20;
Kite 8c766d
    min-height: 20;
shun-iwasawa 692990
    }
shun-iwasawa 692990
    &:vertical {
shun-iwasawa 692990
      background-repeat: repeat-y;
shun-iwasawa 692990
      width: 20;
shun-iwasawa 692990
      min-width: 20;
shun-iwasawa 692990
    }
Kite 8c766d
    &:disabled {
Kite 8c766d
      background-image: url('@{img-url}/@{slider-groove-img-disabled}');
Kite 8c766d
    }
Kite 8c766d
  }
shun-iwasawa 692990
  &::handle{
shun-iwasawa 692990
    &:horizontal {
shun-iwasawa 692990
      margin: @slider-handle-margin;
andeon ed2678
      width: @slider-handle-width;
andeon ed2678
      image: url('@{img-url}/@{slider-handle-img}');
andeon ed2678
      &:disabled {
andeon ed2678
        image: url('@{img-url}/@{slider-handle-img-disabled}');
shun-iwasawa 692990
      }
shun-iwasawa 692990
    }
shun-iwasawa 692990
    &:vertical {
andeon ed2678
      margin: @slider-v-handle-margin;
shun-iwasawa 692990
      height: @slider-handle-width;
shun-iwasawa 692990
      image: url('@{img-url}/@{slider-v-handle-img}');
shun-iwasawa 692990
      &:disabled {
shun-iwasawa 692990
        image: url('@{img-url}/@{slider-v-handle-img-disabled}');
shun-iwasawa 692990
      }
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
}
konero 6be91a

konero 6be91a
/* -----------------------------------------------------------------------------
konero 6be91a
   Custom Panel Widgets
konero 6be91a
----------------------------------------------------------------------------- */
konero 6be91a

konero 6be91a
MyScroller {
konero 6be91a
  qproperty-ScrollerBorderColor: @customPanel-Scroller-border-color;
konero 6be91a
  qproperty-ScrollerBGColor: @customPanel-Scroller-bg-color;
konero 6be91a
}