diff --git a/README.md b/README.md
index 4fd42d5..c936443 100644
--- a/README.md
+++ b/README.md
@@ -97,6 +97,7 @@ The library comes with predefined syntax coloring themes available in `SyntaxThe
Notepad |
Matrix |
Pastel |
+ Atom One |
@@ -157,6 +158,19 @@ The library comes with predefined syntax coloring themes available in `SyntaxThe
- ![#888A85](https://placehold.co/15x15/888A85/888A85.png) Multiline Comment
- ![#CB956D](https://placehold.co/15x15/CB956D/CB956D.png) Punctuation
- ![#CB956D](https://placehold.co/15x15/CB956D/CB956D.png) Mark
+ |
+
+
+- ![#DFDEE0](https://placehold.co/15x15/BBBBBB/BBBBBB.png) Code
+- ![#729FCF](https://placehold.co/15x15/D55FDE/D55FDE.png) Keyword
+- ![#93CF55](https://placehold.co/15x15/89CA78/89CA78.png) String
+- ![#8AE234](https://placehold.co/15x15/D19A66/D19A66.png) Literal
+- ![#888A85](https://placehold.co/15x15/5C6370/5C6370.png) Comment
+- ![#5DB895](https://placehold.co/15x15/E5C07B/E5C07B.png) Metadata
+- ![#888A85](https://placehold.co/15x15/5C6370/5C6370.png) Multiline Comment
+- ![#CB956D](https://placehold.co/15x15/EF596F/EF596F.png) Punctuation
+- ![#CB956D](https://placehold.co/15x15/2BBAC5/2BBAC5.png) Mark
+
|
@@ -169,6 +183,7 @@ The library comes with predefined syntax coloring themes available in `SyntaxThe
Notepad |
Matrix |
Pastel |
+ Atom One |
@@ -229,6 +244,19 @@ The library comes with predefined syntax coloring themes available in `SyntaxThe
- ![#888A85](https://placehold.co/15x15/888A85/888A85.png) Multiline Comment
- ![#CB956D](https://placehold.co/15x15/CB956D/CB956D.png) Punctuation
- ![#CB956D](https://placehold.co/15x15/CB956D/CB956D.png) Mark
+ |
+
+
+- ![#DFDEE0](https://placehold.co/15x15/383A42/383A42.png) Code
+- ![#729FCF](https://placehold.co/15x15/A626A4/A626A4.png) Keyword
+- ![#93CF55](https://placehold.co/15x15/50A14F/50A14F.png) String
+- ![#8AE234](https://placehold.co/15x15/986801/986801.png) Literal
+- ![#888A85](https://placehold.co/15x15/A1A1A1/A1A1A1.png) Comment
+- ![#5DB895](https://placehold.co/15x15/C18401/C18401.png) Metadata
+- ![#888A85](https://placehold.co/15x15/A1A1A1/A1A1A1.png) Multiline Comment
+- ![#CB956D](https://placehold.co/15x15/E45649/E45649.png) Punctuation
+- ![#CB956D](https://placehold.co/15x15/526FFF/526FFF.png) Mark
+
|
@@ -265,9 +293,11 @@ If your project uses this code, please write me or add your info
Application |
-
- SnippLog
- |
+ SnippLog |
+
+
+ Application |
+ FlowMVI Sample |
@@ -289,7 +319,7 @@ Then make sure:
License 🖋️
=======
- Copyright 2023 Tomasz Kądziołka.
+ Copyright 2023-2024 Tomasz Kądziołka.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/src/commonMain/kotlin/dev/snipme/highlights/model/SyntaxThemes.kt b/src/commonMain/kotlin/dev/snipme/highlights/model/SyntaxThemes.kt
index 453dd89..733e75b 100644
--- a/src/commonMain/kotlin/dev/snipme/highlights/model/SyntaxThemes.kt
+++ b/src/commonMain/kotlin/dev/snipme/highlights/model/SyntaxThemes.kt
@@ -5,6 +5,7 @@ private const val MONOKAI_KEY = "monokai"
private const val NOTEPAD_KEY = "notepad"
private const val MATRIX_KEY = "matrix"
private const val PASTEL_KEY = "pastel"
+private const val ATOM_ONE_KEY = "atomone"
object SyntaxThemes {
@@ -68,6 +69,18 @@ object SyntaxThemes {
multilineComment = 0x888A85,
punctuation = 0xCB956D,
mark = 0xCB956D
+ ),
+ ATOM_ONE_KEY to SyntaxTheme(
+ key = ATOM_ONE_KEY,
+ code = 0xBBBBBB,
+ keyword = 0xD55FDE,
+ string = 0x89CA78,
+ literal = 0xD19A66,
+ comment = 0x5C6370,
+ metadata = 0xE5C07B,
+ multilineComment = 0x5C6370,
+ punctuation = 0xEF596F,
+ mark = 0x2BBAC5
)
)
@@ -131,7 +144,20 @@ object SyntaxThemes {
multilineComment = 0x888A85,
punctuation = 0xCB956D,
mark = 0xCB956D
+ ),
+ ATOM_ONE_KEY to SyntaxTheme(
+ key = ATOM_ONE_KEY,
+ code = 0x383A42,
+ keyword = 0xA626A4,
+ string = 0x50A14F,
+ literal = 0x986801,
+ comment = 0xA1A1A1,
+ metadata = 0xC18401,
+ multilineComment = 0xA1A1A1,
+ punctuation = 0xE45649,
+ mark = 0x526FFF,
)
+
)
fun themes(darkMode: Boolean = false) = if (darkMode) dark else light
@@ -143,6 +169,7 @@ object SyntaxThemes {
fun notepad(darkMode: Boolean = false) = themes(darkMode)[NOTEPAD_KEY]!!
fun matrix(darkMode: Boolean = false) = themes(darkMode)[MATRIX_KEY]!!
fun pastel(darkMode: Boolean = false) = themes(darkMode)[PASTEL_KEY]!!
+ fun atom(darkMode: Boolean = false) = themes(darkMode)[ATOM_ONE_KEY]!!
fun getNames(): List = SyntaxThemes.light.map {
it.key
@@ -151,4 +178,4 @@ object SyntaxThemes {
}
fun SyntaxTheme.useDark(darkMode: Boolean) = if (darkMode) dark[key] else light[key]
-}
\ No newline at end of file
+}