Remove GdkPixbuf hack

This commit is contained in:
kramo
2023-05-05 17:40:22 +02:00
parent cd396a4bf8
commit 15fc6292b6
3 changed files with 2 additions and 9 deletions

View File

@@ -9,9 +9,4 @@
color: @light_1; color: @light_1;
background-color: @dark_5; background-color: @dark_5;
opacity: 0.8; opacity: 0.8;
}
/* This is to hide a weird GdkPixbuf upscaling glitch */
#details_view_blurred_cover {
transform: scale(1.2);
} }

View File

@@ -35,7 +35,6 @@ template CartridgesWindow : Adw.ApplicationWindow {
Overlay details_view { Overlay details_view {
name: "details_view"; name: "details_view";
overflow: hidden;
[overlay] [overlay]
Box details_view_box { Box details_view_box {
@@ -220,7 +219,6 @@ template CartridgesWindow : Adw.ApplicationWindow {
} }
Picture details_view_blurred_cover { Picture details_view_blurred_cover {
name: "details_view_blurred_cover";
keep-aspect-ratio: false; keep-aspect-ratio: false;
} }
} }

View File

@@ -73,8 +73,8 @@ class GameCover:
with Image.open(self.path) as image: with Image.open(self.path) as image:
image = ( image = (
image.convert("RGB") image.convert("RGB")
.resize((10, 15)) .resize((100, 150))
.filter(ImageFilter.GaussianBlur(2)) .filter(ImageFilter.GaussianBlur(20))
) )
tmp_path = Gio.File.new_tmp(None)[0].get_path() tmp_path = Gio.File.new_tmp(None)[0].get_path()