2017-04-14 19:30:36 +12:00
|
|
|
/* -----------------------------------------------------------------------------
|
|
|
|
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
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
& #bottomWidget {
|
2017-08-29 06:40:43 +12:00
|
|
|
border-top: 1px solid @accent;
|
2017-04-14 19:30:36 +12:00
|
|
|
padding: 3px 2px 8px 3px;
|
|
|
|
& QPushButton {
|
2017-08-29 06:40:43 +12:00
|
|
|
// Override above container margin fix
|
2017-04-14 19:30:36 +12:00
|
|
|
padding: 3px 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#StyleEditorTabBar {
|
|
|
|
&::tab {
|
2017-08-29 06:40:43 +12:00
|
|
|
&:extend(.tab-flat all);
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#HexagonalColorWheel {
|
2017-08-29 06:40:43 +12:00
|
|
|
qproperty-BGColor: @bg;
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
/* Horizontal QSlider */
|
|
|
|
|
2017-08-29 06:40:43 +12:00
|
|
|
// NOTE: I don't know what #colorSlider does, it seems to have no effect.
|
2017-04-14 19:30:36 +12:00
|
|
|
|
|
|
|
#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);
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
&:pressed {
|
2017-08-29 06:40:43 +12:00
|
|
|
&:extend(.button-tool:pressed);
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#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;
|
2017-04-14 19:30:36 +12:00
|
|
|
& QLineEdit {
|
|
|
|
max-width: 35px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#colorSliderLabel,
|
|
|
|
#colorSliderField {
|
2017-08-29 06:40:43 +12:00
|
|
|
// Placeholder
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
|
|
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;
|
2017-04-14 19:30:36 +12:00
|
|
|
max-width: 15px;
|
|
|
|
min-width: 15px;
|
2017-08-29 06:40:43 +12:00
|
|
|
margin-bottom: 1px;
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
& #ScrollRightButton {
|
|
|
|
border-right: 0;
|
|
|
|
margin-left: 1px;
|
|
|
|
max-width: 15px;
|
|
|
|
min-width: 15px;
|
2017-08-29 06:40:43 +12:00
|
|
|
margin-bottom: 1px;
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
}
|
|
|
|
& QToolBar {
|
|
|
|
background: none;
|
2017-08-29 06:40:43 +12:00
|
|
|
border-bottom: 1px solid @accent;
|
2017-04-14 19:30:36 +12:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
&::separator:horizontal {
|
2017-08-29 06:40:43 +12:00
|
|
|
margin: 0; // very compact space so remove margin
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
& 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
|
2017-04-14 19:30:36 +12:00
|
|
|
padding: 1px 1px 2px 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#StudioPalette {
|
|
|
|
& QTreeView {
|
2017-08-29 06:40:43 +12:00
|
|
|
&:extend(.tree-list all);
|
2017-04-14 19:30:36 +12:00
|
|
|
&::branch {
|
2017-08-29 06:40:43 +12:00
|
|
|
&:extend(.branch-17 all);
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#PaletteTabBar {
|
|
|
|
&::tab {
|
2017-08-29 06:40:43 +12:00
|
|
|
&:extend(.tab-flat all);
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#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;
|
2017-04-14 19:30:36 +12:00
|
|
|
&: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;
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
|
|
Quick Renamer
|
|
|
|
----------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#WordButton {
|
2017-08-29 06:40:43 +12:00
|
|
|
&:extend(.QPushButton all);
|
|
|
|
// Remove H padding else moderate length text gets clipped
|
2017-04-14 19:30:36 +12:00
|
|
|
padding-right: 0;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#SolidLineFrame {
|
2017-08-29 06:40:43 +12:00
|
|
|
&:extend(.frame all);
|
2017-04-14 19:30:36 +12:00
|
|
|
}
|