editable-avatar: Make cutout style match less generic
This commit is contained in:
parent
d66d527518
commit
0c652f24d9
3 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue