From 0d060f679009a215928b93e82a5a79f8dc189895 Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Fri, 19 Jan 2024 16:42:49 +0100 Subject: [PATCH] image: Occupy 40% instead of 30% screen area Closes #272 --- src/widgets/image.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widgets/image.rs b/src/widgets/image.rs index 294608c..dc2d65a 100644 --- a/src/widgets/image.rs +++ b/src/widgets/image.rs @@ -115,11 +115,11 @@ const MAX_ZOOM_LEVEL: f64 = 20.0; /// The thumbnail is currently used for drag and drop. const THUMBNAIL_SIZE: f32 = 128.; -/// For large enough monitors occupy 30% of the screen area when opening window with image -const DEFAULT_OCCUPY_SCREEN: f64 = 0.3; +/// For large enough monitors occupy 40% of the screen area when opening window with image +const DEFAULT_OCCUPY_SCREEN: f64 = 0.4; /// Screens with this resolution or smaller are handles as small -const SMALL_SCREEN_AREA: f64 = 1024. * 768.; +const SMALL_SCREEN_AREA: f64 = 1280. * 1024.; /// For small monitors occupy 80% of the screen area const SMALL_OCCUPY_SCREEN: f64 = 0.8;