editable-avatar: Make cutout style match less generic

This commit is contained in:
Kévin Commaille 2023-11-02 17:21:18 +01:00
parent d66d527518
commit 0c652f24d9
No known key found for this signature in database
GPG key ID: 29A48C1F03620416
3 changed files with 4 additions and 5 deletions

View file

@ -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;

View file

@ -65,8 +65,6 @@ mod imp {
#[template_child]
pub stack: TemplateChild<gtk::Stack>,
#[template_child]
pub button_remove_bin: TemplateChild<adw::Bin>,
#[template_child]
pub button_remove: TemplateChild<ActionButton>,
#[template_child]
pub button_edit: TemplateChild<ActionButton>,
@ -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 {

View file

@ -42,7 +42,7 @@
<child type="overlay">
<object class="AdwBin" id="button_remove_bin">
<style>
<class name="cutout-button" />
<class name="cutout" />
</style>
<property name="halign">end</property>
<property name="valign">start</property>
@ -57,7 +57,7 @@
<child type="overlay">
<object class="AdwBin">
<style>
<class name="cutout-button" />
<class name="cutout" />
</style>
<property name="visible" bind-source="ComponentsEditableAvatar" bind-property="editable" bind-flags="sync-create"/>
<property name="halign">end</property>