feat(tray): spacing config

This commit is contained in:
Alexis
2018-10-26 12:08:50 +02:00
parent 5010227e6b
commit 07d8dfb3d6
3 changed files with 10 additions and 2 deletions

View File

@ -3,7 +3,12 @@
#include <iostream>
waybar::modules::SNI::Tray::Tray(const Json::Value &config)
: config_(config), watcher_(), host_(&dp) {}
: config_(config), watcher_(), host_(&dp)
{
if (config_["spacing"].isUInt()) {
box_.set_spacing(config_["spacing"].asUInt());
}
}
auto waybar::modules::SNI::Tray::update() -> void {
for (auto &item : host_.items) {