Changeset 214aefb in mainline for uspace/lib/ui/src/wdecor.c


Ignore:
Timestamp:
2021-04-09T22:41:22Z (3 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0262f16c
Parents:
b0858150
git-author:
Jiri Svoboda <jiri@…> (2021-03-27 22:52:09)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-04-09 22:41:22)
Message:

UI menu (WIP)

File:
1 edited

Legend:

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

    rb0858150 r214aefb  
    178178
    179179        if ((wdecor->style & ui_wds_frame) != 0) {
    180                 rc = ui_paint_bevel(wdecor->res->gc, &rect,
    181                     wdecor->res->wnd_frame_hi_color,
    182                     wdecor->res->wnd_frame_sh_color, 1, &rect);
    183                 if (rc != EOK)
    184                         return rc;
    185 
    186                 if (wdecor->res->textmode == false) {
     180
     181                if (wdecor->res->textmode != false) {
    187182                        rc = ui_paint_bevel(wdecor->res->gc, &rect,
    188                             wdecor->res->wnd_highlight_color,
    189                             wdecor->res->wnd_shadow_color, 1, &rect);
     183                            wdecor->res->wnd_frame_hi_color,
     184                            wdecor->res->wnd_frame_sh_color, 1, &rect);
     185                        if (rc != EOK)
     186                                return rc;
     187                } else {
     188                        rc = ui_paint_outset_frame(wdecor->res, &rect,
     189                            &rect);
    190190                        if (rc != EOK)
    191191                                return rc;
Note: See TracChangeset for help on using the changeset viewer.