-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0779462
commit f5a72ba
Showing
5 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package ua.mei.minekord.config.spec | ||
|
||
import com.uchuhimo.konf.ConfigSpec | ||
|
||
object ColorsSpec : ConfigSpec() { | ||
val red by required<String>() | ||
val orange by required<String>() | ||
val green by required<String>() | ||
val blue by required<String>() | ||
val purple by required<String>() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package ua.mei.minekord.utils | ||
|
||
import dev.kord.common.Color | ||
import ua.mei.minekord.config.config | ||
import ua.mei.minekord.config.spec.ColorsSpec | ||
|
||
object MinekordColor { | ||
val GREEN: Color = Color(0x57F287) | ||
val ORANGE: Color = Color(0xE67E22) | ||
val PURPLE: Color = Color(0x9B59B6) | ||
val RED: Color = Color(0xED4245) | ||
val BLUE: Color = Color(0x3498DB) | ||
val RED: Color = colorFromString(config[ColorsSpec.red]) | ||
val ORANGE: Color = colorFromString(config[ColorsSpec.orange]) | ||
val GREEN: Color = colorFromString(config[ColorsSpec.green]) | ||
val BLUE: Color = colorFromString(config[ColorsSpec.blue]) | ||
val PURPLE: Color = colorFromString(config[ColorsSpec.purple]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters