mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Fix bug where ContextBar was completely hidden
This commit is contained in:
parent
dd2839a49a
commit
44c6a9d91a
@ -530,6 +530,11 @@ bool ContextBar::onProcessMessage(Message* msg)
|
||||
return Box::onProcessMessage(msg);
|
||||
}
|
||||
|
||||
void ContextBar::onPreferredSize(PreferredSizeEvent& ev)
|
||||
{
|
||||
ev.setPreferredSize(gfx::Size(0, 18*jguiscale())); // TODO calculate height
|
||||
}
|
||||
|
||||
void ContextBar::onSetOpacity(int newOpacity)
|
||||
{
|
||||
m_inkOpacity->setTextf("%d", newOpacity);
|
||||
|
@ -46,6 +46,7 @@ namespace app {
|
||||
|
||||
protected:
|
||||
bool onProcessMessage(ui::Message* msg) OVERRIDE;
|
||||
void onPreferredSize(ui::PreferredSizeEvent& ev) OVERRIDE;
|
||||
|
||||
// ToolSettingsObserver impl
|
||||
void onSetOpacity(int newOpacity) OVERRIDE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user