Resize images asynchronously in the edit dialog

This commit is contained in:
kramo
2023-05-06 10:07:35 +02:00
parent f8c06a9e4d
commit bd0386bcba
3 changed files with 50 additions and 31 deletions

View File

@@ -40,30 +40,20 @@ template DetailsWindow : Adw.Window {
Adw.PreferencesGroup cover_group {
Adw.Clamp cover_clamp {
maximum-size: 200;
Overlay cover_overlay {
halign: center;
valign: center;
Overlay {
[overlay]
Button cover_button_edit {
icon-name: "document-edit-symbolic";
halign: end;
valign: end;
margin-bottom: 6;
margin-end: 6;
styles [
"circular", "osd"
]
Spinner spinner {
margin-start: 72;
margin-end: 72;
}
[overlay]
Revealer cover_button_delete_revealer {
transition-type: crossfade;
margin-end: 40;
Overlay cover_overlay {
halign: center;
valign: center;
Button cover_button_delete {
icon-name: "user-trash-symbolic";
[overlay]
Button cover_button_edit {
icon-name: "document-edit-symbolic";
halign: end;
valign: end;
margin-bottom: 6;
@@ -73,15 +63,33 @@ template DetailsWindow : Adw.Window {
"circular", "osd"
]
}
}
Picture cover {
width-request: 200;
height-request: 300;
styles [
"card"
]
[overlay]
Revealer cover_button_delete_revealer {
transition-type: crossfade;
margin-end: 40;
Button cover_button_delete {
icon-name: "user-trash-symbolic";
halign: end;
valign: end;
margin-bottom: 6;
margin-end: 6;
styles [
"circular", "osd"
]
}
}
Picture cover {
width-request: 200;
height-request: 300;
styles [
"card"
]
}
}
}
}