From 3c6653a77b8951672ea169d175db154495a981fe Mon Sep 17 00:00:00 2001 From: r Date: Sun, 12 Jan 2020 17:16:57 +0000 Subject: Add dark mode --- model/postContext.go | 1 + model/settings.go | 2 ++ 2 files changed, 3 insertions(+) (limited to 'model') 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, } } -- cgit v1.2.3