Dont use yellow as it's usually hard to read
authorMichael Andres <ma@suse.de>
Fri, 25 Apr 2014 10:07:10 +0000 (12:07 +0200)
committerMichael Andres <ma@suse.de>
Fri, 25 Apr 2014 10:07:10 +0000 (12:07 +0200)
src/Config.cc
zypper.conf

index 3da52f4..982dcab 100644 (file)
@@ -139,7 +139,7 @@ Config::Config()
   , color_result     ("white")  // default colors for dark background
   , color_msgStatus  ("grey")   // if background is actually light, these
   , color_msgError   ("red")    // colors will be overwritten in read()
-  , color_msgWarning ("yellow")
+  , color_msgWarning ("purple")
   , color_positive   ("green")
   , color_negative   ("red")
   , color_highlight  ("cyan")
@@ -242,13 +242,7 @@ void Config::read(const string & file)
     ////// color/colorMsgWarning //////
 
     c = Color(augeas.getOption(ConfigOption::COLOR_MSG_WARNING.asString()));
-    if (c.value().empty())
-    {
-      // set a default for light background
-      if (color_background)
-        color_msgWarning = Color("brown");
-    }
-    else
+    if (!c.value().empty())
       color_msgWarning = c;
 
     ////// color/colorPositive //////
index 0bcc1f7..ce2e255 100644 (file)
@@ -41,7 +41,7 @@
 # showAlias = false
 
 ## Columns to show in repository list printed by repos (lr) command by default.
-## 
+##
 ## The # (number) and Enabled column is shown always. The following columns
 ## can be configured:
 ##
 ## Color for displaying warnings.
 ##
 ## Valid values: color
-## Default value: yellow
+## Default value: purple
 ##
-# msgWarning = yellow
+# msgWarning = purple
 
 ## Color for highlighting positive information.
 ## For example, 'done' result of progress indicator.