Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Fixed formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger committed Jan 14, 2024
1 parent 74abc48 commit bad515d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions view_library/src/ui/file_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl FileView {
filter: String::new(),
auto_scroll_enabled: true,
scroll_speed: 1,
upgrade_version: None
upgrade_version: None,
}
}

Expand Down Expand Up @@ -176,7 +176,7 @@ impl FileView {
}
if let Some(ver) = &self.upgrade_version {
ui.hyperlink_to(
fl!(crate::LANGUAGE_LOADER, "menu-upgrade_version", version=ver.clone()),
fl!(crate::LANGUAGE_LOADER, "menu-upgrade_version", version = ver.clone()),
"https://github.com/mkrueger/icy_view/releases/latest",
);
}
Expand Down Expand Up @@ -313,11 +313,8 @@ impl FileView {
let font_id = FontId::new(14.0, FontFamily::Proportional);
let text: WidgetText = label.into();
let galley = text.into_galley(ui, Some(false), f32::INFINITY, font_id);
ui.painter().galley_with_override_text_color(
egui::Align2::LEFT_TOP.align_size_within_rect(galley.size(), rect).min,
galley,
text_color,
);
ui.painter()
.galley_with_override_text_color(egui::Align2::LEFT_TOP.align_size_within_rect(galley.size(), rect).min, galley, text_color);
if response.hovered() {
entry.load_sauce();
if let Some(sauce) = &entry.sauce {
Expand Down

0 comments on commit bad515d

Please sign in to comment.