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

177 lines
3.6 KiB
Text
Raw Normal View History

/* -----------------------------------------------------------------------------
Style Editor
----------------------------------------------------------------------------- */
#StyleEditor {
& QPushButton {
// Temporary fix for channel buttons
margin: 2px 1px;
padding: 0;
}
& #TabBarContainer {
2017-08-29 06:40:43 +12:00
margin-left: -4px; // Fix container margin
}
& #bottomWidget {
2017-08-29 06:40:43 +12:00
border-top: 1px solid @accent;
padding: 3px 2px 8px 3px;
& QPushButton {
2017-08-29 06:40:43 +12:00
// Override above container margin fix
padding: 3px 5px;
}
}
}
#StyleEditorTabBar {
2017-08-29 06:40:43 +12:00
&:extend(.tab-container all);
&::tab {
2017-08-29 06:40:43 +12:00
&:extend(.tab-flat all);
}
}
#HexagonalColorWheel {
2017-08-29 06:40:43 +12:00
qproperty-BGColor: @bg;
}
/* -------------------------------------------------------------------------- */
/* Horizontal QSlider */
2017-08-29 06:40:43 +12:00
// NOTE: I don't know what #colorSlider does, it seems to have no effect.
#colorSlider {
&::groove:horizontal {
height: 1px;
border-image: none;
}
&::handle:horizontal {
width: 8px;
margin: -8px -4px;
}
}
#colorSliderAddButton,
#colorSliderSubButton {
background: none;
border-color: transparent;
image-position: center center;
min-height: 16px;
padding: 0;
min-width: 18px;
&:hover {
2017-08-29 06:40:43 +12:00
&:extend(.button-tool:hover);
}
&:pressed {
2017-08-29 06:40:43 +12:00
&:extend(.button-tool:pressed);
}
}
#colorSliderAddButton {
image: url('@{img-url}/scroll-right.svg');
}
#colorSliderSubButton {
image: url('@{img-url}/scroll-left.svg');
}
#PlainColorPageParts {
2017-08-29 06:40:43 +12:00
border-top: 1px solid @accent;
& QLineEdit {
max-width: 35px;
}
}
#colorSliderLabel,
#colorSliderField {
2017-08-29 06:40:43 +12:00
// Placeholder
}
/* -----------------------------------------------------------------------------
Palette Viewer / Studio Palette
----------------------------------------------------------------------------- */
PaletteViewer {
& DvScrollWidget {
& QPushButton {
border-top: 0;
margin-bottom: 1px;
max-width: 15px;
min-width: 15px;
}
& #ScrollLeftButton {
2017-08-29 06:40:43 +12:00
border-left: 1px solid @accent;
max-width: 15px;
min-width: 15px;
2017-08-29 06:40:43 +12:00
margin-bottom: 1px;
}
& #ScrollRightButton {
border-right: 0;
margin-left: 1px;
max-width: 15px;
min-width: 15px;
2017-08-29 06:40:43 +12:00
margin-bottom: 1px;
}
}
& QToolBar {
background: none;
2017-08-29 06:40:43 +12:00
border-bottom: 1px solid @accent;
padding: 0;
margin: 0;
&::separator:horizontal {
2017-08-29 06:40:43 +12:00
margin: 0; // very compact space so remove margin
}
& QToolButton {
2017-08-29 06:40:43 +12:00
&:extend(.button-flat all); // use flat button style
margin: 0 0 1px 0; // adds height to QToolBar
padding: 1px 1px 2px 1px;
}
}
}
#StudioPalette {
& QTreeView {
2017-08-29 06:40:43 +12:00
&:extend(.tree-list all);
&::branch {
2017-08-29 06:40:43 +12:00
&:extend(.branch-17 all);
}
}
}
#PaletteTabBar {
2017-08-29 06:40:43 +12:00
&:extend(.tab-container all);
&::tab {
2017-08-29 06:40:43 +12:00
&:extend(.tab-flat all);
}
}
#PageViewer {
qproperty-TextColor: @text-color;
}
#PaletteLockButton {
border-radius: 0;
margin: 0 0 1px 1px;
&:checked {
2017-08-29 06:40:43 +12:00
background-color: @toolbutton-lock-bg-color-checked;
border-color: @toolbutton-lock-border-color-checked;
&:hover {
2017-08-29 06:40:43 +12:00
background-color: @toolbutton-lock-bg-color-checked-hover;
border-color: @toolbutton-lock-border-color-checked-hover;
}
}
}
/* -----------------------------------------------------------------------------
Quick Renamer
----------------------------------------------------------------------------- */
#WordButton {
2017-08-29 06:40:43 +12:00
&:extend(.QPushButton all);
// Remove H padding else moderate length text gets clipped
padding-right: 0;
padding-left: 0;
}
#SolidLineFrame {
2017-08-29 06:40:43 +12:00
&:extend(.frame all);
}