Skip to content

Commit 35fd98b

Browse files
committed
fix: update hex color format output to use rgb() notation
1 parent 487cf02 commit 35fd98b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • spring-boot-admin-server-ui/src/main/java/de/codecentric/boot/admin/server/ui/config

spring-boot-admin-server-ui/src/main/java/de/codecentric/boot/admin/server/ui/config/CssColorUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static String hexToRgb(String color) {
2929
if (!HEX_RGB_PATTERN.matcher(color).matches()) {
3030
throw new IllegalArgumentException(String.format("Invalid hex rgb format %s", color));
3131
}
32-
return String.format("%s, %s, %s", Integer.valueOf(color.substring(1, 3), 16),
32+
return String.format("rgb(%s, %s, %s)", Integer.valueOf(color.substring(1, 3), 16),
3333
Integer.valueOf(color.substring(3, 5), 16), Integer.valueOf(color.substring(5, 7), 16));
3434
}
3535

0 commit comments

Comments
 (0)