Skip to content

Commit

Permalink
Merge pull request #70 from AmadeusGraves/patch-1
Browse files Browse the repository at this point in the history
Added Spanish Translation
  • Loading branch information
GyulyVGC authored Feb 11, 2023
2 parents f32822c + 68f8bd2 commit 5b8ded2
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/enums/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ pub enum Language {
IT,
/// French.
FR,
/// Spanish.
ES,
}

impl Default for Language {
Expand All @@ -18,13 +20,14 @@ impl Default for Language {
}

impl Language {
pub(crate) const ALL: [Language; 3] = [Language::EN, Language::IT, Language::FR];
pub(crate) const ALL: [Language; 4] = [Language::EN, Language::IT, Language::FR, Language::ES];

pub fn get_radio_label(&self) -> &str {
match self {
Language::EN => "English",
Language::IT => "Italiano",
Language::FR => "Français",
Language::ES => "Español",
}
}
}
6 changes: 3 additions & 3 deletions src/gui/pages/notifications_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ fn packets_notification_log(
Container::new(content)
.height(Length::Units(120))
.width(Length::Units(800))
.padding(20)
.padding(15)
.style(<StyleTuple as Into<iced::theme::Container>>::into(
StyleTuple(style, ElementType::BorderedRound),
))
Expand Down Expand Up @@ -318,7 +318,7 @@ fn bytes_notification_log(
Container::new(content)
.height(Length::Units(120))
.width(Length::Units(800))
.padding(20)
.padding(15)
.style(<StyleTuple as Into<iced::theme::Container>>::into(
StyleTuple(style, ElementType::BorderedRound),
))
Expand Down Expand Up @@ -391,7 +391,7 @@ fn favorite_notification_log(
Container::new(content)
.height(Length::Units(120))
.width(Length::Units(800))
.padding(20)
.padding(15)
.style(<StyleTuple as Into<iced::theme::Container>>::into(
StyleTuple(style, ElementType::BorderedRound),
))
Expand Down
2 changes: 1 addition & 1 deletion src/gui/pages/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ fn get_palette_container(

Button::new(content)
.height(Units(130))
.width(Units(350))
.width(Units(360))
.padding(10)
.style(StyleTuple(style, ElementType::BorderedRound).into())
.on_press(Message::Style(on_press))
Expand Down
Loading

0 comments on commit 5b8ded2

Please sign in to comment.