Fix theme margins

Fix spacing that was changed due to the restructuring of foldable tool
panels.
This commit is contained in:
Lawrence Lee
2021-12-19 14:51:47 -08:00
parent 012103b4e2
commit a7010d25cd
14 changed files with 85 additions and 68 deletions

View File

@@ -38,6 +38,7 @@ ToolVBox::ToolVBox() {
ToolParamBlock::ToolParamBlock() {
set_orientation(Gtk::ORIENTATION_VERTICAL);
get_style_context()->add_class("ToolParamBlock");
//GTK318
#if GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION < 20
set_spacing(2); // Vertical space between parameters in a single tool
@@ -75,8 +76,9 @@ FoldableToolPanel::FoldableToolPanel(Gtk::Box* content, Glib::ustring toolName,
Gtk::Box *expanderContents = Gtk::manage(
new Gtk::Box(Gtk::Orientation::ORIENTATION_VERTICAL));
subToolsContainer = Gtk::manage(
new Gtk::Box(Gtk::Orientation::ORIENTATION_VERTICAL));
subToolsContainer = Gtk::manage(new ToolParamBlock());
subToolsContainer->get_style_context()->add_class("SubToolsContainer");
expanderContents->get_style_context()->add_class("ExpanderContents");
expanderContents->pack_start(*content, false, false, 0);
expanderContents->pack_start(*subToolsContainer, false, false, 0);