Changes in uspace/lib/ui/src/menuentry.c [c68c18b9:8edec53] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/menuentry.c
rc68c18b9 r8edec53 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 … … 486 497 } 487 498 break; 499 case POS_DCLICK: 500 break; 488 501 } 489 502
Note:
See TracChangeset
for help on using the changeset viewer.