diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-18 15:35:57 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-18 16:35:18 +0200 |
commit | 12546259ff7765a354353bc545f7a88fd490d712 (patch) | |
tree | ead2cdb7f9710254160c086d02399862ff5511c6 /Userland/Applications/ThemeEditor/PreviewWidget.cpp | |
parent | 81daca5dd7d931f743d780e320a914cb6396348e (diff) | |
download | serenity-12546259ff7765a354353bc545f7a88fd490d712.zip |
Everywhere: Rename title_bar => titlebar
Diffstat (limited to 'Userland/Applications/ThemeEditor/PreviewWidget.cpp')
-rw-r--r-- | Userland/Applications/ThemeEditor/PreviewWidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/ThemeEditor/PreviewWidget.cpp b/Userland/Applications/ThemeEditor/PreviewWidget.cpp index b7e62f6fbd..9674e00509 100644 --- a/Userland/Applications/ThemeEditor/PreviewWidget.cpp +++ b/Userland/Applications/ThemeEditor/PreviewWidget.cpp @@ -130,8 +130,8 @@ void PreviewWidget::paint_event(GUI::PaintEvent& event) auto paint_window = [&](auto& title, const Gfx::IntRect& rect, auto state, const Gfx::Bitmap& icon) { int window_button_width = m_preview_palette.window_title_button_width(); int window_button_height = m_preview_palette.window_title_button_height(); - auto title_bar_text_rect = Gfx::WindowTheme::current().title_bar_text_rect(Gfx::WindowTheme::WindowType::Normal, rect, m_preview_palette); - int pos = title_bar_text_rect.right() + 1; + auto titlebar_text_rect = Gfx::WindowTheme::current().titlebar_text_rect(Gfx::WindowTheme::WindowType::Normal, rect, m_preview_palette); + int pos = titlebar_text_rect.right() + 1; Vector<Button> buttons; buttons.append(Button { {}, m_close_bitmap }); @@ -141,7 +141,7 @@ void PreviewWidget::paint_event(GUI::PaintEvent& event) for (auto& button : buttons) { pos -= window_button_width; Gfx::IntRect rect { pos, 0, window_button_width, window_button_height }; - rect.center_vertically_within(title_bar_text_rect); + rect.center_vertically_within(titlebar_text_rect); button.rect = rect; } |