1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

ThemeEditor: Fix Clang build failure in PreviewWidget

This commit is contained in:
Linus Groh 2022-05-07 23:33:00 +02:00
parent cf5b6c5c8d
commit 360e149c5c

View file

@ -109,8 +109,10 @@ void PreviewWidget::update_preview_window_locations()
m_inactive_window_rect = m_active_window_rect.translated(inactive_offset_x, inactive_offset_y);
m_highlight_window_rect = Gfx::IntRect(m_active_window_rect.location(), { 160, 70 }).translated(hightlight_offset_x, hightlight_offset_y);
Array<Window, 3> window_group {
m_active_window_rect, m_inactive_window_rect, m_highlight_window_rect
auto window_group = Array {
Window { m_active_window_rect },
Window { m_inactive_window_rect },
Window { m_highlight_window_rect },
};
center_window_group_within(window_group, frame_inner_rect());