From 9c76c10f6457e3b0d1f6eae84bf3fc004be81458 Mon Sep 17 00:00:00 2001 From: Joshua Sims Date: Fri, 31 Oct 2025 19:24:39 -0400 Subject: [PATCH 1/4] Remove light mode --- rhombus/frontend/app.tsx | 23 ----------------------- rhombus/static/global.js | 3 ++- rhombus/templates/base.html | 2 +- 3 files changed, 3 insertions(+), 25 deletions(-) diff --git a/rhombus/frontend/app.tsx b/rhombus/frontend/app.tsx index fe401fe..324d9b1 100644 --- a/rhombus/frontend/app.tsx +++ b/rhombus/frontend/app.tsx @@ -207,29 +207,6 @@ const CommandMenu = () => { - - - { - // @ts-ignore - setTheme(false); - setOpen(false); - }} - > - - {translate("light-theme")} - - { - // @ts-ignore - setTheme(true); - setOpen(false); - }} - > - - {translate("dark-theme")} - - ); diff --git a/rhombus/static/global.js b/rhombus/static/global.js index 849de38..1ae7145 100644 --- a/rhombus/static/global.js +++ b/rhombus/static/global.js @@ -36,7 +36,8 @@ const getThemePreference = () => { : "light"; }; const setTheme = (isDark) => { - document.documentElement.classList[isDark ? "add" : "remove"]("dark"); + document.documentElement.classList["add"]("dark"); + // document.documentElement.classList[isDark ? "add" : "remove"]("dark"); }; window diff --git a/rhombus/templates/base.html b/rhombus/templates/base.html index 672c1aa..b540510 100644 --- a/rhombus/templates/base.html +++ b/rhombus/templates/base.html @@ -1,5 +1,5 @@ - + From be5adfe9dc788e5668ebbc7aecefc4c51fee2123 Mon Sep 17 00:00:00 2001 From: Joshua Sims Date: Fri, 31 Oct 2025 19:33:14 -0400 Subject: [PATCH 2/4] Add email_logo image --- rhombus/src/builder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rhombus/src/builder.rs b/rhombus/src/builder.rs index 641bba4..47db0b5 100644 --- a/rhombus/src/builder.rs +++ b/rhombus/src/builder.rs @@ -848,7 +848,8 @@ impl Builder { let (outbound_mailer, mailgun_router): (Option>, axum::Router) = if let Some(email) = settings.clone().read().await.email.as_ref() { - let logo_path = find_image_file("static/logo") + let logo_path = find_image_file("static/email_logo") + .or_else(|| find_image_file("static/logo")) .map(|p| p.to_str().unwrap().to_owned()) .unwrap_or("static/logo.svg".to_owned()); if email.mailgun.is_some() { From 7da1cb0dfdc6e4c6ca861b30a2fbf8c063fa5831 Mon Sep 17 00:00:00 2001 From: Joshua Sims Date: Fri, 31 Oct 2025 19:51:23 -0400 Subject: [PATCH 3/4] Fix logo shrink --- rhombus/templates/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhombus/templates/layout.html b/rhombus/templates/layout.html index 03c5ac0..6d8fc9c 100644 --- a/rhombus/templates/layout.html +++ b/rhombus/templates/layout.html @@ -15,7 +15,7 @@ hx-swap="outerHTML" class="flex" > - + {% include "logo.html" %}