mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
WindowServer+LibGfx: Move title bar button layout to WindowTheme
This commit is contained in:
parent
1ab8939077
commit
208cb995ba
4 changed files with 36 additions and 24 deletions
|
@ -26,8 +26,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibGfx/WindowTheme.h>
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibGfx/WindowTheme.h>
|
||||
|
||||
namespace Gfx {
|
||||
|
||||
|
@ -45,6 +45,8 @@ public:
|
|||
|
||||
virtual IntRect frame_rect_for_window(WindowType, const IntRect& window_rect, const Palette&) const override;
|
||||
|
||||
virtual Vector<IntRect> layout_buttons(WindowType, const IntRect& window_rect, const Palette&, size_t buttons) const override;
|
||||
|
||||
private:
|
||||
struct FrameColors {
|
||||
Color title_color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue