tahoma2d/stuff/config/qss/Medium/less/layouts/palette.less
Jeremy Bullock 4566353fe5
Konero tweaks (#42)
* Fix build with Clang 10

* System depend code deduplication

* Improve multi-layer style picker.

Allows clicking anywhere on a stroke in another layer to pick it -
not just the center.

Fixes #2843.

* Get actual pixel size instead of hard-coding to 1.0.

* Rehide features

* fix pegbar restoring

* gui tweaks

tweaks the gui, makes tpaneltitlebarbutton color states changable in stylesheets

* fix styleeditor chandle mouse event

allow handle to be grabbed properly without slipping

Co-authored-by: Rodney <rodney.baker@gmail.com>
Co-authored-by: Rozhuk Ivan <rozhuk.im@gmail.com>
Co-authored-by: Martin van Zijl <martin.vanzijl@gmail.com>
Co-authored-by: shun-iwasawa <shun.iwasawa@ghibli.jp>
Co-authored-by: Kite <konero@users.noreply.github.com>
2020-06-04 01:48:08 -06:00

160 lines
3.1 KiB
Plaintext

/* -----------------------------------------------------------------------------
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;
}
}
}
#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);
}