From aaf8f1e02e034adc4242382a6bd8728350c15c2e Mon Sep 17 00:00:00 2001 From: Caspian Ahlberg Date: Tue, 8 Oct 2024 18:56:28 +0100 Subject: [PATCH] Tweak the credit window size on all themes --- src/dashboard_defs/themes/barebones.rs | 4 ++-- src/dashboard_defs/themes/standard.rs | 6 +++--- src/dashboard_defs/themes/the_room.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/dashboard_defs/themes/barebones.rs b/src/dashboard_defs/themes/barebones.rs index e5be675..8fc1074 100644 --- a/src/dashboard_defs/themes/barebones.rs +++ b/src/dashboard_defs/themes/barebones.rs @@ -176,7 +176,7 @@ pub async fn make_dashboard( ////////// Making a credit window - let weather_and_credit_window_size = Vec2f::new(0.2, 0.03); + let weather_and_credit_window_size = Vec2f::new(0.15, 0.03); let credit_border_and_text_color = ColorSDL::RGB(255, 153, 153); let num_commits = run_command("git", &["rev-list", "--count", "HEAD"])?; @@ -184,7 +184,7 @@ pub async fn make_dashboard( let credit_message = format!("By Caspian Ahlberg, release #{num_commits}, on branch '{branch_name}'"); let credit_window = make_credit_window( - Vec2f::new(0.8, 0.97), + Vec2f::new(0.85, 0.97), weather_and_credit_window_size, credit_border_and_text_color, credit_border_and_text_color, diff --git a/src/dashboard_defs/themes/standard.rs b/src/dashboard_defs/themes/standard.rs index 669d0f0..53a30a6 100644 --- a/src/dashboard_defs/themes/standard.rs +++ b/src/dashboard_defs/themes/standard.rs @@ -176,8 +176,8 @@ pub async fn make_dashboard( let credit_message = format!("By Caspian Ahlberg, release #{num_commits}, on branch '{branch_name}'"); let credit_window = make_credit_window( - Vec2f::new(0.8, 0.97), - Vec2f::new(0.2, 0.03), + Vec2f::new(0.85, 0.97), + Vec2f::new(0.15, 0.03), ColorSDL::RED, ColorSDL::RGB(210, 180, 140), credit_message @@ -292,7 +292,7 @@ pub async fn make_dashboard( Vec2f::new(0.4, 0.3), update_rate_creator, &api_keys.tomorrow_io, - WindowContents::Color(ColorSDL::RGB(255, 0, 255)), + WindowContents::Nothing, theme_color_1, theme_color_1 ), diff --git a/src/dashboard_defs/themes/the_room.rs b/src/dashboard_defs/themes/the_room.rs index ce9a03f..8d2d5e3 100644 --- a/src/dashboard_defs/themes/the_room.rs +++ b/src/dashboard_defs/themes/the_room.rs @@ -172,7 +172,7 @@ pub async fn make_dashboard( ////////// Making a credit window - let weather_and_credit_window_size = Vec2f::new(0.2, 0.03); + let weather_and_credit_window_size = Vec2f::new(0.15, 0.03); let credit_border_and_text_color = ColorSDL::RGB(255, 153, 153); let num_commits = run_command("git", &["rev-list", "--count", "HEAD"])?; @@ -180,7 +180,7 @@ pub async fn make_dashboard( let credit_message = format!("By Caspian Ahlberg, release #{num_commits}, on branch '{branch_name}'"); let credit_window = make_credit_window( - Vec2f::new(0.8, 0.0), + Vec2f::new(0.85, 0.0), weather_and_credit_window_size, credit_border_and_text_color, credit_border_and_text_color,