From 2211f5cbae94c09c03c95b4c4d010ddaf72738df Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 29 Jan 2020 21:44:32 +0100 Subject: fix color set for tags colors --- .gitignore | 1 + app/class/Colors.php | 2 +- assets/css/tagcolors.css | 17 ----------------- 3 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 assets/css/tagcolors.css diff --git a/.gitignore b/.gitignore index 2fc5d5d..e8830c1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ *.bundle.js.map assets/render/* assets/global/* +assets/css/tagcolors.css database/* fonts/* media/* diff --git a/app/class/Colors.php b/app/class/Colors.php index bf11229..0ad5cca 100644 --- a/app/class/Colors.php +++ b/app/class/Colors.php @@ -42,7 +42,7 @@ class Colors extends Item if (key_exists($tag, $this->tagcolor)) { $tagcolor[$tag] = $this->tagcolor[$tag]; } else { - $tagcolor[$tag] = '#' . dechex(rand(100, 255)) . dechex(rand(100, 255)) . dechex(rand(100, 255)); + $tagcolor[$tag] = '#' . dechex(rand(50, 255)) . dechex(rand(50, 255)) . dechex(rand(50, 255)); } } $this->tagcolor = $tagcolor; diff --git a/assets/css/tagcolors.css b/assets/css/tagcolors.css deleted file mode 100644 index 8430eba..0000000 --- a/assets/css/tagcolors.css +++ /dev/null @@ -1,17 +0,0 @@ - -.tag_color { background-color: #ff0000; } -.tag_w { background-color: #50e2f9; } -.tag_sans { background-color: #00ff07; } -.tag_secret { background-color: #10580b; } -.tag_fiit { background-color: #ba7db4; } -.tag_salle { background-color: #d2946d; } -.tag_ab { background-color: #fbd4fd; } -.tag_template { background-color: #f4cbfe; } -.tag_tttaaaaggggeee { background-color: #75d26b; } -.tag_salle01 { background-color: #64d377; } -.tag_event { background-color: #9daa97; } -.tag_delire { background-color: #c794c0; } -.tag_phasme { background-color: #bcf2c9; } -.tag_animal { background-color: #c6f9a4; } -.tag_blague { background-color: #6a859f; } -.tag_festival { background-color: #ed65b9; } \ No newline at end of file -- cgit v1.2.3