From 0c652f24d9cda9b444dcb0f2f0ade07285aef1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Thu, 2 Nov 2023 17:21:18 +0100 Subject: [PATCH] editable-avatar: Make cutout style match less generic --- data/resources/style.css | 2 +- src/components/editable_avatar.rs | 3 +-- src/components/editable_avatar.ui | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/data/resources/style.css b/data/resources/style.css index d9ef270a..51a8a1e8 100644 --- a/data/resources/style.css +++ b/data/resources/style.css @@ -163,7 +163,7 @@ entry .inline-pill { margin-bottom: -0.5em; } -.cutout-button { +editable-avatar .cutout { background-color: @window_bg_color; border-radius: 9999px; padding: 2px; diff --git a/src/components/editable_avatar.rs b/src/components/editable_avatar.rs index 035d0451..237e3bfd 100644 --- a/src/components/editable_avatar.rs +++ b/src/components/editable_avatar.rs @@ -65,8 +65,6 @@ mod imp { #[template_child] pub stack: TemplateChild, #[template_child] - pub button_remove_bin: TemplateChild, - #[template_child] pub button_remove: TemplateChild, #[template_child] pub button_edit: TemplateChild, @@ -80,6 +78,7 @@ mod imp { fn class_init(klass: &mut Self::Class) { Self::bind_template(klass); + klass.set_css_name("editable-avatar"); klass.install_action("editable-avatar.edit-avatar", None, |obj, _, _| { spawn!(clone!(@weak obj => async move { diff --git a/src/components/editable_avatar.ui b/src/components/editable_avatar.ui index ed6ff7c4..13509f04 100644 --- a/src/components/editable_avatar.ui +++ b/src/components/editable_avatar.ui @@ -42,7 +42,7 @@ end start @@ -57,7 +57,7 @@ end