mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
![Bao Trinh](/assets/img/avatar_default.png)
currently, the orientation of group modules is always the opposite of the bar. Change it so that: * the default orientation of the group module is always the opposite of its parent, even for nested groups * the orientation can be overridden in the config * css ID and class are set for the group element
23 lines
405 B
C++
23 lines
405 B
C++
#pragma once
|
|
|
|
#include <gtkmm/box.h>
|
|
#include <gtkmm/widget.h>
|
|
#include <json/json.h>
|
|
|
|
#include "AModule.hpp"
|
|
#include "bar.hpp"
|
|
#include "factory.hpp"
|
|
|
|
namespace waybar {
|
|
|
|
class Group : public AModule {
|
|
public:
|
|
Group(const std::string&, const std::string&, const Json::Value&, bool);
|
|
~Group() = default;
|
|
auto update() -> void;
|
|
operator Gtk::Widget&();
|
|
Gtk::Box box;
|
|
};
|
|
|
|
} // namespace waybar
|