aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2006-05-19 00:56:20 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2006-05-19 00:56:20 +0000
commit0990e532a88e0d32c6bea527172672b6ea2af0e2 (patch)
tree08f6730931909a1ae1975be6eb03bce584949fd5
parent9fafaa438b524c3d281e2a76a6ec5f0c61c2169c (diff)
downloadpaludis-0990e532a88e0d32c6bea527172672b6ea2af0e2.tar.gz
paludis-0990e532a88e0d32c6bea527172672b6ea2af0e2.tar.xz
Got pink?
-rw-r--r--configure.ac16
-rw-r--r--src/colour.hh14
2 files changed, 29 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d620529..b01061b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -331,6 +331,22 @@ AC_SUBST([ENABLE_QA])
AM_CONDITIONAL([ENABLE_QA], test "x$ENABLE_QA" = "xyes")
dnl }}}
+dnl {{{ colourschemes
+AC_MSG_CHECKING([which colourscheme to use])
+AC_ARG_ENABLE([pink],
+ [ --enable-pink Make it pink],
+ [WANT_PINK=$enableval
+ AC_MSG_RESULT([pink])],
+ [WANT_PINK=no
+ AC_MSG_RESULT([default])])
+AM_CONDITIONAL([WANT_PINK], test "x$WANT_PINK" = "xyes")
+if test x"$WANT_PINK" = "xyes"; then
+ AC_DEFINE([PALUDIS_COLOUR_PINK], 1, [Are we pinkified?])
+else
+ AC_DEFINE([PALUDIS_COLOUR_PINK], 0)
+fi
+dnl }}}
+
dnl {{{ built sources
GENERATED_FILE=misc/generated-file.txt
AC_SUBST_FILE(GENERATED_FILE)
diff --git a/src/colour.hh b/src/colour.hh
index 545335b..da835ab 100644
--- a/src/colour.hh
+++ b/src/colour.hh
@@ -22,6 +22,7 @@
#include "src/command_line.hh"
#include <paludis/util/stringify.hh>
+#include <config.h>
#include <string>
enum Colour
@@ -38,6 +39,17 @@ enum Colour
cl_bold_blue = cl_blue + 100,
cl_bold_pink = cl_pink + 100,
+#if PALUDIS_COLOUR_PINK==1
+ cl_package_name = cl_bold_pink,
+ cl_flag_on = cl_pink,
+ cl_flag_off = cl_red,
+ cl_slot = cl_blue,
+ cl_visible = cl_flag_on,
+ cl_masked = cl_flag_off,
+ cl_heading = cl_bold_pink,
+ cl_updatemode = cl_yellow,
+ cl_tag = cl_yellow,
+#else
cl_package_name = cl_bold_blue,
cl_flag_on = cl_green,
cl_flag_off = cl_red,
@@ -47,7 +59,7 @@ enum Colour
cl_heading = cl_bold_green,
cl_updatemode = cl_yellow,
cl_tag = cl_yellow,
-
+#endif
cl_file = cl_none,
cl_dir = cl_blue,
cl_sym = cl_pink,