+
+
+ Theme preference
+
+
+
+
+
+ This represents your local site theme.
+
+
+
- Profile theme
+ Profile theme base
@@ -368,6 +376,11 @@
Dark
+
+ This represents the site theme shown to users viewing
+ your profile.
@@ -693,11 +706,13 @@
"two_factor_authentication",
]);
ui.refresh_container(profile_settings, [
- "theme_preference",
"change_avatar",
"change_banner",
]);
- ui.refresh_container(theme_settings, ["profile_theme"]);
+ ui.refresh_container(theme_settings, [
+ "theme_preference",
+ "profile_theme",
+ ]);
ui.generate_settings_ui(
account_settings,
@@ -753,7 +768,21 @@
ui.generate_settings_ui(
theme_settings,
[
+ [
+ [
+ "disable_other_themes",
+ "Disable the profile theme of other users",
+ ],
+ "{{ profile.settings.disable_other_themes }}",
+ "checkbox",
+ ],
[[], "Theme builder", "title"],
+ [
+ [],
+ "Allow the site to build the theme for you given a base hue, saturation, and lightness. Scroll down to the next section to manually build the theme.",
+ "text",
+ ],
+
[
["theme_hue", "Theme hue (integer 0-255)"],
"{{ profile.settings.theme_hue }}",
@@ -769,15 +798,7 @@
"{{ profile.settings.theme_lit }}",
"input",
],
- [
- [
- "disable_other_themes",
- "Disable the profile theme of other users",
- ],
- "{{ profile.settings.disable_other_themes }}",
- "checkbox",
- ],
- [[], "Theme builder", "title"],
+ [[], "Manual theme builder", "title"],
[[], "Override individual colors.", "text"],
// surface
[
@@ -797,6 +818,14 @@
"Text on elements with the surface backgrounds.",
},
],
+ [
+ ["theme_color_text_link", "Links"],
+ "{{ profile.settings.theme_color_text_link }}",
+ "color",
+ {
+ description: "Links on all elements.",
+ },
+ ],
// lowered
[[], "", "divider"],
[
@@ -874,7 +903,7 @@
},
],
[
- ["theme_color_primary_lowered", "Primary lowered"],
+ ["theme_color_primary_lowered", "Lowered"],
"{{ profile.settings.theme_color_primary_lowered }}",
"color",
{
@@ -901,7 +930,7 @@
},
],
[
- ["theme_color_secondary_lowered", "Secondary lowered"],
+ ["theme_color_secondary_lowered", "Lowered"],
"{{ profile.settings.theme_color_secondary_lowered }}",
"color",
{
diff --git a/crates/app/src/public/html/root.html b/crates/app/src/public/html/root.html
index c97749a..145358e 100644
--- a/crates/app/src/public/html/root.html
+++ b/crates/app/src/public/html/root.html
@@ -319,6 +319,12 @@ macros -%}
{% endif %} {% if user and use_user_theme %} {{
components::theme(user=user,
- theme_preference=user.settings.theme_preference) }} {% endif %}
+ theme_preference=user.settings.theme_preference) }}
+
+ {% endif %}