Values.kt 1.2KB

12345678910111213141516171819202122232425262728293031
  1. package fr.forum_thalie.tsumugi
  2. import android.content.SharedPreferences
  3. import android.content.res.ColorStateList
  4. import kotlin.collections.ArrayList
  5. const val tag = "fr.forum_thalie.tsumugi"
  6. const val noConnectionValue = "—"
  7. const val streamDownValue = "Riff est HS !" // we don't want this value to be displaed in the "last played" screen.
  8. val weekdaysArray : Array<String> = arrayOf( "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche")
  9. const val newsDateTimePattern = "EEE, d MMM yyyy HH:mm:ss Z"
  10. const val newsDisplayDatePattern = "dd MMM yyyy"
  11. // Below this line is only automatically programmed values. Unless your week does not start with Monday, you don't need to change this.
  12. val weekdays = ArrayList<String>().apply { weekdaysArray.forEach { add(it) } }
  13. val weekdaysSundayFirst = ArrayList<String>().apply {
  14. weekdays.forEach {
  15. add(it)
  16. }
  17. val lastDay = last()
  18. removeAt(size - 1)
  19. add(0, lastDay)
  20. }
  21. var colorBlue: Int = 0
  22. var colorWhited: Int = 0
  23. var colorAccent : Int = 0
  24. var colorGreenList: ColorStateList? = ColorStateList.valueOf(0)
  25. var colorRedList: ColorStateList? = ColorStateList.valueOf(0)
  26. var colorGreenListCompat : ColorStateList? = ColorStateList.valueOf(0)
  27. lateinit var preferenceStore : SharedPreferences