mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 21:19:18 +00:00
Make color sliders style smaller
This commit is contained in:
parent
da8eff0ec2
commit
b0a42ed4f1
Binary file not shown.
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@ -209,8 +209,8 @@
|
||||
<part id="mini_slider_empty" x="48" y="144" w1="5" w2="6" w3="5" h1="5" h2="5" h3="6" />
|
||||
<part id="mini_slider_full_focused" x="32" y="160" w1="5" w2="6" w3="5" h1="5" h2="5" h3="6" />
|
||||
<part id="mini_slider_empty_focused" x="48" y="160" w1="5" w2="6" w3="5" h1="5" h2="5" h3="6" />
|
||||
<part id="mini_slider_thumb" x="32" y="176" w="5" h="6" />
|
||||
<part id="mini_slider_thumb_focused" x="48" y="176" w="5" h="6" />
|
||||
<part id="mini_slider_thumb" x="32" y="176" w="5" h="4" />
|
||||
<part id="mini_slider_thumb_focused" x="48" y="176" w="5" h="4" />
|
||||
<part id="separator_horz" x="32" y="80" w="9" h="5" />
|
||||
<part id="separator_vert" x="32" y="96" w="5" h="9" />
|
||||
<part id="combobox_arrow_down" x="100" y="148" w="9" h="9" />
|
||||
|
@ -86,6 +86,7 @@ ColorSliders::ColorSliders()
|
||||
, m_mode(Absolute)
|
||||
{
|
||||
addChild(&m_grid);
|
||||
m_grid.setChildSpacing(0);
|
||||
}
|
||||
|
||||
ColorSliders::~ColorSliders()
|
||||
@ -139,6 +140,7 @@ void ColorSliders::addSlider(Channel channel, const char* labelText, int min, in
|
||||
|
||||
absSlider->setProperty(SkinSliderPropertyPtr(new SkinSliderProperty(new ColorSliderBgPainter(channel))));
|
||||
absSlider->setDoubleBuffered(true);
|
||||
get_skin_property(entry)->setLook(MiniLook);
|
||||
|
||||
absSlider->Change.connect(Bind<void>(&ColorSliders::onSliderChange, this, m_absSlider.size()-1));
|
||||
relSlider->Change.connect(Bind<void>(&ColorSliders::onSliderChange, this, m_relSlider.size()-1));
|
||||
@ -151,6 +153,10 @@ void ColorSliders::addSlider(Channel channel, const char* labelText, int min, in
|
||||
relSlider->setExpansive(true);
|
||||
relSlider->setVisible(false);
|
||||
|
||||
label->setMaxSize(gfx::Size(INT_MAX, 14));
|
||||
box->setMaxSize(gfx::Size(INT_MAX, 14));
|
||||
entry->setMaxSize(gfx::Size(INT_MAX, 14));
|
||||
|
||||
m_grid.addChildInCell(label, 1, 1, LEFT | MIDDLE);
|
||||
m_grid.addChildInCell(box, 1, 1, HORIZONTAL | VERTICAL | EXPANSIVE);
|
||||
m_grid.addChildInCell(entry, 1, 1, LEFT | MIDDLE);
|
||||
|
Loading…
Reference in New Issue
Block a user