Skip to content

Commit

Permalink
Changed size, weight, and color assignments to improve contrast and r…
Browse files Browse the repository at this point in the history
…eadability
  • Loading branch information
ERLindeman committed Sep 27, 2024
1 parent 44c57ef commit d6d3634
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions gui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ fn LabeledProgressBar(numerator: u32, denominator: u32) -> impl IntoView {
0.0
}
.round();
let width_percentage = format!("{:.0}%", percent);

view! {
<div class="labeled-progress-bar">
Expand Down Expand Up @@ -348,8 +347,9 @@ fn App() -> impl IntoView {
width: 100%;
overflow: hidden;
background-color: var(--background-color);
font-size: xx-large;
font-size: x-large;
font-family: "Noto Sans", sans-serif;
font-weight: 400;
}
#app {
Expand All @@ -369,7 +369,7 @@ fn App() -> impl IntoView {
}
.widget-title {
font-weight: bold;
font-weight: 500;
}
.widget-main-content {
Expand All @@ -381,6 +381,10 @@ fn App() -> impl IntoView {
}
.widget-description {
font-size: large;
}
.widget-title,
.widget-description {
flex: 1;
Expand All @@ -393,6 +397,7 @@ fn App() -> impl IntoView {
top: 0;
z-index: 1;
font-family: 'Code New Roman', monospace;
font-size: xxx-large;
}
#title-widget .widget-content {
Expand All @@ -404,6 +409,12 @@ fn App() -> impl IntoView {
background-color: transparent;
cursor: default;
}
.header-title {
color: var(--widget-background);
font-weight: 700;
font-size: xx-large;
}
.labeled-progress-bar {
display: flex;
Expand All @@ -420,7 +431,7 @@ fn App() -> impl IntoView {
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-weight: 600;
}
.progress-container {
Expand All @@ -437,7 +448,7 @@ fn App() -> impl IntoView {
padding: 2%;
box-sizing: border-box;
border-radius: var(--border-radius);
background-color: var(--background-color);
background-color: var(--text-color);
overflow: hidden;
position: relative;
}
Expand Down

0 comments on commit d6d3634

Please sign in to comment.