forked from LemmyNet/jerboa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppSettings.kt
133 lines (131 loc) · 3.33 KB
/
AppSettings.kt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
package com.jerboa.db.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.jerboa.ui.theme.DEFAULT_FONT_SIZE
@Entity
data class AppSettings(
@PrimaryKey(autoGenerate = true) val id: Int,
@ColumnInfo(
name = "font_size",
// This is changed to 16
defaultValue = DEFAULT_FONT_SIZE.toString(),
)
val fontSize: Int,
@ColumnInfo(
name = "theme",
defaultValue = "0",
)
val theme: Int,
@ColumnInfo(
name = "theme_color",
defaultValue = "0",
)
val themeColor: Int,
// TODO get rid of this column next time you regenerate the app
@ColumnInfo(
name = "viewed_changelog",
defaultValue = "0",
)
val viewedChangelog: Int,
@ColumnInfo(
name = "post_view_mode",
defaultValue = "0",
)
val postViewMode: Int,
@ColumnInfo(
name = "show_bottom_nav",
defaultValue = "1",
)
val showBottomNav: Boolean,
@ColumnInfo(
name = "post_navigation_gesture_mode",
defaultValue = "0",
)
val postNavigationGestureMode: Int,
@ColumnInfo(
name = "show_collapsed_comment_content",
defaultValue = "0",
)
val showCollapsedCommentContent: Boolean,
@ColumnInfo(
name = "show_comment_action_bar_by_default",
defaultValue = "1",
)
val showCommentActionBarByDefault: Boolean,
@ColumnInfo(
name = "show_voting_arrows_in_list_view",
defaultValue = "1",
)
val showVotingArrowsInListView: Boolean,
@ColumnInfo(
name = "show_parent_comment_navigation_buttons",
defaultValue = "0",
)
val showParentCommentNavigationButtons: Boolean,
@ColumnInfo(
name = "navigate_parent_comments_with_volume_buttons",
defaultValue = "0",
)
val navigateParentCommentsWithVolumeButtons: Boolean,
@ColumnInfo(
name = "use_custom_tabs",
defaultValue = "1",
)
val useCustomTabs: Boolean,
@ColumnInfo(
name = "use_private_tabs",
defaultValue = "0",
)
val usePrivateTabs: Boolean,
@ColumnInfo(
name = "secure_window",
defaultValue = "0",
)
val secureWindow: Boolean,
@ColumnInfo(
name = "blur_nsfw",
defaultValue = "1",
)
val blurNSFW: Int,
@ColumnInfo(
name = "show_text_descriptions_in_navbar",
defaultValue = "1",
)
val showTextDescriptionsInNavbar: Boolean,
@ColumnInfo(
name = "markAsReadOnScroll",
defaultValue = "0",
)
val markAsReadOnScroll: Boolean,
@ColumnInfo(
name = "backConfirmationMode",
defaultValue = "1",
)
val backConfirmationMode: Int,
@ColumnInfo(
name = "show_post_link_previews",
defaultValue = "1",
)
val showPostLinkPreviews: Boolean,
@ColumnInfo(
name = "post_actionbar_mode",
defaultValue = "0",
)
val postActionBarMode: Int,
@ColumnInfo(
name = "auto_play_gifs",
defaultValue = "0",
)
val autoPlayGifs: Boolean,
@ColumnInfo(
name = "swipe_to_action_preset",
defaultValue = "0",
)
val swipeToActionPreset: Int,
@ColumnInfo(
name = "last_version_code_viewed",
defaultValue = "0",
)
val lastVersionCodeViewed: Int,
)