feat: re-add default and configurable icon spacing

This commit is contained in:
Azazel 2024-02-26 20:58:38 +00:00
parent 695c786354
commit a7d8b1bacf
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ AIconLabel::AIconLabel(const Json::Value &config, const std::string &name, const
box_.set_orientation(Gtk::Orientation::ORIENTATION_HORIZONTAL); box_.set_orientation(Gtk::Orientation::ORIENTATION_HORIZONTAL);
box_.set_name(name); box_.set_name(name);
int spacing = config_["icon-spacing"].isInt() ? config_["icon-spacing"].asInt() : 6;
box_.set_spacing(spacing);
box_.add(image_); box_.add(image_);
box_.add(label_); box_.add(label_);