mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-26 18:21:44 +00:00
Now ColorBar buttons are reduced when the width is too small
This commit is contained in:
parent
311d27078f
commit
954b45dd23
@ -183,12 +183,7 @@ ColorBar::ColorBar(int align)
|
||||
setColorSelector(
|
||||
Preferences::instance().colorBar.selector());
|
||||
|
||||
Box* buttonsBox = new HBox();
|
||||
buttonsBox->addChild(&m_buttons);
|
||||
m_buttons.setMaxSize(gfx::Size(m_buttons.maxSize().w,
|
||||
16*ui::guiscale()));
|
||||
|
||||
addChild(buttonsBox);
|
||||
addChild(&m_buttons);
|
||||
addChild(&m_splitter);
|
||||
|
||||
HBox* fgBox = new HBox;
|
||||
@ -238,6 +233,8 @@ ColorBar::ColorBar(int align)
|
||||
m_buttons.addItem(theme->parts.palSort());
|
||||
m_buttons.addItem(theme->parts.palPresets());
|
||||
m_buttons.addItem(theme->parts.palOptions());
|
||||
m_buttons.setMaxSize(gfx::Size(m_buttons.sizeHint().w,
|
||||
16*ui::guiscale()));
|
||||
|
||||
// Tooltips
|
||||
TooltipManager* tooltipManager = new TooltipManager();
|
||||
|
Loading…
Reference in New Issue
Block a user