Add downloadable fonts

This commit is contained in:
Tommaso Berlose
2020-10-04 20:39:52 +02:00
parent b7bc93e174
commit 6ab8e40d45
18 changed files with 752 additions and 173 deletions

View File

@ -8,6 +8,9 @@ object Constants {
const val RESULT_APP_PACKAGE = "RESULT_APP_PACKAGE"
const val CUSTOM_FONT_GOOGLE_SANS = 1
const val CUSTOM_FONT_DOWNLOADED = 2
const val CUSTOM_FONT_DOWNLOAD_NEW = 3
enum class ClockBottomMargin(val value: Int) {
NONE(0),
SMALL(1),

View File

@ -92,7 +92,8 @@ object Preferences : KotprefModel() {
var showOnlyBusyEvents by booleanPref(default = false)
var secondRowInformation by intPref(key = "PREF_SECOND_ROW_INFORMATION", default = 0)
var customFont by intPref(key = "PREF_CUSTOM_FONT", default = Constants.CUSTOM_FONT_GOOGLE_SANS)
var customFontFile by stringPref(key = "PREF_CUSTOM_FONT_FILE")
var customFontFile by stringPref(default = "")
var customFontName by stringPref(default = "")
var showNextEvent by booleanPref(key = "PREF_SHOW_NEXT_EVENT", default = true)
var showDividers by booleanPref(default = true)