using simple strings for colors in config.h
This commit is contained in:
parent
151d29c5c3
commit
4cbfddf159
|
@ -1,6 +1,6 @@
|
||||||
/* modifier 0 means no modifier */
|
/* modifier 0 means no modifier */
|
||||||
static GdkColor progress = { 65535,65535,0,0 };
|
static gchar *progress = "#FF0000";
|
||||||
static GdkColor progress_trust = { 65535,0,65535,0 };
|
static gchar *progress_trust = "#00FF00";
|
||||||
#define MODKEY GDK_CONTROL_MASK
|
#define MODKEY GDK_CONTROL_MASK
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier keyval function arg Focus */
|
/* modifier keyval function arg Focus */
|
||||||
|
|
8
surf.c
8
surf.c
|
@ -181,6 +181,7 @@ drawindicator(Client *c) {
|
||||||
gint width;
|
gint width;
|
||||||
GdkGC *gc;
|
GdkGC *gc;
|
||||||
gchar *uri;
|
gchar *uri;
|
||||||
|
GdkColor fg;
|
||||||
|
|
||||||
|
|
||||||
uri = geturi(c);
|
uri = geturi(c);
|
||||||
|
@ -189,10 +190,9 @@ drawindicator(Client *c) {
|
||||||
|
|
||||||
gc = gdk_gc_new(w->window);
|
gc = gdk_gc_new(w->window);
|
||||||
|
|
||||||
if(strstr(uri, "https://") == uri)
|
gdk_color_parse(strstr(uri, "https://") == uri ?
|
||||||
gdk_gc_set_rgb_fg_color(gc, &progress_trust);
|
progress_trust : progress, &fg);
|
||||||
else
|
gdk_gc_set_rgb_fg_color(gc, &fg);
|
||||||
gdk_gc_set_rgb_fg_color(gc, &progress);
|
|
||||||
gdk_draw_rectangle(w->window,
|
gdk_draw_rectangle(w->window,
|
||||||
w->style->bg_gc[GTK_WIDGET_STATE(w)],
|
w->style->bg_gc[GTK_WIDGET_STATE(w)],
|
||||||
TRUE,
|
TRUE,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user