diff options
| author | Zandr Martin <zandrmartin@gmail.com> | 2016-07-30 18:50:13 -0500 | 
|---|---|---|
| committer | Zandr Martin <zandrmartin@gmail.com> | 2016-07-30 18:50:13 -0500 | 
| commit | 98aa59fdda5fcc9a589e93f7c6ef40d3eaee3972 (patch) | |
| tree | a7acb9aab8520040d49be04184d70984a66b95e7 /swaybar/config.c | |
| parent | 2e4ece65da7e2afe5da1d3347c88bda48b1efa90 (diff) | |
| download | sway-98aa59fdda5fcc9a589e93f7c6ef40d3eaee3972.tar.xz | |
implement solid color rendering for swaybg
Diffstat (limited to 'swaybar/config.c')
| -rw-r--r-- | swaybar/config.c | 13 | 
1 files changed, 0 insertions, 13 deletions
diff --git a/swaybar/config.c b/swaybar/config.c index f3a3e716..b5dca668 100644 --- a/swaybar/config.c +++ b/swaybar/config.c @@ -5,19 +5,6 @@  #include "log.h"  #include "bar/config.h" -uint32_t parse_color(const char *color) { -	if (color[0] != '#') { -		sway_log(L_DEBUG, "Invalid color %s, defaulting to color 0xFFFFFFFF", color); -		return 0xFFFFFFFF; -	} -	char *end; -	uint32_t res = (uint32_t)strtol(color + 1, &end, 16); -	if (strlen(color) == 7) { -		res = (res << 8) | 0xFF; -	} -	return res; -} -  uint32_t parse_position(const char *position) {  	if (strcmp("top", position) == 0) {  		return DESKTOP_SHELL_PANEL_POSITION_TOP;  | 
