From 1d4a2918ed8e8e7e06e0e9c34cf714f04cf34867 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 27 Jan 2009 06:28:35 +0100 Subject: [PATCH] picker: add some more colors --- modules/pref-labels.php | 103 +++++++++++++++++++++++----------------- 1 file changed, 59 insertions(+), 44 deletions(-) diff --git a/modules/pref-labels.php b/modules/pref-labels.php index d4612f21..dd44c786 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -121,50 +121,6 @@ $label_search = $_SESSION["prefs_label_search"]; } - function print_color_picker($id) { - - print ""; - } - print "
"; + + $color_picker_pairs = array( + array('#ff0000', '#ffffff'), + array('#009000', '#ffffff'), + array('#0000ff', '#ffffff'), + array('#ff00ff', '#ffffff'), + array('#009090', '#ffffff'), + + array('#ffffff', '#ff0000'), + array('#000000', '#00ff00'), + array('#ffffff', '#0000ff'), + array('#ffffff', '#ff00ff'), + array('#000000', '#00ffff'), + + array('#7b07e1', '#ffffff'), + array('#0091b4', '#ffffff'), + array('#00aa71', '#ffffff'), + array('#7d9e01', '#ffffff'), + array('#e14a00', '#ffffff'), + + array('#ffffff', '#7b07e1'), + array('#ffffff', '#00b5e1'), + array('#ffffff', '#00e196'), + array('#ffffff', '#b3e100'), + array('#ffffff', '#e14a00'), + + array('#000000', '#ffffff'), + array('#ffffff', '#000000'), + array('#ffffff', '#909000'), + array('#063064', '#fff7d5'), + array('#ffffff', '#4E4E90'), + ); + + foreach ($color_picker_pairs as $c) { + $fg_color = $c[0]; + $bg_color = $c[1]; + + print "
α
"; + + } + + print "
"; + + print "
".__('custom color:').""; + print "
".__("foreground")."
"; + print "
".__("background")."
"; + + print "
"; + } + ?> -- 2.39.5