all repos — openbox @ ef0bfdc743dfaf783e8d6f776e8391b8546f9598

openbox fork - make it a bit more like ryudo

be a bit more explicit about what is being copied from one texture to another
Dana Jansens danakj@orodu.net
commit

ef0bfdc743dfaf783e8d6f776e8391b8546f9598

parent

177a0340a7eea0955a5b0795bdd4bd55779acf5c

1 files changed, 9 insertions(+), 4 deletions(-)

jump to
M obrender/theme.cobrender/theme.c

@@ -1001,15 +1001,20 @@ theme->osd_text_active_shadow_color;

theme->osd_hilite_label->texture[0].data.text.shadow_alpha = theme->osd_text_active_shadow_alpha; - theme->osd_unpressed_button->texture[0] = - theme->osd_pressed_button->texture[0] = - theme->osd_focused_button->texture[0] = - theme->osd_hilite_label->texture[0]; + theme->osd_unpressed_button->texture[0].type = + theme->osd_pressed_button->texture[0].type = + theme->osd_focused_button->texture[0].type = + RR_TEXTURE_TEXT; theme->osd_unpressed_button->texture[0].data.text.justify = theme->osd_pressed_button->texture[0].data.text.justify = theme->osd_focused_button->texture[0].data.text.justify = RR_JUSTIFY_CENTER; + + theme->osd_unpressed_button->texture[0].data.text.font = + theme->osd_pressed_button->texture[0].data.text.font = + theme->osd_focused_button->texture[0].data.text.font = + theme->osd_font_hilite; theme->osd_unpressed_button->texture[0].data.text.color = theme->osd_unpressed_color;