Should work... but no compile

This commit is contained in:
Brian Mock 2011-02-22 15:37:50 -08:00
parent bd1575e1b2
commit 971fb3240a
4 changed files with 16 additions and 7 deletions

View File

@ -31,7 +31,6 @@
*/
#include "wmfs.h"
#include "color.h"
/** Create a BarWindow
* \param parent Parent window of the BarWindow
@ -96,8 +95,8 @@ barwin_create(Window parent,
bw->geo.height = h;
bw->bg = bg;
bw->fg = fg;
bw->border.light = color_shade(bg, 0.10);
bw->border.dark = color_shade(bg, -0.10);
bw->border.light = color_shade(bg, conf.colors.bar_light_shade);
bw->border.dark = color_shade(bg, conf.colors.bar_dark_shade);
bw->stipple = stipple;
bw->stipple_color = -1;

View File

@ -203,6 +203,9 @@ conf_bar_section(void)
conf.colors.bar = getcolor((barbg = fetch_opt_first(bar, "#000000", "bg").str));
conf.colors.text = fetch_opt_first(bar, "#ffffff", "fg").str;
conf.colors.bar_light_shade = fetch_opt_first(bar, "0.25", "light_shade").fnum;
conf.colors.bar_dark_shade = fetch_opt_first(bar, "-0.25", "dark_shade").fnum;
mouse = fetch_section(bar, "mouse");
if ((conf.bars.nmouse = fetch_section_count(mouse)) > 0)
@ -301,6 +304,9 @@ conf_client_section(void)
conf.client.default_open_screen = fetch_opt_first(sec, "-1", "default_open_screen").num;
conf.client.new_client_get_mouse = fetch_opt_first(sec, "false", "new_client_get_mouse").bool;
conf.colors.client_light_shade = fetch_opt_first(bar, "0.25", "light_shade").fnum;
conf.colors.client_dark_shade = fetch_opt_first(bar, "-0.25", "dark_shade").fnum;
mouse = fetch_section(sec, "mouse");
if((conf.client.nmouse = fetch_section_count(mouse)) > 0)

View File

@ -258,10 +258,10 @@ frame_update(Client *c)
if(conf.client.border_shadow)
{
XSetWindowBackground(dpy, c->left, color_shade(c->colors.frame, 0.01));
XSetWindowBackground(dpy, c->top, color_shade(c->colors.frame, 0.01));
XSetWindowBackground(dpy, c->right, color_shade(c->colors.frame, -0.01));
XSetWindowBackground(dpy, c->bottom, color_shade(c->colors.frame, -0.01));
XSetWindowBackground(dpy, c->left, color_shade(c->colors.frame, conf.colors.client_light_shade));
XSetWindowBackground(dpy, c->top, color_shade(c->colors.frame, conf.colors.client_light_shade));
XSetWindowBackground(dpy, c->right, color_shade(c->colors.frame, conf.colors.client_dark_shade));
XSetWindowBackground(dpy, c->bottom, color_shade(c->colors.frame, conf.colors.client_dark_shade));
XClearWindow(dpy, c->left);
XClearWindow(dpy, c->top);

View File

@ -216,6 +216,10 @@ struct Client
uint frame;
char *fg;
uint resizecorner;
float client_light_shade;
float client_dark_shade;
float bar_light_shade;
float bar_dark_shade;
} colors;
/* Client Information by flags */
uint flags;