mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 17:07:35 +00:00
WindowServer: Improve look of disabled menu items somewhat
This commit is contained in:
parent
161c862f21
commit
2147b587b2
1 changed files with 5 additions and 2 deletions
|
@ -141,9 +141,12 @@ void WSMenu::draw()
|
||||||
painter.fill_rect(item.rect(), Color::from_rgb(0xad714f));
|
painter.fill_rect(item.rect(), Color::from_rgb(0xad714f));
|
||||||
painter.draw_rect(item.rect(), Color::from_rgb(0x793016));
|
painter.draw_rect(item.rect(), Color::from_rgb(0x793016));
|
||||||
text_color = Color::White;
|
text_color = Color::White;
|
||||||
|
if (!item.is_enabled())
|
||||||
|
text_color = Color::from_rgb(0xb5a195);
|
||||||
|
} else {
|
||||||
|
if (!item.is_enabled())
|
||||||
|
text_color = Color::MidGray;
|
||||||
}
|
}
|
||||||
if (!item.is_enabled())
|
|
||||||
text_color = Color::MidGray;
|
|
||||||
Rect text_rect = item.rect().translated(stripe_rect.width() + 6, 0);
|
Rect text_rect = item.rect().translated(stripe_rect.width() + 6, 0);
|
||||||
if (item.is_checkable()) {
|
if (item.is_checkable()) {
|
||||||
Rect checkmark_rect { item.rect().x() + 7, 0, s_checked_bitmap_width, s_checked_bitmap_height };
|
Rect checkmark_rect { item.rect().x() + 7, 0, s_checked_bitmap_width, s_checked_bitmap_height };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue