Remove GdkPixbuf hack
This commit is contained in:
@@ -10,8 +10,3 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user