aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/Theme.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/Theme.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/Theme.kt19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Theme.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Theme.kt
new file mode 100644
index 00000000..4a0ffd8f
--- /dev/null
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Theme.kt
@@ -0,0 +1,19 @@
+package com.pitchedapps.frost.utils
+
+import com.pitchedapps.frost.R
+
+/**
+ * Created by Allan Wang on 2017-06-14.
+ */
+enum class Theme(val textRes: Int) {
+ DEFAULT(R.string._default),
+ LIGHT(R.string.light),
+ DARK(R.string.dark),
+ AMOLED(R.string.amoled),
+ GLASS(R.string.glass),
+ CUSTOM(R.string.custom);
+
+ companion object {
+ operator fun invoke(index: Int) = values()[index]
+ }
+} \ No newline at end of file