mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 19:06:39 +00:00
Drop down button in ColorBar switches (open/close) the PalettePopup
This commit is contained in:
parent
6b53e46108
commit
3466d17d27
@ -189,11 +189,16 @@ void ColorBar::onPaletteButtonClick()
|
||||
|
||||
void ColorBar::onPaletteButtonDropDownClick()
|
||||
{
|
||||
gfx::Rect bounds = m_paletteButton.getBounds();
|
||||
if (!m_palettePopup.isVisible()) {
|
||||
gfx::Rect bounds = m_paletteButton.getBounds();
|
||||
|
||||
m_palettePopup.showPopup(
|
||||
gfx::Rect(bounds.x+bounds.w, bounds.y,
|
||||
JI_SCREEN_W/2, JI_SCREEN_H/2));
|
||||
m_palettePopup.showPopup(
|
||||
gfx::Rect(bounds.x+bounds.w, bounds.y,
|
||||
JI_SCREEN_W/2, JI_SCREEN_H/2));
|
||||
}
|
||||
else {
|
||||
m_palettePopup.closeWindow(NULL);
|
||||
}
|
||||
}
|
||||
|
||||
void ColorBar::onPaletteIndexChange(int index)
|
||||
|
Loading…
Reference in New Issue
Block a user