diff --git a/.env.example b/.env.example index b63be36..81d034a 100644 --- a/.env.example +++ b/.env.example @@ -16,6 +16,8 @@ REDLIB_PUSHSHIFT_FRONTEND=undelete.pullpush.io REDLIB_DEFAULT_THEME=system # Set the default mascot REDLIB_DEFAULT_MASCOT=none +# Enable showing redsunlib colorway by default +REDLIB_DEFAULT_REDSUNLIB_COLORWAY=off # Set the default front page (options: default, popular, all) REDLIB_DEFAULT_FRONT_PAGE=default # Set the default layout (options: card, clean, compact) diff --git a/src/settings.rs b/src/settings.rs index c7882a1..6b65b40 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -21,9 +21,10 @@ struct SettingsTemplate { // CONSTANTS -const PREFS: [&str; 20] = [ +const PREFS: [&str; 21] = [ "theme", "mascot", + "redsunlib_colorway", "front_page", "layout", "wide", diff --git a/src/utils.rs b/src/utils.rs index 5b72a89..32f73a7 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -607,6 +607,7 @@ pub struct Preferences { pub available_mascots: Vec, pub theme: String, pub mascot: String, + pub redsunlib_colorway: String, pub front_page: String, pub layout: String, pub wide: String, @@ -661,6 +662,7 @@ impl Preferences { available_mascots: mascots, theme: setting(req, "theme"), mascot: setting(req, "mascot"), + redsunlib_colorway: setting(req, "redsunlib_colorway"), front_page: setting(req, "front_page"), layout: setting(req, "layout"), wide: setting(req, "wide"), diff --git a/static/style.css b/static/style.css index 990ddf4..85d8f46 100644 --- a/static/style.css +++ b/static/style.css @@ -216,7 +216,9 @@ nav #links { } nav #links svg { - display: none; + /*display: none;*/ + position: relative; + /*What's nine plus ten?*/ top: /*Twenty one*/21%; /*You stupid.*/ } nav #redlib { @@ -429,7 +431,7 @@ a:hover { } svg { - stroke: var(--text); + color: var(--text); } img[src=""] { diff --git a/templates/base.html b/templates/base.html index d71b337..68e2eb8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -40,27 +40,35 @@ diff --git a/templates/settings.html b/templates/settings.html index 00b2220..861a9ca 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -29,6 +29,11 @@ {% call utils::options(prefs.mascot, prefs.available_mascots, "system") %} +
+ + + +
Interface @@ -153,7 +158,7 @@

Note: settings and subscriptions are saved in browser cookies. Clearing your cookies will reset them.


-

You can restore your current settings and subscriptions after clearing your cookies using this link.

+

You can restore your current settings and subscriptions after clearing your cookies using this link.

{% if prefs.subscriptions.len() > 0 %}