diff options
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibGUI/Application.cpp | 5 | ||||
-rw-r--r-- | Libraries/LibGUI/Application.h | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Libraries/LibGUI/Application.cpp b/Libraries/LibGUI/Application.cpp index 7a0b1401c7..49dacb513a 100644 --- a/Libraries/LibGUI/Application.cpp +++ b/Libraries/LibGUI/Application.cpp @@ -189,4 +189,9 @@ void Application::set_palette(const Palette& palette) m_palette = palette.impl(); } +Gfx::Palette Application::palette() const +{ + return Palette(*m_palette); +} + } diff --git a/Libraries/LibGUI/Application.h b/Libraries/LibGUI/Application.h index 703d261424..b2f7c0de86 100644 --- a/Libraries/LibGUI/Application.h +++ b/Libraries/LibGUI/Application.h @@ -26,20 +26,17 @@ #pragma once -#include <AK/Badge.h> #include <AK/HashMap.h> #include <AK/OwnPtr.h> #include <LibCore/Forward.h> #include <LibGUI/Shortcut.h> #include <LibGfx/Forward.h> -#include <LibGfx/Palette.h> namespace GUI { class Action; class KeyEvent; class MenuBar; class Window; -class WindowServerConnection; class Application { public: @@ -68,8 +65,8 @@ public: const String& invoked_as() const { return m_invoked_as; } const Vector<String>& args() const { return m_args; } - Palette palette() const { return Palette(*m_palette); } - void set_palette(const Palette&); + Gfx::Palette palette() const; + void set_palette(const Gfx::Palette&); void set_system_palette(SharedBuffer&); |