Changeset 5afc1aa in mainline


Ignore:
Timestamp:
2023-09-27T09:20:01Z (14 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4034954c
Parents:
8d1bcd7
git-author:
Jiri Svoboda <jiri@…> (2023-09-26 21:19:48)
git-committer:
Jiri Svoboda <jiri@…> (2023-09-27 09:20:01)
Message:

Must highlight active system menu handle also in text mode

I originally didn't think this was needed and didn't have a
good match in the currently available meta colors. But it's needed
when it is active, but system menu not open. So just use
selected window text color for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/wdecor.c

    r8d1bcd7 r5afc1aa  
    362362        gfx_text_fmt_t fmt;
    363363
     364        rc = gfx_set_color(wdecor->res->gc, wdecor->sysmenu_hdl_active ?
     365            wdecor->res->btn_shadow_color : wdecor->res->btn_face_color);
     366
    364367        gfx_text_fmt_init(&fmt);
    365368        fmt.font = wdecor->res->font;
    366         fmt.color = wdecor->res->tbar_act_text_color;
     369        fmt.color = wdecor->sysmenu_hdl_active ?
     370            wdecor->res->wnd_sel_text_color :
     371            wdecor->res->tbar_act_text_color;
    367372        fmt.halign = gfx_halign_left;
    368373        fmt.valign = gfx_valign_top;
Note: See TracChangeset for help on using the changeset viewer.