1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:17:35 +00:00

ThemeEditor: Center preview windows accounting for window frame

This commit is contained in:
MacDue 2022-04-28 19:06:26 +01:00 committed by Andreas Kling
parent 5ed3f7c6bf
commit 332574608c
2 changed files with 39 additions and 9 deletions

View file

@ -35,6 +35,11 @@ private:
virtual void resize_event(GUI::ResizeEvent&) override;
virtual void drop_event(GUI::DropEvent&) override;
void update_preview_window_locations();
Gfx::IntRect m_active_window_rect;
Gfx::IntRect m_inactive_window_rect;
OwnPtr<Gfx::ColorBlindnessFilter> m_color_filter = nullptr;
RefPtr<MiniWidgetGallery> m_gallery;
};