Remove GdkPixbuf hack
This commit is contained in:
@@ -9,9 +9,4 @@
|
||||
color: @light_1;
|
||||
background-color: @dark_5;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* This is to hide a weird GdkPixbuf upscaling glitch */
|
||||
#details_view_blurred_cover {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
@@ -35,7 +35,6 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
||||
|
||||
Overlay details_view {
|
||||
name: "details_view";
|
||||
overflow: hidden;
|
||||
|
||||
[overlay]
|
||||
Box details_view_box {
|
||||
@@ -220,7 +219,6 @@ template CartridgesWindow : Adw.ApplicationWindow {
|
||||
}
|
||||
|
||||
Picture details_view_blurred_cover {
|
||||
name: "details_view_blurred_cover";
|
||||
keep-aspect-ratio: false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,8 +73,8 @@ class GameCover:
|
||||
with Image.open(self.path) as image:
|
||||
image = (
|
||||
image.convert("RGB")
|
||||
.resize((10, 15))
|
||||
.filter(ImageFilter.GaussianBlur(2))
|
||||
.resize((100, 150))
|
||||
.filter(ImageFilter.GaussianBlur(20))
|
||||
)
|
||||
|
||||
tmp_path = Gio.File.new_tmp(None)[0].get_path()
|
||||
|
||||
Reference in New Issue
Block a user