app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

commit 4d4eaaf0fcf8be3f7c08a25fe4cddc70639294df
parent 51db75d2c52491d073bc609a7405c95f1db84934
Author: triesap <tyson@radroots.org>
Date:   Sun,  7 Jun 2026 14:28:34 -0700

ui: soften form focus and harmonize account defaults

Diffstat:
Mcrates/desktop/src/app.rs | 4+++-
Mcrates/i18n/src/lib.rs | 20++++++++++++++++++++
Mi18n/locales/en/messages.json | 8++++----
3 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/crates/desktop/src/app.rs b/crates/desktop/src/app.rs @@ -1,10 +1,11 @@ -use gpui::Application; +use gpui::{Application, rgb}; use gpui_component::{Theme, ThemeMode}; use radroots_app_core::{ APP_PROJECTION_SOURCE, AppBuildIdentity, AppRuntimeConfig, AppRuntimeConfigError, AppRuntimeSnapshot, bootstrap_logging, install_panic_hook, launch_startup_event, }; use radroots_app_i18n::select_locale_from_host; +use radroots_app_ui::APP_UI_THEME; use thiserror::Error; use tracing::{error, info}; @@ -45,6 +46,7 @@ pub fn launch() -> Result<(), AppLaunchError> { app.run(move |cx| { gpui_component::init(cx); Theme::change(ThemeMode::Light, None, cx); + Theme::global_mut(cx).ring = rgb(APP_UI_THEME.components.app_input_text.border).into(); select_locale_from_host(&snapshot.host.host_locale); install_native_app_menu(runtime.clone(), cx); diff --git a/crates/i18n/src/lib.rs b/crates/i18n/src/lib.rs @@ -178,10 +178,30 @@ mod tests { "Remove" ); assert_eq!( + app_text(AppTextKey::AccountProfileFullNameValue), + "Tyson Lupul" + ); + assert_eq!( + app_text(AppTextKey::AccountProfileEmailValue), + "tyson@tysonsfarm.com" + ); + assert_eq!( + app_text(AppTextKey::AccountProfilePhoneValue), + "+1 250 202 3030" + ); + assert_eq!( app_text(AppTextKey::AccountFarmDetailsFarmProfileTitle), "Farm profile" ); assert_eq!( + app_text(AppTextKey::AccountFarmDetailsContactEmailValue), + "tyson@tysonsfarm.com" + ); + assert_eq!( + app_text(AppTextKey::AccountFarmDetailsPublicPhoneValue), + "+1 250 202 3030" + ); + assert_eq!( app_text(AppTextKey::AccountFarmDetailsFarmTypeVegetableFarm), "Vegetable farm" ); diff --git a/i18n/locales/en/messages.json b/i18n/locales/en/messages.json @@ -22,9 +22,9 @@ "account.profile.role.label": "Role", "account.profile.time_zone.label": "Time zone", "account.profile.language.label": "Language", - "account.profile.full_name.value": "Avery Field", - "account.profile.email.value": "avery@example.com", - "account.profile.phone.value": "+1 250 555 0198", + "account.profile.full_name.value": "Tyson Lupul", + "account.profile.email.value": "tyson@tysonsfarm.com", + "account.profile.phone.value": "+1 250 202 3030", "account.profile.role.value": "Farm owner", "account.profile.role.farm_manager.value": "Farm manager", "account.profile.role.team_member.value": "Team member", @@ -49,7 +49,7 @@ "account.farm_details.public_farm_name.value": "Tyson's Farm", "account.farm_details.short_description.value": "Family-run farm growing quality produce.", "account.farm_details.contact_email.value": "tyson@tysonsfarm.com", - "account.farm_details.public_phone.value": "+1 (250) 555-0198", + "account.farm_details.public_phone.value": "+1 250 202 3030", "account.farm_details.website.value": "https://tysonsfarm.com", "account.farm_details.established_year.value": "2018", "account.farm_details.about_farm.value": "We're a family-run farm in Victoria, British Columbia growing fresh, sustainable produce. Our mission is to nourish our community with high-quality vegetables while caring for the land.",