modules: Revert button to label

This commit is contained in:
Simon Plakolb
2022-11-24 12:28:52 +01:00
parent 74fa131ebe
commit 5e9bbe5c76
43 changed files with 270 additions and 265 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
#include <list>
#include <functional>
#include <list>
#include <memory>
#include <mutex>
#include <string>
@@ -9,7 +9,7 @@
namespace waybar::modules::hyprland {
class EventHandler {
public:
public:
virtual void onEvent(const std::string& ev) = 0;
virtual ~EventHandler() = default;
};

View File

@@ -1,14 +1,13 @@
#include <fmt/format.h>
#include "AButton.hpp"
#include "ALabel.hpp"
#include "bar.hpp"
#include "modules/hyprland/backend.hpp"
#include "util/json.hpp"
namespace waybar::modules::hyprland {
class Language : public waybar::AButton,
public EventHandler {
class Language : public waybar::ALabel, public EventHandler {
public:
Language(const std::string&, const waybar::Bar&, const Json::Value&);
~Language();

View File

@@ -9,8 +9,7 @@
namespace waybar::modules::hyprland {
class Window : public waybar::ALabel,
public EventHandler {
class Window : public waybar::ALabel, public EventHandler {
public:
Window(const std::string&, const waybar::Bar&, const Json::Value&);
~Window();