feat(bar): choose height from config file

This commit is contained in:
Alexis
2018-08-10 18:46:31 +02:00
parent 8b0cdc5f4b
commit c792871f6e
3 changed files with 11 additions and 9 deletions

View File

@ -17,7 +17,7 @@ namespace waybar {
struct zwlr_layer_surface_v1 *layerSurface;
std::unique_ptr<struct wl_output *> output;
bool visible = true;
auto setWidth(int) -> void;
auto setWidth(uint32_t) -> void;
auto toggle() -> void;
private:
static void _handleGeometry(void *data, struct wl_output *wl_output,
@ -36,7 +36,8 @@ namespace waybar {
auto _setupConfig() -> void;
auto _setupWidgets() -> void;
auto _setupCss() -> void;
int _width = 10;
uint32_t _width = 10;
uint32_t _height = 30;
Json::Value _config;
Glib::RefPtr<Gtk::StyleContext> _styleContext;
Glib::RefPtr<Gtk::CssProvider> _cssProvider;

View File

@ -23,7 +23,6 @@
namespace waybar {
struct Client {
uint32_t height = 30;
std::string cssFile;
std::string configFile;