aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-gtk/fallback.css
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2016-02-02 14:42:58 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2016-02-02 17:49:42 +0100
commite768487fe3ef9ec8f94cea11ad6587c49c32422a (patch)
tree2d9b3a6fdea2fc8dc06c4fbd548eee4b9bf95cab /src/interface-gtk/fallback.css
parent8627a00e3b25cdd80d88ddcef9d2d73cc784d571 (diff)
downloadsciteco-e768487fe3ef9ec8f94cea11ad6587c49c32422a.tar.gz
Gtk UI: full color scheme support
* implemented by exporting the most important Scintilla STYLEs as CSS variables and defining named widgets for the main UI components. * ~/.teco_css will then apply the Scintilla styles to the Gtk UI. This file is also for additional tweaks, e.g. enabling translucency. * A fallback.css is provided which does just that and is able to apply the terminal.tes and solarized.tes color schemes. * Other important aspects of theming like font sizes and names have not yet been dealt with. (We may want to apply the corresponding Scintilla settings to some widgets...)
Diffstat (limited to 'src/interface-gtk/fallback.css')
-rw-r--r--src/interface-gtk/fallback.css47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/interface-gtk/fallback.css b/src/interface-gtk/fallback.css
new file mode 100644
index 0000000..0482763
--- /dev/null
+++ b/src/interface-gtk/fallback.css
@@ -0,0 +1,47 @@
+/*
+ * This CSS will loaded as a fallback if there is no
+ * $SCITECOCONFIG/.teco_css.
+ * It tries to apply the current SciTECO color scheme
+ * by using predefined variables (see sciteco(7)).
+ * This may cause problems with your current Gtk theme.
+ * You can copy this file to $SCITECOCONFIG/.teco_css
+ * to fix it up or add other style customizations.
+ */
+
+/*
+ * Original STYLE_DEFAULT foregrounds on backgrounds:
+ */
+#sciteco-cmdline {
+ color: @sciteco_default_fg_color;
+ text-shadow: none;
+ background-color: @sciteco_default_bg_color;
+ background-image: none;
+}
+
+/*
+ * Reversed STYLE_DEFAULT colors:
+ * The "question" class refers to G_MESSAGE_QUESTION.
+ * This is used for showing user-level messages for the sole
+ * reason that there is no class for G_MESSAGE_OTHER that
+ * we could use for styling.
+ */
+#sciteco-info-bar,
+#sciteco-info-bar GtkLabel,
+.titlebar, /* info bar in CSD mode */
+#sciteco-message-bar.question {
+ color: @sciteco_default_bg_color;
+ text-shadow: none;
+ background-color: @sciteco_default_fg_color;
+ background-image: none;
+}
+
+/*
+ * The popup widget (uses STYLE_CALLTIP)
+ */
+#sciteco-info-popup,
+#sciteco-info-popup GtkLabel {
+ color: @sciteco_calltip_fg_color;
+ text-shadow: none;
+ background-color: @sciteco_calltip_bg_color;
+ background-image: none;
+}