mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 21:33:12 +00:00
Fix close icon style after clicking tabs
This commit is contained in:
parent
6064debe13
commit
b52bcd8c95
@ -232,7 +232,7 @@
|
||||
<part id="tab_modified_icon_active" x="32" y="117" w="5" h="5" />
|
||||
<part id="tab_close_icon_normal" x="37" y="112" w="5" h="5" />
|
||||
<part id="tab_close_icon_active" x="37" y="117" w="5" h="5" />
|
||||
<part id="tab_icon_bg_active" x="42" y="112" w="14" h="12" />
|
||||
<part id="tab_icon_bg_clicked" x="42" y="112" w="14" h="12" />
|
||||
<part id="tab_icon_bg_hover" x="56" y="112" w="14" h="12" />
|
||||
<part id="tab_home_icon_normal" x="32" y="240" w="7" h="8" />
|
||||
<part id="tab_home_icon_active" x="40" y="240" w="7" h="8" />
|
||||
@ -659,7 +659,7 @@
|
||||
<background part="tab_icon_bg_hover" />
|
||||
</style>
|
||||
<style id="tab_icon:clicked">
|
||||
<background part="tab_icon_bg_active" />
|
||||
<background part="tab_icon_bg_clicked" />
|
||||
</style>
|
||||
|
||||
<!-- tab_close_icon -->
|
||||
|
@ -246,16 +246,19 @@ bool Tabs::onProcessMessage(Message* msg)
|
||||
|
||||
if (m_delegate && m_selected && m_selected == m_hot) {
|
||||
if (m_hotCloseButton && m_clickedCloseButton) {
|
||||
m_clickedCloseButton = false;
|
||||
invalidate();
|
||||
|
||||
m_delegate->clickClose(this, m_selected->view);
|
||||
}
|
||||
else if (!mouseMsg->left()) {
|
||||
m_delegate->clickTab(this, m_selected->view, mouseMsg->buttons());
|
||||
}
|
||||
}
|
||||
|
||||
releaseMouse();
|
||||
|
||||
if (m_clickedCloseButton) {
|
||||
m_clickedCloseButton = false;
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user