mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 12:32:52 +00:00
Adjust StatusBar's opacity slider min size depending on window resizes
This commit is contained in:
parent
33b42d195b
commit
5a97f4b129
@ -174,7 +174,6 @@ StatusBar::StatusBar()
|
||||
setup_mini_look(m_slider);
|
||||
|
||||
m_slider->Change.connect(Bind<void>(&StatusBar::onCelOpacitySliderChange, this));
|
||||
m_slider->setMinSize(gfx::Size(ui::display_w()/5, 0));
|
||||
|
||||
box1->setBorder(gfx::Border(2, 1, 2, 2)*guiscale());
|
||||
|
||||
@ -323,6 +322,8 @@ void StatusBar::showTool(int msecs, tools::Tool* tool)
|
||||
|
||||
void StatusBar::onResize(ResizeEvent& ev)
|
||||
{
|
||||
m_slider->setMinSize(gfx::Size(ui::display_w()/5, 0));
|
||||
|
||||
setBoundsQuietly(ev.getBounds());
|
||||
|
||||
Border border = getBorder();
|
||||
|
Loading…
x
Reference in New Issue
Block a user