Skip to content

Commit

Permalink
Fix inconsistent spacing around backup controls/filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Sep 21, 2024
1 parent e238fd4 commit b08858c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
instead of the intended `<game>/drive-____UNC_localhost_share/test.txt`.
* When Steam was not installed, the logs would contain a `warning`-level message.
This has been demoted to an `info`-level message.
* GUI: Fixed some inconsistent spacing between elements.
* Changed:
* GUI: Updated to the latest version of [Iced](https://github.com/iced-rs/iced).
If the GUI fails to load, Ludusavi will log the error info.
Expand Down
4 changes: 2 additions & 2 deletions src/gui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{
time::{Duration, Instant},
};

use iced::{keyboard, padding, widget::scrollable, Alignment, Length, Subscription, Task};
use iced::{keyboard, widget::scrollable, Alignment, Length, Subscription, Task};

use crate::{
cloud::{rclone_monitor, Rclone, Remote},
Expand Down Expand Up @@ -2733,7 +2733,7 @@ impl App {
.align_x(Alignment::Center)
.push(
Row::new()
.padding(padding::top(10).right(20).bottom(15).left(20))
.padding([10, 20])
.spacing(20)
.push(button::nav(Screen::Backup, self.screen))
.push(button::nav(Screen::Restore, self.screen))
Expand Down
1 change: 1 addition & 0 deletions src/gui/game_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ impl GameList {

Container::new(
Column::new()
.spacing(15)
.push_maybe({
self.search.view(
if restoring { Screen::Restore } else { Screen::Backup },
Expand Down
2 changes: 1 addition & 1 deletion src/gui/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn template(content: Column) -> Element {
Container::new(content.spacing(15).align_x(Alignment::Center))
.height(Length::Fill)
.center_x(Length::Fill)
.padding(padding::all(5).top(0))
.padding(padding::all(5))
.into()
}

Expand Down
11 changes: 6 additions & 5 deletions src/gui/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ impl FilterComponent {
}
Some(
Column::new()
.spacing(15)
.push(
Row::new()
.padding(padding::top(0).bottom(10).left(20).right(20))
.padding(padding::left(20).right(20))
.spacing(20)
.align_y(Alignment::Center)
.push(text(TRANSLATOR.filter_label()))
Expand All @@ -151,8 +152,8 @@ impl FilterComponent {
)
.push(
Row::new()
.padding(padding::all(20).top(0))
.spacing(20)
.padding(padding::left(20).right(20))
.spacing(15)
.align_y(Alignment::Center)
.push(template(
&self.uniqueness,
Expand Down Expand Up @@ -191,8 +192,8 @@ impl FilterComponent {
)
.push_if(manifests.len() > 2, || {
Row::new()
.padding(padding::all(20).top(0))
.spacing(20)
.padding(padding::left(20).right(0))
.spacing(15)
.align_y(Alignment::Center)
.push(template_with_label(
&self.manifest,
Expand Down

0 comments on commit b08858c

Please sign in to comment.