Skip to content

Commit ee88e4a

Browse files
committed
fix MapleColorPalette.kt
1 parent e94ce18 commit ee88e4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/kotlin/com/spoiligaming/explorer/ui/MapleColorPalette.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ object MapleColorPalette {
1919
val defaultAccent = Color(0xFFE85D9B)
2020
val defaultText = Color(0xFFFFFFFF)
2121

22-
private val _text = mutableStateOf(Color.White)
22+
private val _text =
23+
mutableStateOf(ColorPaletteUtility.convertStringToColor(config.textColor))
2324
var text: Color
2425
get() = _text.value
2526
set(value) {
@@ -34,7 +35,8 @@ object MapleColorPalette {
3435
_accent.value = value
3536
}
3637

37-
private val _fadedText = mutableStateOf(Color(0xFFCCCCCC))
38+
private val _fadedText =
39+
mutableStateOf(ColorPaletteUtility.convertStringToColor(config.fadedTextColor))
3840
var fadedText: Color
3941
get() = _fadedText.value
4042
set(value) {

0 commit comments

Comments
 (0)