summaryrefslogtreecommitdiffstats
path: root/share/ui/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'share/ui/style.css')
-rw-r--r--share/ui/style.css98
1 files changed, 98 insertions, 0 deletions
diff --git a/share/ui/style.css b/share/ui/style.css
new file mode 100644
index 000000000..6729344d2
--- /dev/null
+++ b/share/ui/style.css
@@ -0,0 +1,98 @@
+
+/* GTK3 WIDGET STYLING */
+
+/*
+ * Keep in order of:
+ * General -> Specific
+ * Order of appearance in widget tree.
+ * See GtkInspector
+ * GTK_DEBUG=interactive ~/path_to_gtk3/bin/inkscape
+ *
+ * We need a standardized naming scheme.
+ *
+ * As of Gtk 3.20, you cannot use widget names.
+ */
+
+/* Standard theme based colors. Prefer these.
+ *
+ * @theme_bg_color
+ * @theme_fg_color
+ * @theme_base_color
+ * @theme_text_color
+ * @theme_selected_bg_color
+ * @theme_selected_fg_color
+ * @theme_tooltip_bg_color
+ * @theme_tooltip_fg_color
+ *
+ */
+
+
+/* Our own custom shades... better not to use.
+ * Lightest to darkest based on linear rgb.
+ */
+@define-color bg_color0 #ffffff; /* White */
+@define-color bg_color05 #f8f8f8; /* Slightly off white */
+@define-color bg_color1 #f0f0f0;
+@define-color bg_color2 #e0e0e0;
+@define-color bg_color3 #d0d0d0;
+@define-color bg_color4 #bbbbbb; /* 50% Gray */
+@define-color bg_color5 #a5a5a5;
+@define-color bg_color6 #898989;
+@define-color bg_color7 #636363;
+@define-color bg_color8 #000000; /* Black */
+
+/* 'GtkWidget' for Gtk <= 3.18 */
+/* 'widget' for Gtk <= 3.19.2 */
+GtkWidget, widget {
+/* font-size: 12pt; */
+}
+
+GtkSpinButton {
+ padding: 0;
+}
+
+spinbutton {
+ padding: 0;
+}
+
+GtkSpinButton.entry {
+ padding-left: 2px;
+}
+
+spinbutton.entry {
+ padding-left: 2px;
+}
+
+SPRuler {
+ background-color: @theme_bg_color;
+ color: @theme_fg_color;
+}
+
+ruler-widget {
+ background-color: @theme_bg_color;
+ color: @theme_fg_color;
+}
+
+/* The actual canvas (Inkscape's drawing area). */
+SPCanvas {
+ background-color: white;
+}
+
+combobox window.popup scrolledwindow treeview separator {
+ -GtkWidget-wide-separators: true;
+ -GtkWidget-separator-height: 6;
+}
+
+#font_selector_family {
+ -GtkWidget-wide-separators: true;
+ -GtkWidget-separator-height: 6;
+}
+
+#TextFontFamilyAction_combobox {
+ -GtkComboBox-appears-as-list: true;
+}
+
+#LockGuides {
+ padding: 0;
+}
+