Added theme setting
This commit is contained in:
@ -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
|
||||
|
21
patches/add-theme/add-theme.go
Normal file
21
patches/add-theme/add-theme.go
Normal 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()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user