From 152db3184d26d48b0ac476637a15d356ebea0d41 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Mon, 18 Dec 2017 14:54:11 +0100 Subject: Reduce with of +/- buttons. Reduce width of Fill and Stroke dialog. --- share/ui/style.css | 14 +++++++++++++- src/ui/widget/color-notebook.cpp | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/share/ui/style.css b/share/ui/style.css index 7c3487673..7774ab30e 100644 --- a/share/ui/style.css +++ b/share/ui/style.css @@ -96,5 +96,17 @@ combobox window.popup scrolledwindow treeview separator { /* Keep pallete scrollbar from generating warnings. */ #PreviewHolderScrolledWindow .vertical slider { - min-height: 15px; + min-height: 15px; +} + +/* Reduce width of Fill and Stroke dialog */ +#ColorModeButton { + padding-left: 0; + padding-right: 0; +} + +/* Reduce width of +/- buttons. */ +.up, .down { + padding-left: 0; + padding-right: 0; } diff --git a/src/ui/widget/color-notebook.cpp b/src/ui/widget/color-notebook.cpp index bd4b21bdb..d60150767 100644 --- a/src/ui/widget/color-notebook.cpp +++ b/src/ui/widget/color-notebook.cpp @@ -321,9 +321,11 @@ void ColorNotebook::_addPage(Page &page) Glib::ustring mode_name = page.selector_factory->modeName(); Gtk::Widget *tab_label = Gtk::manage(new Gtk::Label(mode_name)); + tab_label->set_name("ColorModeLabel"); gint page_num = gtk_notebook_append_page(GTK_NOTEBOOK(_book), selector_widget->gobj(), tab_label->gobj()); _buttons[page_num] = gtk_radio_button_new_with_label(NULL, mode_name.c_str()); + gtk_widget_set_name(_buttons[page_num], "ColorModeButton"); gtk_toggle_button_set_mode(GTK_TOGGLE_BUTTON(_buttons[page_num]), FALSE); if (page_num > 0) { auto g = Glib::wrap(GTK_RADIO_BUTTON(_buttons[0]))->get_group(); -- cgit v1.2.3