diff options
author | 2016-11-02 21:07:04 +0100 | |
---|---|---|
committer | 2016-11-02 21:07:04 +0100 | |
commit | 58eb7ac19fe436737babcbd1effd41ef96af6632 (patch) | |
tree | a3db9567c63b2b2bae27c17d3a103c8f2786a9f7 /include/sway | |
parent | add bar colours for focused_(workspace|statusline|separator) (diff) | |
download | sway-58eb7ac19fe436737babcbd1effd41ef96af6632.tar.gz sway-58eb7ac19fe436737babcbd1effd41ef96af6632.tar.zst sway-58eb7ac19fe436737babcbd1effd41ef96af6632.zip |
change bar colors from char[10] to *char
This commit removes has_* booleans from bar color struct. It also
generalizes of functions in commands/bar/colors.c.
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/config.h | 50 |
1 files changed, 21 insertions, 29 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 9b3cc60c..8d077ee7 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -145,35 +145,27 @@ struct bar_config { | |||
145 | bool verbose; | 145 | bool verbose; |
146 | pid_t pid; | 146 | pid_t pid; |
147 | struct { | 147 | struct { |
148 | char background[10]; | 148 | char *background; |
149 | char statusline[10]; | 149 | char *statusline; |
150 | char separator[10]; | 150 | char *separator; |
151 | char focused_background[10]; | 151 | char *focused_background; |
152 | char focused_statusline[10]; | 152 | char *focused_statusline; |
153 | char focused_separator[10]; | 153 | char *focused_separator; |
154 | char focused_workspace_border[10]; | 154 | char *focused_workspace_border; |
155 | char focused_workspace_bg[10]; | 155 | char *focused_workspace_bg; |
156 | char focused_workspace_text[10]; | 156 | char *focused_workspace_text; |
157 | char active_workspace_border[10]; | 157 | char *active_workspace_border; |
158 | char active_workspace_bg[10]; | 158 | char *active_workspace_bg; |
159 | char active_workspace_text[10]; | 159 | char *active_workspace_text; |
160 | char inactive_workspace_border[10]; | 160 | char *inactive_workspace_border; |
161 | char inactive_workspace_bg[10]; | 161 | char *inactive_workspace_bg; |
162 | char inactive_workspace_text[10]; | 162 | char *inactive_workspace_text; |
163 | char urgent_workspace_border[10]; | 163 | char *urgent_workspace_border; |
164 | char urgent_workspace_bg[10]; | 164 | char *urgent_workspace_bg; |
165 | char urgent_workspace_text[10]; | 165 | char *urgent_workspace_text; |
166 | char binding_mode_border[10]; | 166 | char *binding_mode_border; |
167 | char binding_mode_bg[10]; | 167 | char *binding_mode_bg; |
168 | char binding_mode_text[10]; | 168 | char *binding_mode_text; |
169 | |||
170 | bool has_focused_background; | ||
171 | bool has_focused_statusline; | ||
172 | bool has_focused_separator; | ||
173 | |||
174 | bool has_binding_mode_border; | ||
175 | bool has_binding_mode_bg; | ||
176 | bool has_binding_mode_text; | ||
177 | } colors; | 169 | } colors; |
178 | }; | 170 | }; |
179 | 171 | ||