blob: 115f981a7ea3600f44514256cdb6d3dfd41dbc26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package com.pitchedapps.frost.utils
import android.graphics.Color
import ca.allanwang.kau.kpref.KPref
import ca.allanwang.kau.kpref.kpref
/**
* Created by Allan Wang on 2017-05-28.
*
* Shared Preference object with lazy cached retrievals
*/
object Prefs : KPref() {
var lastActive: Long by kpref("last_active", -1L)
var userId: Long by kpref("user_id", -1L)
var theme: Int by kpref("theme", 0)
var textColor: Int by kpref("color_text", Color.BLACK)
var bgColor: Int by kpref("color_bg", Color.WHITE)
var headerColor: Int by kpref("color_header", 0xff3b5998.toInt())
var iconColor: Int by kpref("color_icons", Color.WHITE)
var exitConfirmation: Boolean by kpref("exit_confirmation", true)
}
|