mirror of
https://github.com/binwiederhier/ntfy-android.git
synced 2024-06-26 18:21:16 +12:00
29 lines
891 B
Kotlin
29 lines
891 B
Kotlin
|
package io.heckel.ntfy.ui
|
||
|
|
||
|
import android.content.Context
|
||
|
import io.heckel.ntfy.R
|
||
|
import io.heckel.ntfy.util.isDarkThemeOn
|
||
|
|
||
|
class Colors {
|
||
|
companion object {
|
||
|
const val refreshProgressIndicator = R.color.teal
|
||
|
const val notificationIcon = R.color.teal
|
||
|
|
||
|
fun itemSelectedBackground(context: Context): Int {
|
||
|
return if (isDarkThemeOn(context)) R.color.gray_dark else R.color.gray_light
|
||
|
}
|
||
|
|
||
|
fun statusBarNormal(context: Context): Int {
|
||
|
return if (isDarkThemeOn(context)) R.color.black_light else R.color.teal
|
||
|
}
|
||
|
|
||
|
fun statusBarActionMode(context: Context): Int {
|
||
|
return if (isDarkThemeOn(context)) R.color.black_light else R.color.teal_dark
|
||
|
}
|
||
|
|
||
|
fun dangerText(context: Context): Int {
|
||
|
return if (isDarkThemeOn(context)) R.color.red_light else R.color.red_dark
|
||
|
}
|
||
|
}
|
||
|
}
|