Skip to content

Commit 5361b2d

Browse files
committed
🔡 use lowercase for hex color codes
1 parent a4f2971 commit 5361b2d

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

lib/data/config.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:screen_retriever/screen_retriever.dart';
44
import 'package:shared_preferences/shared_preferences.dart';
55

66
extension ColorExtension on Color {
7-
String toHex() => toString().substring(6, 16);
7+
String toHex() => toString().substring(6, 16).toLowerCase();
88
}
99

1010
class ConfigData {

lib/data/properties.dart

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,16 @@ final Map<String, KeycapTheme> keycapThemes = {
115115
final Map<String, String> hexcodes = {
116116
"silver": "0xfff8f8f8",
117117
"glass": "0x33f8f8f8",
118-
"soybean": "0xffD7C49E",
119-
"lightblue": "0xff00B1D2",
118+
"soybean": "0xffd7c49e",
119+
"lightblue": "0xff00b1d2",
120120
"cyan": "0xff00d2bf",
121121
"pink": "0xfff06292",
122122
"green": "0xff66bb6a",
123-
"yellow": "0xffFDDB27",
123+
"yellow": "0xfffddb27",
124124
"blue": "0xff2196f3",
125-
"turquoise": "0xff42EADD",
125+
"turquoise": "0xff42eadd",
126126
"amber": "0xffffc107",
127-
"lime": "0xffD6ED17",
127+
"lime": "0xffd6ed17",
128128
"red": "0xffef5350",
129129
"grey": "0xff606060",
130130
"eclipse": "0xff343148",
@@ -137,8 +137,8 @@ final Map<String, String> colorNames = {
137137
"0xfff8f8f8": "silver",
138138
"0x33f8f8f8": "glass",
139139
"0xffd7c49e": "soybean",
140-
"0xff00b1d2": "cyan",
141-
"0xff00d2bf": "lightblue",
140+
"0xff00b1d2": "lightblue",
141+
"0xff00d2bf": "cyan",
142142
"0xfff06292": "pink",
143143
"0xff66bb6a": "green",
144144
"0xfffddb27": "yellow",
@@ -150,8 +150,9 @@ final Map<String, String> colorNames = {
150150
"0xff606060": "grey",
151151
"0xff343148": "eclipse",
152152
"0xff673ab7": "darkpurple",
153-
"0xff404040": "darkgrey",
153+
"0xff303030": "darkgrey",
154154
"0xff000000": "black",
155+
"0x00000000": "transparent",
155156
};
156157
const Map<String, Alignment> alignmentFrom = {
157158
"right": Alignment.bottomRight,

0 commit comments

Comments
 (0)