Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 82ba330

Browse files
committed
change rating color style
1 parent 18f9ca3 commit 82ba330

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/main/java/com/appirio/service/challengefeeder/manager/ChallengeFeederUtil.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,31 +82,30 @@ static void associateAllUserIds(List<ChallengeListingData> challenges, List<User
8282
* @since 1.2
8383
*/
8484
static String getColorStyle(Integer rating) {
85-
8685
if (rating == null) {
87-
return "color: #000000";
86+
return "color: #151516";
8887
}
8988

9089
if (rating < 0) {
91-
return "color: #FF9900"; // orange
90+
return "color: #BA4C00"; // orange
9291
}
9392
if (rating < 900) {
94-
return "color: #999999";// gray
93+
return "color: #555555";// gray
9594
}
9695
if (rating < 1200) {
97-
return "color: #00A900";// green
96+
return "color: #258025";// green
9897
}
9998
if (rating < 1500) {
100-
return "color: #6666FF";// blue
99+
return "color: #5656F4";// Pastel-Blue
101100
}
102101
if (rating < 2200) {
103-
return "color: #DDCC00";// yellow
102+
return "color: #9A6D00";// Gold
104103
}
105104
if (rating > 2199) {
106-
return "color: #EE0000";// red
105+
return "color: #EA1900";// Red
107106
}
108-
// return black otherwise.
109-
return "color: #000000";
107+
// return Black otherwise.
108+
return "color: #151516";
110109

111110
}
112111

0 commit comments

Comments
 (0)