summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-12-18 13:54:11 +0000
committerTavmjong Bah <tavmjong@free.fr>2017-12-18 13:54:11 +0000
commit152db3184d26d48b0ac476637a15d356ebea0d41 (patch)
tree970edf3f65e99bd0b4d1f98903cc962093f650a2
parentAdd README's so I don't have to figure out what these libraries are used for ... (diff)
downloadinkscape-152db3184d26d48b0ac476637a15d356ebea0d41.tar.gz
inkscape-152db3184d26d48b0ac476637a15d356ebea0d41.zip
Reduce with of +/- buttons. Reduce width of Fill and Stroke dialog.
-rw-r--r--share/ui/style.css14
-rw-r--r--src/ui/widget/color-notebook.cpp2
2 files changed, 15 insertions, 1 deletions
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();