Sophie

Sophie

distrib > Mageia > 8 > x86_64 > by-pkgid > 381785ef4c01f103804947e08a58df6e > files > 4

chkconfig-1.14-1.mga8.src.rpm

From 2cfa706fb8057c7f0eef504365a1cef6f24b5a37 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Wed, 24 Jun 2015 09:21:55 +0100
Subject: [PATCH 900/907] netsysv: Use Mandriva colours

---
 ntsysv.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/ntsysv.c b/ntsysv.c
index cb7a73e..a6a011c 100644
--- a/ntsysv.c
+++ b/ntsysv.c
@@ -421,6 +421,33 @@ int main(int argc, const char ** argv) {
         {"hide", '\0', 0, &hide, 0},
         {0, 0, 0, 0, 0}};
 
+    /* Standard Mandrake colors */
+    const struct newtColors colors = {
+	  "cyan", "black", 			/* root fg, bg */
+	  "black", "blue",			/* border fg, bg */
+	  "white", "blue",			/* window fg, bg */
+	  "white", "black",			/* shadow fg, bg */
+	  "white", "blue",			/* title fg, bg */
+	  "yellow", "cyan",			/* button fg, bg */
+	  "white", "cyan",			/* active button fg, bg */
+	  "yellow", "blue",			/* checkbox fg, bg */
+	  "blue", "brown",			/* active checkbox fg, bg */
+	  "yellow", "blue",			/* entry box fg, bg */
+	  "white", "blue",			/* label fg, bg */
+	  "black", "cyan",			/* listbox fg, bg */
+	  "yellow", "cyan",			/* active listbox fg, bg */
+	  "white", "blue",			/* textbox fg, bg */
+	  "cyan", "black",			/* active textbox fg, bg */
+	  "white", "blue",			/* help line */
+	  "yellow", "blue",			/* root text */
+	  "blue",					/* scale full */
+	  "red",					/* scale empty */
+	  "blue", "cyan",				/* disabled entry fg, bg */
+	  "white", "blue",			/* compact button fg, bg */
+	  "yellow", "red",			/* active & sel listbox */
+	  "black", "brown"			/* selected listbox */
+    };
+
     setlocale(LC_ALL, "");
     bindtextdomain("chkconfig", "/usr/share/locale");
     textdomain("chkconfig");
@@ -457,6 +484,7 @@ int main(int argc, const char ** argv) {
     }
 
     newtInit();
+    newtSetColors(colors);
     newtCls();
 
     newtPushHelpLine(NULL);
-- 
2.3.2