Fix style for RGBA/Grayscale/etc. buttons + Edit Pal/Tiles mode buttonsets

We cannot use the fix from 6e2b44c72d as
they contain different slice borders depending on the state (and that
generated moving labels/icons in RGBA/Grayscale/Indexed buttons when
we hover the mouse on them), so we had to revert it and use a new
"buttonset_item_active" theme part to set the background of Edit
Pal/Tiles.
This commit is contained in:
David Capello 2023-02-27 19:05:26 -03:00
parent ff1211bc84
commit 05dcf96333
2 changed files with 16 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -109,7 +109,6 @@
<color id="flag_clicked" value="#7d929e" />
<color id="select_box_ruler" value="#0000ff" />
<color id="select_box_grid" value="#64c864" />
<color id="edit_pal_face" value="#655561" />
<color id="palette_entries_separator" value="#000000" />
</colors>
<parts>
@ -203,11 +202,12 @@
<part id="toolbutton_hot" x="112" y="0" w1="3" w2="10" w3="3" h1="3" h2="9" h3="4" />
<part id="toolbutton_last" x="96" y="16" w1="3" w2="10" w3="3" h1="3" h2="9" h3="4" />
<part id="toolbutton_pushed" x="112" y="16" w1="3" w2="10" w3="3" h1="3" h2="9" h3="4" />
<part id="buttonset_item_normal" x="96" y="16" w1="2" w2="12" w3="2" h1="2" h2="10" h3="4" />
<part id="buttonset_item_normal" x="96" y="16" w1="3" w2="10" w3="3" h1="3" h2="8" h3="5" />
<part id="buttonset_item_hot" x="112" y="0" w1="3" w2="10" w3="3" h1="3" h2="8" h3="5" />
<part id="buttonset_item_hot_focused" x="128" y="0" w1="3" w2="10" w3="3" h1="3" h2="8" h3="5" />
<part id="buttonset_item_focused" x="128" y="16" w1="3" w2="10" w3="3" h1="3" h2="8" h3="5" />
<part id="buttonset_item_pushed" x="112" y="16" w1="3" w2="10" w3="3" h1="3" h2="8" h3="5" />
<part id="buttonset_item_active" x="112" y="32" w1="3" w2="10" w3="3" h1="3" h2="8" h3="5" />
<part id="tab_normal" x="2" y="112" w1="4" w2="5" w3="5" h1="4" h2="6" h3="2" />
<part id="tab_active" x="16" y="112" w1="4" w2="7" w3="5" h1="4" h2="6" h3="2" />
<part id="tab_bottom_active" x="16" y="124" w1="4" w2="7" w3="5" h1="2" h2="1" h3="2" />
@ -1082,7 +1082,13 @@
<icon part="timeline_closed_padlock_normal" state="capture selected" />
</style>
<style id="pal_edit_unlock" extends="pal_edit_lock">
<background color="edit_pal_face" />
<background-border part="buttonset_item_active" />
<background-border part="buttonset_item_active" state="selected" />
<background-border part="buttonset_item_active" state="focus" />
<background-border part="buttonset_item_active" state="mouse" />
<background-border part="buttonset_item_active" state="mouse focus" />
<background-border part="buttonset_item_active" state="capture" />
<background-border part="buttonset_item_active" state="capture selected" />
<newlayer />
<icon part="timeline_open_padlock_active" />
</style>
@ -1092,7 +1098,13 @@
<icon color="button_normal_text" />
</style>
<style id="edit_tiles_mode" extends="edit_pixels_mode" width="15">
<background color="edit_pal_face" />
<background-border part="buttonset_item_active" />
<background-border part="buttonset_item_active" state="selected" />
<background-border part="buttonset_item_active" state="focus" />
<background-border part="buttonset_item_active" state="mouse" />
<background-border part="buttonset_item_active" state="mouse focus" />
<background-border part="buttonset_item_active" state="capture" />
<background-border part="buttonset_item_active" state="capture selected" />
<newlayer />
<icon color="button_selected_text" />
</style>