fixed shades and ootlines
authorBrenden Matthews <brenden1@rty.ca>
Wed, 3 Aug 2005 07:49:06 +0000 (07:49 +0000)
committerBrenden Matthews <brenden1@rty.ca>
Wed, 3 Aug 2005 07:49:06 +0000 (07:49 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@48 7f574dfc-610e-0410-a909-a81674777703

ChangeLog
conky.c

index 7f5bb62..3a43cad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,7 @@
 2005-07-02
        * dramatically improved how conky handles fonts
        * fixed issues with graph args
-       * shades and outlines don't work properly with graph gradients
-       (sorry!)
+       * fixed shades and outlines
 
 2005-07-01
        * stabilized code
diff --git a/conky.c b/conky.c
index a9fb0dd..21d9acc 100644 (file)
--- a/conky.c
+++ b/conky.c
@@ -3009,6 +3009,14 @@ static void draw_line(char *s)
                                                    [special_index].height;
                                        }
                                }
+                               if (draw_mode == BG) {
+                                       set_foreground_color(default_bg_color);
+                               }
+                               else if (draw_mode == OUTLINE) {
+                                       set_foreground_color(default_out_color);
+                               } else {
+                                       set_foreground_color(default_fg_color);
+                               }
                                break;
                        
                                case FONT: