aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-01-12 17:16:57 +0000
committerr <r@freesoftwareextremist.com>2020-01-12 17:16:57 +0000
commit3c6653a77b8951672ea169d175db154495a981fe (patch)
tree54f27eba5c3dbedcbca5744764eb0d1c1e36ac1b /model
parent8607f16212c9537751030c717dbfb3454e66ca23 (diff)
downloadbloat-3c6653a77b8951672ea169d175db154495a981fe.tar.gz
bloat-3c6653a77b8951672ea169d175db154495a981fe.zip
Add dark mode
Diffstat (limited to 'model')
-rw-r--r--model/postContext.go1
-rw-r--r--model/settings.go2
2 files changed, 3 insertions, 0 deletions
diff --git a/model/postContext.go b/model/postContext.go
index 3098437..58997f7 100644
--- a/model/postContext.go
+++ b/model/postContext.go
@@ -9,6 +9,7 @@ type PostContext struct {
DefaultVisibility string
ReplyContext *ReplyContext
Formats []PostFormat
+ DarkMode bool
}
type ReplyContext struct {
diff --git a/model/settings.go b/model/settings.go
index b8eeffc..7d22747 100644
--- a/model/settings.go
+++ b/model/settings.go
@@ -6,6 +6,7 @@ type Settings struct {
ThreadInNewTab bool `json:"thread_in_new_tab"`
MaskNSFW bool `json:"mask_nfsw"`
FluorideMode bool `json:"fluoride_mode"`
+ DarkMode bool `json:"dark_mode"`
}
func NewSettings() *Settings {
@@ -15,5 +16,6 @@ func NewSettings() *Settings {
ThreadInNewTab: false,
MaskNSFW: true,
FluorideMode: false,
+ DarkMode: false,
}
}