Added theme setting

This commit is contained in:
2017-11-17 12:51:08 +01:00
parent 7c9d1c3c31
commit 382fc804d1
5 changed files with 38 additions and 1 deletions

View File

@ -14,6 +14,7 @@ var items = []*arn.Item{
Includes:
* Chrome extension for quick list access
* Dark theme for the site (persistent)
* Special highlight on the forums
* Access to the VIP channel on Discord
* PRO star on your profile
@ -35,6 +36,7 @@ Includes:
Includes:
* Chrome extension for quick list access
* Dark theme for the site (persistent)
* Special highlight on the forums
* Access to the VIP channel on Discord
* PRO star on your profile
@ -56,6 +58,7 @@ Includes:
Includes:
* Chrome extension for quick list access
* Dark theme for the site (persistent)
* Special highlight on the forums
* Access to the VIP channel on Discord
* PRO star on your profile
@ -77,6 +80,7 @@ Includes:
Includes:
* Chrome extension for quick list access
* Dark theme for the site (persistent)
* Special highlight on the forums
* Access to the VIP channel on Discord
* PRO star on your profile

View File

@ -0,0 +1,21 @@
package main
import (
"github.com/animenotifier/arn"
)
func main() {
defer arn.Node.Close()
for user := range arn.StreamUsers() {
settings := user.Settings()
if user.IsPro() {
settings.Theme = "dark"
} else {
settings.Theme = "light"
}
settings.Save()
}
}