summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-05-26 22:54:12 +0200
committerBoris Faure <billiob@gmail.com>2019-05-26 22:54:12 +0200
commit82dec43611be11f2762120fb47d9a1671c910b3b (patch)
tree9828c6995294eb5bcb931666657d0de1d25eed9f /data
parentd29533e34149cdb7acae9593b95269b06bd3227e (diff)
themes: use a color_class BG to set background color
Diffstat (limited to 'data')
-rw-r--r--data/themes/base16_ocean_dark.edc1
-rw-r--r--data/themes/default.edc10
-rw-r--r--data/themes/default_colors.in.edc3
-rw-r--r--data/themes/mild.edc4
-rw-r--r--data/themes/mustang.edc2
-rw-r--r--data/themes/nord.edc4
-rw-r--r--data/themes/smyck.edc2
-rw-r--r--data/themes/solarized.edc21
-rw-r--r--data/themes/solarized_light.edc4
9 files changed, 32 insertions, 19 deletions
diff --git a/data/themes/base16_ocean_dark.edc b/data/themes/base16_ocean_dark.edc
index 124a0ac..843fc5a 100644
--- a/data/themes/base16_ocean_dark.edc
+++ b/data/themes/base16_ocean_dark.edc
@@ -25,6 +25,7 @@ collections {
25 color_class { name: "C7"; color: 192 197 206 255; } 25 color_class { name: "C7"; color: 192 197 206 255; }
26 color_class { name: "C8"; color: 101 115 126 255; } 26 color_class { name: "C8"; color: 101 115 126 255; }
27 color_class { name: "C9"; color: 208 135 112 255; } 27 color_class { name: "C9"; color: 208 135 112 255; }
28 color_class { name: "BG"; color: BG_COLOR; }
28 } 29 }
29} 30}
30 31
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 9323255..45d6082 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -1,7 +1,7 @@
1#ifndef NO_COLORS 1#ifndef NO_COLORS
2color_classes { 2color_classes {
3# include "default_colors.in.edc" 3#define BG_COLOR 32 32 32 255
4# define BG_COL 32 32 32 255 4#include "default_colors.in.edc"
5} 5}
6#endif 6#endif
7 7
@@ -54,7 +54,7 @@ collections {
54 part { name: "miniview.bg"; type: RECT; 54 part { name: "miniview.bg"; type: RECT;
55 //mouse_events: 1; 55 //mouse_events: 1;
56 description { state: "default" 0.0; 56 description { state: "default" 0.0;
57 color: BG_COL; 57 color_class: "BG";
58 } 58 }
59 } 59 }
60 part { name: "shadow"; 60 part { name: "shadow";
@@ -326,7 +326,7 @@ collections {
326 part { name: "base"; type: RECT; 326 part { name: "base"; type: RECT;
327 mouse_events: 1; 327 mouse_events: 1;
328 description { state: "default" 0.0; 328 description { state: "default" 0.0;
329 color: BG_COL; 329 color_class: "BG";
330 } 330 }
331 } 331 }
332 332
@@ -5153,7 +5153,7 @@ target: "0.clip"; target: "1.clip"; target: "2.clip"; target: "3.clip"; target:
5153 part { name: "base"; type: RECT; 5153 part { name: "base"; type: RECT;
5154 mouse_events: 1; 5154 mouse_events: 1;
5155 description { state: "default" 0.0; 5155 description { state: "default" 0.0;
5156 color: BG_COL; 5156 color_class: "BG";
5157 rel1.offset: 2 2; 5157 rel1.offset: 2 2;
5158 rel2.offset: -3 -3; 5158 rel2.offset: -3 -3;
5159 } 5159 }
diff --git a/data/themes/default_colors.in.edc b/data/themes/default_colors.in.edc
index aa68f4b..415460f 100644
--- a/data/themes/default_colors.in.edc
+++ b/data/themes/default_colors.in.edc
@@ -1,3 +1,5 @@
1color_class { name: "BG"; color: BG_COLOR ; }
2
1color_class { name: "c0"; color: 170 170 170 255; } // COL_DEF 3color_class { name: "c0"; color: 170 170 170 255; } // COL_DEF
2color_class { name: "c1"; color: 0 0 0 255; } // COL_BLACK 4color_class { name: "c1"; color: 0 0 0 255; } // COL_BLACK
3color_class { name: "c2"; color: 204 51 51 255; } // COL_RED 5color_class { name: "c2"; color: 204 51 51 255; } // COL_RED
@@ -347,5 +349,4 @@ color_class { name: "C252"; color: 210 210 210 255; }
347color_class { name: "C253"; color: 218 218 218 255; } 349color_class { name: "C253"; color: 218 218 218 255; }
348color_class { name: "C254"; color: 228 228 228 255; } 350color_class { name: "C254"; color: 228 228 228 255; }
349color_class { name: "C255"; color: 238 238 238 255; } 351color_class { name: "C255"; color: 238 238 238 255; }
350
351#endif 352#endif
diff --git a/data/themes/mild.edc b/data/themes/mild.edc
index a75cba0..f8a79d0 100644
--- a/data/themes/mild.edc
+++ b/data/themes/mild.edc
@@ -129,7 +129,7 @@ collections {
129 mouse_events: 1; 129 mouse_events: 1;
130 clip_to: "baseclip"; 130 clip_to: "baseclip";
131 description { state: "default" 0.0; 131 description { state: "default" 0.0;
132 color: BG_COLOR; 132 color_class: "BG";
133 } 133 }
134 } 134 }
135 part { name: "fade"; type: RECT; 135 part { name: "fade"; type: RECT;
@@ -1820,7 +1820,7 @@ collections {
1820 part { name: "base"; type: RECT; 1820 part { name: "base"; type: RECT;
1821 clip_to: "clip"; 1821 clip_to: "clip";
1822 description { state: "default" 0.0; 1822 description { state: "default" 0.0;
1823 color: BG_COLOR; 1823 color_class: "BG";
1824 rel1.to: "terminology.content"; 1824 rel1.to: "terminology.content";
1825 rel2.to: "terminology.content"; 1825 rel2.to: "terminology.content";
1826 } 1826 }
diff --git a/data/themes/mustang.edc b/data/themes/mustang.edc
index b81656e..2176c6b 100644
--- a/data/themes/mustang.edc
+++ b/data/themes/mustang.edc
@@ -22,6 +22,8 @@ collections {
22 color_class { name: "C13"; color: 245 121 0 255; } 22 color_class { name: "C13"; color: 245 121 0 255; }
23 color_class { name: "C14"; color: 70 164 255 255; } 23 color_class { name: "C14"; color: 70 164 255 255; }
24 color_class { name: "C15"; color: 255 255 255 255; } 24 color_class { name: "C15"; color: 255 255 255 255; }
25
26 color_class { name: "BG"; color: BG_COLOR; }
25 } 27 }
26} 28}
27 29
diff --git a/data/themes/nord.edc b/data/themes/nord.edc
index 7aa74ee..b290b0a 100644
--- a/data/themes/nord.edc
+++ b/data/themes/nord.edc
@@ -39,7 +39,7 @@
39#define ANSI15 nord6 39#define ANSI15 nord6
40 40
41#define COL_DEF nord4 41#define COL_DEF nord4
42#define BG_COL nord0 42#define BG_COLOR nord0
43#define NO_COLORS 1 43#define NO_COLORS 1
44 44
45color_classes { 45color_classes {
@@ -100,5 +100,7 @@ color_classes {
100 color_class { name: "c42"; color: ANSI13; } 100 color_class { name: "c42"; color: ANSI13; }
101 color_class { name: "c43"; color: ANSI14; } 101 color_class { name: "c43"; color: ANSI14; }
102 color_class { name: "c44"; color: ANSI15; } 102 color_class { name: "c44"; color: ANSI15; }
103
104 color_class { name: "BG"; color: BG_COLOR; }
103} 105}
104#include "default.edc" 106#include "default.edc"
diff --git a/data/themes/smyck.edc b/data/themes/smyck.edc
index 8ac1535..b365501 100644
--- a/data/themes/smyck.edc
+++ b/data/themes/smyck.edc
@@ -79,6 +79,8 @@ color_classes {
79 color_class { name: "c42"; color: ANSI13; } 79 color_class { name: "c42"; color: ANSI13; }
80 color_class { name: "c43"; color: ANSI14; } 80 color_class { name: "c43"; color: ANSI14; }
81 color_class { name: "c44"; color: ANSI15; } 81 color_class { name: "c44"; color: ANSI15; }
82
83 color_class { name: "BG"; color: BG_COLOR; }
82} 84}
83 85
84#define INHERIT_PROVIDE_OWN_COLORS 86#define INHERIT_PROVIDE_OWN_COLORS
diff --git a/data/themes/solarized.edc b/data/themes/solarized.edc
index c344c6c..51aba64 100644
--- a/data/themes/solarized.edc
+++ b/data/themes/solarized.edc
@@ -6,16 +6,16 @@
6#define S_blue 38 139 210 255 6#define S_blue 38 139 210 255
7#define S_cyan 42 161 152 255 7#define S_cyan 42 161 152 255
8#define S_green 133 153 0 255 8#define S_green 133 153 0 255
9#define S_base03 0 43 54 255 9#define S_base03 0 43 54 255
10#define S_base02 7 54 66 255 10#define S_base02 7 54 66 255
11#define S_base01 88 110 117 255 11#define S_base01 88 110 117 255
12#define S_base00 101 123 131 255 12#define S_base00 101 123 131 255
13#define S_base0 131 148 150 255 13#define S_base0 131 148 150 255
14#define S_base1 147 161 161 255 14#define S_base1 147 161 161 255
15#define S_base2 238 232 213 255 15#define S_base2 238 232 213 255
16#define S_base3 253 246 227 255 16#define S_base3 253 246 227 255
17 17
18#define BG_COL S_base03 18#define BG_COLOR S_base03
19#define NO_COLORS 1 19#define NO_COLORS 1
20 20
21color_classes { 21color_classes {
@@ -82,5 +82,8 @@ color_classes {
82 color_class { name: "C13"; color: S_violet; } // COL_MAGENTA 82 color_class { name: "C13"; color: S_violet; } // COL_MAGENTA
83 color_class { name: "C14"; color: S_base1; } // COL_CYAN 83 color_class { name: "C14"; color: S_base1; } // COL_CYAN
84 color_class { name: "C15"; color: S_base3; } // COL_WHITE 84 color_class { name: "C15"; color: S_base3; } // COL_WHITE
85
86 color_class { name: "BG"; color: BG_COLOR; }
87
85} 88}
86#include "default.edc" 89#include "default.edc"
diff --git a/data/themes/solarized_light.edc b/data/themes/solarized_light.edc
index b68e938..71fd1a4 100644
--- a/data/themes/solarized_light.edc
+++ b/data/themes/solarized_light.edc
@@ -15,7 +15,7 @@
15#define S_base2 7 54 66 255 15#define S_base2 7 54 66 255
16#define S_base3 0 43 54 255 16#define S_base3 0 43 54 255
17 17
18#define BG_COL S_base03 18#define BG_COLOR S_base03
19#define NO_COLORS 1 19#define NO_COLORS 1
20 20
21color_classes { 21color_classes {
@@ -73,5 +73,7 @@ color_classes {
73 color_class { name: "C13"; color: S_violet; } // COL_MAGENTA 73 color_class { name: "C13"; color: S_violet; } // COL_MAGENTA
74 color_class { name: "C14"; color: S_base1; } // COL_CYAN 74 color_class { name: "C14"; color: S_base1; } // COL_CYAN
75 color_class { name: "C15"; color: S_base3; } // COL_WHITE 75 color_class { name: "C15"; color: S_base3; } // COL_WHITE
76
77 color_class { name: "BG"; color: BG_COLOR; }
76} 78}
77#include "default.edc" 79#include "default.edc"