[gtksourceview/wip/fix-styles] Fix the style schemes when used with a dark gtk+ theme
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/fix-styles] Fix the style schemes when used with a dark gtk+ theme
- Date: Thu, 6 Feb 2014 15:55:18 +0000 (UTC)
commit 6e6e52cd1995455e052dd3dd2e21e5b557768510
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Feb 6 16:28:39 2014 +0100
Fix the style schemes when used with a dark gtk+ theme
This affects the classic and tango style schemes.
The problem was that some colors were taken from the gtk theme.
I think we don't have the choice, and have to hard code the colors. They
come from:
https://git.gnome.org/browse/gnome-themes-standard/tree/themes/Adwaita/gtk-3.0/gtk-main.css#n1
data/styles/classic.xml | 8 ++++++++
data/styles/tango.xml | 9 +++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/data/styles/classic.xml b/data/styles/classic.xml
index 621a454..0a2c6b8 100644
--- a/data/styles/classic.xml
+++ b/data/styles/classic.xml
@@ -42,8 +42,16 @@
<color name="yellow" value="#FFFF00"/>
<color name="purple" value="#A020F0"/>
+ <!-- See the Adwaita light theme. We copy the color values here so the style
+ scheme works also with a dark gtk+ theme. -->
+ <color name="text_color" value="#2e3436"/>
+ <color name="selected_bg_color" value="#4a90d9"/>
+
<!-- Global Settings -->
+ <style name="text" foreground="text_color" background="white"/>
+ <style name="selection" foreground="white" background="selected_bg_color"/>
<style name="current-line" background="#eeeeec"/>
+ <style name="line-numbers" foreground="text_color" background="white"/>
<style name="draw-spaces" foreground="#babdb6"/>
<!-- Bracket Matching -->
diff --git a/data/styles/tango.xml b/data/styles/tango.xml
index 62dddac..8c298d4 100644
--- a/data/styles/tango.xml
+++ b/data/styles/tango.xml
@@ -26,6 +26,7 @@
<_description>Color scheme using Tango color palette</_description>
<!-- Tango Palette -->
+ <color name="white" value="#ffffff"/>
<color name="butter1" value="#fce94f"/>
<color name="butter2" value="#edd400"/>
<color name="butter3" value="#c4a000"/>
@@ -54,9 +55,17 @@
<color name="aluminium5" value="#555753"/>
<color name="aluminium6" value="#2e3436"/>
+ <!-- See the Adwaita light theme. We copy the color values here so the style
+ scheme works also with a dark gtk+ theme. -->
+ <color name="text_color" value="#2e3436"/>
+ <color name="selected_bg_color" value="#4a90d9"/>
+
<!-- Global Settings -->
+ <style name="text" foreground="text_color" background="white"/>
+ <style name="selection" foreground="white" background="selected_bg_color"/>
<style name="cursor" foreground="aluminium4"/>
<style name="current-line" background="aluminium1"/>
+ <style name="line-numbers" foreground="text_color" background="white"/>
<style name="draw-spaces" foreground="aluminium3"/>
<!-- Bracket Matching -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]