mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
feat(modules): generic label module to allow max-length on all labels
This commit is contained in:
@ -1,22 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <json/json.h>
|
||||
#include <fmt/format.h>
|
||||
#include "fmt/time.h"
|
||||
#include "util/chrono.hpp"
|
||||
#include "IModule.hpp"
|
||||
#include "ALabel.hpp"
|
||||
|
||||
namespace waybar::modules {
|
||||
|
||||
class Clock : public IModule {
|
||||
class Clock : public ALabel {
|
||||
public:
|
||||
Clock(Json::Value);
|
||||
auto update() -> void;
|
||||
operator Gtk::Widget &();
|
||||
private:
|
||||
Gtk::Label label_;
|
||||
waybar::util::SleeperThread thread_;
|
||||
Json::Value config_;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user