mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +00:00
WindowServer: Use to_theme_window_type() a bit more
This commit is contained in:
parent
de1a54c378
commit
ecc8a42cd2
1 changed files with 3 additions and 3 deletions
|
@ -144,17 +144,17 @@ void WindowFrame::did_set_maximized(Badge<Window>, bool maximized)
|
||||||
|
|
||||||
Gfx::IntRect WindowFrame::title_bar_rect() const
|
Gfx::IntRect WindowFrame::title_bar_rect() const
|
||||||
{
|
{
|
||||||
return Gfx::WindowTheme::current().title_bar_rect(m_window.type() == WindowType::Notification ? Gfx::WindowTheme::WindowType::Notification : Gfx::WindowTheme::WindowType::Normal, m_window.rect(), WindowManager::the().palette());
|
return Gfx::WindowTheme::current().title_bar_rect(to_theme_window_type(m_window.type()), m_window.rect(), WindowManager::the().palette());
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx::IntRect WindowFrame::title_bar_icon_rect() const
|
Gfx::IntRect WindowFrame::title_bar_icon_rect() const
|
||||||
{
|
{
|
||||||
return Gfx::WindowTheme::current().title_bar_icon_rect(m_window.type() == WindowType::Notification ? Gfx::WindowTheme::WindowType::Notification : Gfx::WindowTheme::WindowType::Normal, m_window.rect(), WindowManager::the().palette());
|
return Gfx::WindowTheme::current().title_bar_icon_rect(to_theme_window_type(m_window.type()), m_window.rect(), WindowManager::the().palette());
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx::IntRect WindowFrame::title_bar_text_rect() const
|
Gfx::IntRect WindowFrame::title_bar_text_rect() const
|
||||||
{
|
{
|
||||||
return Gfx::WindowTheme::current().title_bar_text_rect(m_window.type() == WindowType::Notification ? Gfx::WindowTheme::WindowType::Notification : Gfx::WindowTheme::WindowType::Normal, m_window.rect(), WindowManager::the().palette());
|
return Gfx::WindowTheme::current().title_bar_text_rect(to_theme_window_type(m_window.type()), m_window.rect(), WindowManager::the().palette());
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx::WindowTheme::WindowState WindowFrame::window_state_for_theme() const
|
Gfx::WindowTheme::WindowState WindowFrame::window_state_for_theme() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue