Changeset 112f70a in mainline for uspace/lib/ui/src/menuentry.c
- Timestamp:
- 2023-09-14T09:53:27Z (17 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8a6ebbb
- Parents:
- 61643c8
- git-author:
- Jiri Svoboda <jiri@…> (2023-09-13 18:53:09)
- git-committer:
- Jiri Svoboda <jiri@…> (2023-09-14 09:53:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/menuentry.c
r61643c8 r112f70a 163 163 } 164 164 165 /** Set menu entry disabled flag. 166 * 167 * @param mentry Menu entry 168 * @param disabled @c true iff entry is to be disabled, @c false otherwise 169 */ 170 void ui_menu_entry_set_disabled(ui_menu_entry_t *mentry, bool disabled) 171 { 172 mentry->disabled = disabled; 173 } 174 175 /** Get menu entry disabled flag. 176 * 177 * @param mentry Menu entry 178 * @return disabled @c true iff entry is disabled, @c false otherwise 179 */ 180 bool ui_menu_entry_is_disabled(ui_menu_entry_t *mentry) 181 { 182 return mentry->disabled; 183 } 184 165 185 /** Get first menu entry in menu. 166 186 * … … 372 392 fmt.hgl_color = res->wnd_sel_text_hgl_color; 373 393 bg_color = res->wnd_sel_text_bg_color; 394 } else if (mentry->disabled) { 395 fmt.color = res->wnd_dis_text_color; 396 fmt.hgl_color = res->wnd_dis_text_color; 397 bg_color = res->wnd_face_color; 374 398 } else { 375 399 fmt.color = res->wnd_text_color;
Note:
See TracChangeset
for help on using the changeset viewer.