Skip to content

Commit

Permalink
Merge pull request #385 from Mkadir/main
Browse files Browse the repository at this point in the history
 fix & add some Uzbek words
  • Loading branch information
GyulyVGC authored Oct 21, 2023
2 parents 6ee9567 + 44b1abf commit 0d36229
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/gui/components/radio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub fn language_radios(
Row::new().align_items(Alignment::Center).push(
Row::new()
.align_items(Alignment::Center)
.width(Length::Fixed(180.0))
.width(Length::Fixed(200.0))
.push(
Radio::new(
format!("{} ({:?})", option.get_radio_label(), option),
Expand All @@ -91,7 +91,7 @@ pub fn language_radios(
.font(font)
.size(15),
)
.push(horizontal_space(Length::Fixed(8.0)))
.push(horizontal_space(Length::Fixed(15.0)))
.push(option.get_flag()),
),
);
Expand Down
9 changes: 5 additions & 4 deletions src/gui/pages/settings_language_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ pub fn settings_language_page(sniffer: &Sniffer) -> Container<Message, Renderer<
let row_language_radio_3 = language_radios(language_active, &Language::ROW3, font);
let row_language_radio_4 = language_radios(language_active, &Language::ROW4, font);
let row_language_radio_5 = language_radios(language_active, &Language::ROW5, font);
let row_language_radio_6 = language_radios(language_active, &Language::ROW6, font);
let col_language_radio_all = Column::new()
.spacing(10)
.spacing(12)
.align_items(Alignment::Center)
.push(row_language_radio_1)
.push(vertical_space(0))
.push(row_language_radio_2)
.push(row_language_radio_3)
.push(row_language_radio_4)
.push(row_language_radio_5);
.push(row_language_radio_5)
.push(row_language_radio_6);

let mut content = Column::new()
.align_items(Alignment::Center)
Expand All @@ -59,7 +60,7 @@ pub fn settings_language_page(sniffer: &Sniffer) -> Container<Message, Renderer<
.push(col_language_radio_all);

if [Language::EL, Language::PT].contains(&sniffer.language) {
content = content.push(vertical_space(Fixed(40.0))).push(
content = content.push(vertical_space(Fixed(20.0))).push(
Container::new(
Text::new("The selected language is not fully updated to version 1.2").font(font),
)
Expand Down
Loading

0 comments on commit 0d36229

Please sign in to comment.