app

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

commit 98d76b02531583de90d7a03911f6bd58226066dd
parent 9fad5b5a6cf1b4e22e6519c0e6332be25d5b1601
Author: triesap <tyson@radroots.org>
Date:   Sat, 18 Apr 2026 00:53:36 +0000

app: size home window to instruments frame

Diffstat:
Mcrates/launchers/desktop/src/app.rs | 11++++++++++-
Mcrates/shared/ui/src/theme.rs | 8++++----
2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/crates/launchers/desktop/src/app.rs b/crates/launchers/desktop/src/app.rs @@ -1,4 +1,4 @@ -use gpui::{Application, WindowOptions, px, size}; +use gpui::{Application, Bounds, WindowBounds, WindowOptions, px, size}; use radroots_app_core::{ APP_PROJECTION_SOURCE, AppBuildIdentity, AppRuntimeConfig, AppRuntimeConfigError, AppRuntimeSnapshot, bootstrap_logging, install_panic_hook, launch_startup_event, @@ -46,10 +46,19 @@ pub fn launch() -> Result<(), AppLaunchError> { let snapshot = snapshot.clone(); let runtime = runtime.clone(); + let home_bounds = Bounds::centered( + None, + size( + px(APP_UI_THEME.windows.home_min_width_px), + px(APP_UI_THEME.windows.home_min_height_px), + ), + cx, + ); cx.spawn(async move |cx| { if let Err(error) = cx.open_window( WindowOptions { app_id: Some(snapshot.host.app_identifier.clone()), + window_bounds: Some(WindowBounds::Windowed(home_bounds)), window_min_size: Some(size( px(APP_UI_THEME.windows.home_min_width_px), px(APP_UI_THEME.windows.home_min_height_px), diff --git a/crates/shared/ui/src/theme.rs b/crates/shared/ui/src/theme.rs @@ -158,8 +158,8 @@ pub struct StatusIndicatorTokens { pub const APP_UI_THEME: AppUiTheme = AppUiTheme { windows: AppWindowTokens { - home_min_width_px: 980.0, - home_min_height_px: 720.0, + home_min_width_px: 1284.0, + home_min_height_px: 795.0, settings_width_px: 600.0, settings_height_px: 540.0, }, @@ -289,8 +289,8 @@ mod tests { #[test] fn home_window_minimums_match_the_upgraded_shell_budget() { - assert_eq!(APP_UI_THEME.windows.home_min_width_px, 980.0); - assert_eq!(APP_UI_THEME.windows.home_min_height_px, 720.0); + assert_eq!(APP_UI_THEME.windows.home_min_width_px, 1284.0); + assert_eq!(APP_UI_THEME.windows.home_min_height_px, 795.0); assert_eq!(APP_UI_THEME.layout.home_sidebar_width_px, 240.0); assert_eq!(APP_UI_THEME.layout.home_window_padding_px, 24.0); }