diff options
author | cflip <cflip@cflip.net> | 2022-04-03 17:13:52 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-04 13:15:13 +0200 |
commit | 5bb0b6ba7ab1bcb6e11f081a3103bcd44d597090 (patch) | |
tree | 43676efd1019225f1369912b595a12770ec9be1a /Userland/Services/Taskbar/TaskbarWindow.h | |
parent | 36b6356ce51375a99b08cabd7bce8e5455a8fb0d (diff) | |
download | serenity-5bb0b6ba7ab1bcb6e11f081a3103bcd44d597090.zip |
ClockSettings+Taskbar: Add settings for taskbar clock format
Diffstat (limited to 'Userland/Services/Taskbar/TaskbarWindow.h')
-rw-r--r-- | Userland/Services/Taskbar/TaskbarWindow.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Services/Taskbar/TaskbarWindow.h b/Userland/Services/Taskbar/TaskbarWindow.h index bfc0ceb6fa..656f4873a5 100644 --- a/Userland/Services/Taskbar/TaskbarWindow.h +++ b/Userland/Services/Taskbar/TaskbarWindow.h @@ -6,6 +6,7 @@ #pragma once +#include "ClockWidget.h" #include "WindowList.h" #include <LibConfig/Listener.h> #include <LibDesktop/AppFile.h> @@ -14,7 +15,8 @@ #include <LibGfx/ShareableBitmap.h> #include <Services/WindowServer/ScreenLayout.h> -class TaskbarWindow final : public GUI::Window { +class TaskbarWindow final : public GUI::Window + , public Config::Listener { C_OBJECT(TaskbarWindow); public: @@ -23,6 +25,8 @@ public: static int taskbar_height() { return 27; } static int taskbar_icon_size() { return 16; } + virtual void config_string_did_change(String const&, String const&, String const&, String const&) override; + private: explicit TaskbarWindow(NonnullRefPtr<GUI::Menu> start_menu); static void show_desktop_button_clicked(unsigned); @@ -53,6 +57,7 @@ private: RefPtr<GUI::Frame> m_applet_area_container; RefPtr<GUI::Button> m_start_button; RefPtr<GUI::Button> m_show_desktop_button; + RefPtr<Taskbar::ClockWidget> m_clock_widget; RefPtr<Desktop::AppFile> m_assistant_app_file; |