mirror of
https://github.com/perstarkse/minne.git
synced 2026-05-12 19:00:25 +02:00
theme: obsidian-prism
This commit is contained in:
@@ -124,7 +124,11 @@ where
|
||||
if let Some(auth) = req.extensions().get::<AuthSessionType>() {
|
||||
if let Some(user) = &auth.current_user {
|
||||
let theme = user.theme.as_str();
|
||||
let initial = if theme == "dark" { "dark" } else { "light" };
|
||||
// For explicit themes (not "system"), use the theme directly as initial_theme
|
||||
let initial = match theme {
|
||||
"system" => "light",
|
||||
other => other, // "light", "dark", "obsidian-prism", etc.
|
||||
};
|
||||
(theme.to_string(), initial.to_string(), true)
|
||||
} else {
|
||||
("system".to_string(), "light".to_string(), false)
|
||||
|
||||
@@ -32,6 +32,7 @@ pub async fn show_account_page(
|
||||
let theme_options = vec![
|
||||
"light".to_string(),
|
||||
"dark".to_string(),
|
||||
"obsidian-prism".to_string(),
|
||||
"system".to_string(),
|
||||
];
|
||||
let conversation_archive = User::get_user_conversations(&user.id, &state.db).await?;
|
||||
@@ -156,6 +157,7 @@ pub async fn update_theme(
|
||||
let theme_options = vec![
|
||||
"light".to_string(),
|
||||
"dark".to_string(),
|
||||
"obsidian-prism".to_string(),
|
||||
"system".to_string(),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user