1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 04:06:03 +00:00

added draw_graph_borders

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@467 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2006-01-05 23:23:51 +00:00
parent 748849525c
commit 387494b56d
6 changed files with 31 additions and 10 deletions

View File

@ -1,5 +1,8 @@
# $Id$ # $Id$
2006-01-05
* Added draw_graph_borders option
2006-01-01 2006-01-01
* Conky 1.3.5 released * Conky 1.3.5 released

4
README
View File

@ -189,6 +189,10 @@ CONFIGURATION SETTINGS
Draw borders around text? Draw borders around text?
draw_graph_borders
Draw borders around graphs?
draw_shades draw_shades
Draw shades? Draw shades?

View File

@ -76,6 +76,13 @@
<para></para></listitem> <para></para></listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term><command><option>draw_graph_borders</option></command></term>
<listitem>
Draw borders around graphs?
<para></para></listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term><command><option>draw_shades</option></command></term> <term><command><option>draw_shades</option></command></term>
<listitem> <listitem>

View File

@ -170,6 +170,10 @@ Use the Xdbe extension? (eliminates flicker) It is highly recommended to use own
\fBdraw_borders\fR \fBdraw_borders\fR
Draw borders around text? Draw borders around text?
.TP
\fBdraw_graph_borders\fR
Draw borders around graphs?
.TP .TP
\fBdraw_shades\fR \fBdraw_shades\fR
Draw shades? Draw shades?

View File

@ -74,6 +74,9 @@ draw_outline no
# Draw borders around text # Draw borders around text
draw_borders yes draw_borders yes
# Draw borders around graphs
draw_graph_borders yes
# Stippled borders? # Stippled borders?
stippled_borders 8 stippled_borders 8

View File

@ -226,6 +226,7 @@ static int gap_x, gap_y;
/* border */ /* border */
static int draw_borders; static int draw_borders;
static int draw_graph_borders;
static int stippled_borders; static int stippled_borders;
static int draw_shades, draw_outline; static int draw_shades, draw_outline;
@ -3983,15 +3984,10 @@ static void draw_line(char *s)
w = text_start_x + text_width - cur_x - 1; w = text_start_x + text_width - cur_x - 1;
if (w < 0) if (w < 0)
w = 0; w = 0;
XSetLineAttributes(display, if (draw_graph_borders) {
window.gc, 1, XSetLineAttributes(display, window.gc, 1, LineSolid, CapButt, JoinMiter);
LineSolid, XDrawRectangle(display,window.drawable, window.gc, cur_x, by, w, h);
CapButt, }
JoinMiter);
XDrawRectangle(display,
window.drawable,
window.gc, cur_x,
by, w, h);
XSetLineAttributes(display, XSetLineAttributes(display,
window.gc, 1, window.gc, 1,
LineSolid, LineSolid,
@ -4672,8 +4668,9 @@ static void set_default_configurations(void)
default_fg_color = WhitePixel(display, screen); default_fg_color = WhitePixel(display, screen);
default_bg_color = BlackPixel(display, screen); default_bg_color = BlackPixel(display, screen);
default_out_color = BlackPixel(display, screen); default_out_color = BlackPixel(display, screen);
draw_borders = 0;
draw_shades = 1; draw_shades = 1;
draw_borders = 0;
draw_graph_borders = 1;
draw_outline = 0; draw_outline = 0;
set_first_font("6x10"); set_first_font("6x10");
gap_x = 5; gap_x = 5;
@ -4897,6 +4894,9 @@ else if (strcasecmp(name, a) == 0 || strcasecmp(name, b) == 0)
CONF("draw_borders") { CONF("draw_borders") {
draw_borders = string_to_bool(value); draw_borders = string_to_bool(value);
} }
CONF("draw_graph_borders") {
draw_graph_borders = string_to_bool(value);
}
CONF("draw_shades") { CONF("draw_shades") {
draw_shades = string_to_bool(value); draw_shades = string_to_bool(value);
} }