From 1014e347434e83bc85678ae0c22fd095632a5b1c Mon Sep 17 00:00:00 2001 From: Elias Entrup Date: Tue, 13 Feb 2018 18:35:05 +0100 Subject: avatar-selection: Use popover and window for crop/cheese The avatar selection used to happen in a separate window including cropping and webcam. This commit introduces a Popover instead. For cropping and webcam, a separate window is opened again. These design changes were done according to new mockups. https://gitlab.gnome.org/GNOME/gnome-contacts/issues/84 --- data/contacts.gresource.xml | 1 + data/ui/contacts-avatar-selector.ui | 335 +++++++-------------------------- data/ui/contacts-crop-cheese-dialog.ui | 116 ++++++++++++ data/ui/style.css | 5 + po/POTFILES.in | 2 + po/POTFILES.skip | 1 + src/contacts-avatar-selector.vala | 292 +++++++++------------------- src/contacts-contact-editor.vala | 8 +- src/contacts-crop-cheese-dialog.vala | 114 +++++++++++ src/contacts-utils.vala | 10 + src/meson.build | 1 + 11 files changed, 410 insertions(+), 475 deletions(-) create mode 100644 data/ui/contacts-crop-cheese-dialog.ui create mode 100644 src/contacts-crop-cheese-dialog.vala diff --git a/data/contacts.gresource.xml b/data/contacts.gresource.xml index a20079e..6564cfd 100644 --- a/data/contacts.gresource.xml +++ b/data/contacts.gresource.xml @@ -9,6 +9,7 @@ ui/contacts-contact-editor.ui ui/contacts-contact-pane.ui ui/contacts-contact-sheet.ui + ui/contacts-crop-cheese-dialog.ui ui/contacts-in-app-notification.ui ui/contacts-link-suggestion-grid.ui ui/contacts-linked-personas-dialog.ui diff --git a/data/ui/contacts-avatar-selector.ui b/data/ui/contacts-avatar-selector.ui index e117827..180ae6b 100644 --- a/data/ui/contacts-avatar-selector.ui +++ b/data/ui/contacts-avatar-selector.ui @@ -1,293 +1,90 @@ - -