mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
apply the new way of setting font size in percentage everywhere
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user