Skip to content

Commit

Permalink
Tweak the credit window size on all themes
Browse files Browse the repository at this point in the history
  • Loading branch information
CaspianA1 committed Oct 8, 2024
1 parent e113245 commit aaf8f1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/dashboard_defs/themes/barebones.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,15 @@ 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"])?;
let branch_name = run_command("git", &["rev-parse", "--abbrev-ref", "HEAD"])?;
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,
Expand Down
6 changes: 3 additions & 3 deletions src/dashboard_defs/themes/standard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
),
Expand Down
4 changes: 2 additions & 2 deletions src/dashboard_defs/themes/the_room.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ 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"])?;
let branch_name = run_command("git", &["rev-parse", "--abbrev-ref", "HEAD"])?;
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,
Expand Down

0 comments on commit aaf8f1e

Please sign in to comment.