Add dark mode

This commit is contained in:
r 2020-01-12 17:16:57 +00:00
parent 8607f16212
commit 3c6653a77b
15 changed files with 124 additions and 23 deletions

View file

@ -9,6 +9,7 @@ type PostContext struct {
DefaultVisibility string
ReplyContext *ReplyContext
Formats []PostFormat
DarkMode bool
}
type ReplyContext struct {

View file

@ -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,
}
}