tahoma2d/stuff/config/qss/Medium/less/layouts/palette.less

164 lines
3.2 KiB
Text

/* -----------------------------------------------------------------------------
Style Editor
----------------------------------------------------------------------------- */
#StyleEditor {
& #TabBarContainer {
margin-left: -5px;
}
& #bottomWidget {
border-top: 1 solid @accent;
padding: 3 2 8 3;
& QPushButton {
padding: 3 5;
}
}
}
#StyleEditorTabBar {
&::tab {
&:first, &:only-one {
border-left: 0;
}
}
}
#HexagonalColorWheel {
qproperty-BGColor: @bg;
}
/* -------------------------------------------------------------------------- */
/* Horizontal QSlider */
#colorSlider {
&::groove:horizontal {
height: 1;
border-image: none;
}
&::handle:horizontal {
width: 8;
margin: -8 -4;
}
}
#colorSliderAddButton,
#colorSliderSubButton {
background: none;
border-color: transparent;
image-position: center center;
min-height: 16;
padding: 0;
min-width: 10;
&:hover {
&:extend(.button-tool:hover);
}
&:pressed {
&:extend(.button-tool:pressed);
}
}
#colorSliderAddButton {
image: url('@{img-url}/scroll-right.svg');
}
#colorSliderSubButton {
image: url('@{img-url}/scroll-left.svg');
}
#PlainColorPageParts {
border-bottom: 1 solid @accent;
& QLineEdit {
max-width: 35;
}
}
#colorSliderLabel,
#colorSliderField {}
/* -----------------------------------------------------------------------------
Palette Viewer / Studio Palette
----------------------------------------------------------------------------- */
PaletteViewer {
& DvScrollWidget {
& QPushButton {
border-top: 0;
margin-bottom: 0;
max-width: 15;
min-width: 15;
}
& #ScrollLeftButton {
border-radius: 0;
margin-bottom: 0;
max-width: 16;
min-width: 16;
}
& #ScrollRightButton {
border-radius: 0;
margin-left: 1;
margin-bottom: 0;
max-width: 16;
min-width: 16;
}
}
& QToolBar {
&::separator:horizontal {
margin: 0; // very compact space so we remove margin
}
& QToolButton {
&:extend(.button-flat all); // use flat style for button
margin: 0;
padding: 2 0 2 0;
}
}
& #ToolBarContainer {
border-top: 1 solid @accent;
margin: 0;
padding: 0;
}
}
#StudioPalette {}
#PaletteTabBar {
&::tab {
&:first, &:only-one {
border-left: 0;
}
&:only-one {
border-right: 1 solid @tab-border-color;
}
}
}
#PageViewer {
qproperty-TextColor: @text-color;
qproperty-ListLineColor: @accent;
}
#PaletteLockButton {
border-radius: 0;
&:checked {
background-color: @toolbutton-lock-bg-color-checked;
border-color: @toolbutton-lock-border-color-checked;
&:hover {
background-color: @toolbutton-lock-bg-color-checked-hover;
border-color: @toolbutton-lock-border-color-checked-hover;
}
}
}
/* -----------------------------------------------------------------------------
Quick Renamer
----------------------------------------------------------------------------- */
#WordButton {
&:extend(.QPushButton all);
// remove horizontal padding otherwise moderate length text gets clipped
padding-right: 0;
padding-left: 0;
}
#SolidLineFrame {
&:extend(.frame all);
}