aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/Theme.kt
blob: 4a0ffd8fb59c33fdea498d0fb9640a4f7b83cd3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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]
    }
}