Skip to content

Commit

Permalink
Increase font size
Browse files Browse the repository at this point in the history
  • Loading branch information
sundaram123krishnan committed Aug 25, 2024
1 parent 66f326c commit 73e1041
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,9 @@ impl Application for RustCraft {

let control_buttons = Row::new().spacing(10).push(start_button);

let mut minecraft_dir_button = Button::new(Text::new("Select Minecraft Directory").font(MONOCRAFT).size(16))
let mut minecraft_dir_button = Button::new(Text::new("Select Minecraft Directory").font(MONOCRAFT).size(20))
.padding(10)
.width(Length::Fixed(310f32))
.width(Length::Fixed(370f32))
.style(button_styles::MinecraftButton);

if !self.active_schedule {
Expand All @@ -389,11 +389,11 @@ impl Application for RustCraft {
.unwrap_or(&"No directory selected".to_string())
.clone(),
).font(MONOCRAFT)
.size(16);
.size(18);

let mut backup_dir_button = Button::new(Text::new("Select Backup Directory").font(MONOCRAFT))
let mut backup_dir_button = Button::new(Text::new("Select Backup Directory").font(MONOCRAFT).size(20))
.padding(10)
.width(Length::Fixed(310f32))
.width(Length::Fixed(370f32))
.style(button_styles::MinecraftButton);

if !self.active_schedule {
Expand All @@ -406,17 +406,17 @@ impl Application for RustCraft {
.unwrap_or(&"No directory selected".to_string())
.clone(),
).font(MONOCRAFT)
.size(16);
.size(18);

let schedule_slider = Slider::new(0..=24, self.schedule_hours, Message::ScheduleChanged)
.step(1)
.width(Length::Fixed(200f32))
.style(slider_styles::MinecraftSlider);

let schedule_text = if self.schedule_hours == 0 {
Text::new("Perform a one-time backup").font(MONOCRAFT).size(16)
Text::new("Perform a one-time backup").font(MONOCRAFT).size(18)
} else {
Text::new(format!("Schedule every {} hours", self.schedule_hours)).font(MONOCRAFT).size(16)
Text::new(format!("Schedule every {} hours", self.schedule_hours)).font(MONOCRAFT).size(18)
};

let minecraft_dir_column = Column::new()
Expand Down

0 comments on commit 73e1041

Please sign in to comment.