Changeset 81ec7e1 in mainline for uspace/lib/ui/src/menuentry.c
- Timestamp:
- 2021-08-31T08:57:24Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b79c91cc
- Parents:
- ff6e91b
- git-author:
- Jiri Svoboda <jiri@…> (2021-08-30 20:57:08)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-08-31 08:57:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/menuentry.c
rff6e91b r81ec7e1 349 349 350 350 if (mentry->separator) { 351 rect.p0 = geom.caption_pos; 352 rect.p1.x = geom.shortcut_pos.x; 353 rect.p1.y = rect.p0.y + 2; 354 rc = ui_paint_bevel(res->gc, &rect, res->wnd_shadow_color, 355 res->wnd_highlight_color, 1, NULL); 356 if (rc != EOK) 357 goto error; 351 if (res->textmode) { 352 rect = geom.outer_rect; 353 rect.p0.x -= 1; 354 rect.p1.x += 1; 355 356 rc = ui_paint_text_hbrace(res, &rect, ui_box_single, 357 res->wnd_face_color); 358 if (rc != EOK) 359 goto error; 360 } else { 361 rect.p0 = geom.caption_pos; 362 rect.p1.x = geom.shortcut_pos.x; 363 rect.p1.y = rect.p0.y + 2; 364 rc = ui_paint_bevel(res->gc, &rect, res->wnd_shadow_color, 365 res->wnd_highlight_color, 1, NULL); 366 if (rc != EOK) 367 goto error; 368 } 358 369 } 359 370
Note:
See TracChangeset
for help on using the changeset viewer.