mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
Tweak the look of various UI surfaces and buttons.
This commit is contained in:
parent
d71820a382
commit
670e376e27
10 changed files with 65 additions and 20 deletions
|
@ -507,7 +507,7 @@ void WSWindowManager::paint_window_frame(WSWindow& window)
|
|||
|
||||
m_back_painter->blit(titlebar_icon_rect.location(), window.icon(), window.icon().rect());
|
||||
|
||||
m_back_painter->draw_rect(close_button_rect, Color::DarkGray);
|
||||
m_back_painter->draw_rect(close_button_rect, Color::MidGray);
|
||||
auto x_location = close_button_rect.center();
|
||||
x_location.move_by(-(s_close_button_bitmap_width / 2), -(s_close_button_bitmap_height / 2));
|
||||
m_back_painter->draw_bitmap(x_location, *s_close_button_bitmap, Color::Black);
|
||||
|
|
|
@ -77,7 +77,7 @@ void WSWindowSwitcher::draw()
|
|||
rect_text_color = Color::LightGray;
|
||||
} else {
|
||||
text_color = Color::Black;
|
||||
rect_text_color = Color::DarkGray;
|
||||
rect_text_color = Color::MidGray;
|
||||
}
|
||||
painter.blit(item_rect.location().translated(0, (item_rect.height() - window.icon().height()) / 2), window.icon(), window.icon().rect());
|
||||
painter.draw_text(item_rect.translated(window.icon().width() + 4, 0), window.title(), WSWindowManager::the().window_title_font(), TextAlignment::CenterLeft, text_color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue