apply the new way of setting font size in percentage everywhere

This commit is contained in:
tibbi
2020-05-28 21:38:43 +02:00
parent a379f572cb
commit d64f9d889d
9 changed files with 43 additions and 46 deletions

View File

@ -85,4 +85,8 @@ class Config(context: Context) : BaseConfig(context) {
GRAVITY_RIGHT -> Gravity.RIGHT
else -> Gravity.LEFT
}
var fontSizePercentage: Int
get() = prefs.getInt(FONT_SIZE_PERCENTAGE, 100)
set(fontSizePercentage) = prefs.edit().putInt(FONT_SIZE_PERCENTAGE, fontSizePercentage).apply()
}

View File

@ -30,6 +30,7 @@ const val ENABLE_LINE_WRAP = "enable_line_wrap"
const val USE_INCOGNITO_MODE = "use_incognito_mode"
const val LAST_CREATED_NOTE_TYPE = "last_created_note_type"
const val MOVE_UNDONE_CHECKLIST_ITEMS = "move_undone_checklist_items"
const val FONT_SIZE_PERCENTAGE = "font_size_percentage"
// gravity
const val GRAVITY_LEFT = 0