mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:57:35 +00:00
ClockSettings+Taskbar: Add settings for taskbar clock format
This commit is contained in:
parent
36b6356ce5
commit
5bb0b6ba7a
13 changed files with 334 additions and 179 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue