Skip to content

Commit

Permalink
Fixed lang spacing, fixed reversed scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
GamingGuy003 committed Oct 19, 2024
1 parent dfcd71d commit f9191ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "raspirus"
version = "2.0.0"
version = "2.0.1"
description = "A simple hash-based virus-scanner"
authors = ["Demetz Benjamin, Hell Björn Felix"]
license-file = "LICENSE"
Expand Down Expand Up @@ -38,7 +38,6 @@ tokio = "1.40.0"
rust-i18n = { version = "3.1.2", features = ["log-miss-tr"] }
rfd = "0.15.0"
rdev = "0.5.3"
iced_winit = "0.13.0"

# usb detection on linux
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
Expand All @@ -53,10 +52,10 @@ windows-sys = { version = "0.59.0", features = [
winapi = "0.3.9"

[profile.release]
opt-level = 3 # Focus on performance
opt-level = 3 # Focus on performance
lto = true
codegen-units = 1
strip = true # Removed debugging symbols
strip = true # Removed debugging symbols
#panic = "abort" # Removes exception tree

[package.metadata.packager]
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/panels/main_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl Raspirus {
.wrapping(iced::widget::text::Wrapping::None),
)
.spacing(10)
.padding([0, 5]),
.padding([0, 10]),
)
.padding(10)
.style(button_blue_style)
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ fn main() -> Result<(), String> {
let (width, height) = display_size().unwrap();
let minimum_dimension = width.min(height) as f64;

let scaling_factor = 1080.0 / minimum_dimension;
let scaling_factor = minimum_dimension / 1080.0;

// Ensure the scaling factor is clamped within reasonable bounds (to avoid extremely large or small values)
let clamped_scaling = scaling_factor.clamp(0.1, 1.0);
Expand Down

0 comments on commit f9191ee

Please sign in to comment.