1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-01 18:31:35 +00:00

Make additional themes more easily configurable

This commit is contained in:
Cadence Ember 2020-05-09 23:37:56 +12:00
parent 9fbbf66e62
commit 8aac24bac8
No known key found for this signature in database
GPG key ID: 128B99B1B74A6412
4 changed files with 17 additions and 12 deletions

View file

@ -68,8 +68,20 @@ let constants = {
feed_disabled_max_age: 2*24*60*60 // 2 days
},
// Enabled themes. `file` is the filename without extension. `name` is the display name on the settings page.
// If you make your own theme, I encourage you to submit a pull request for it!
themes: [
{file: "classic", name: "Classic"},
{file: "blue", name: "Classic blue"}
],
user_settings: [
{
name: "theme",
default: "classic",
boolean: false,
replaceEmptyWithDefault: true
},{
name: "language",
default: "en",
boolean: false,
@ -89,11 +101,6 @@ let constants = {
default: "on",
boolean: true,
replaceEmptyWithDefault: false
},{
name: "theme",
default: "classic",
boolean: false,
replaceEmptyWithDefault: true
},{
name: "caption_side",
default: "left",