account_settings: Use .property style class in rows from user page
Closes https://gitlab.gnome.org/GNOME/fractal/-/issues/1301
This commit is contained in:
parent
a9ac0d482c
commit
8292b2e37d
2 changed files with 18 additions and 36 deletions
|
@ -46,11 +46,11 @@ mod imp {
|
|||
#[template_child]
|
||||
pub change_password_subpage: TemplateChild<ChangePasswordSubpage>,
|
||||
#[template_child]
|
||||
pub homeserver: TemplateChild<gtk::Label>,
|
||||
pub homeserver: TemplateChild<adw::ActionRow>,
|
||||
#[template_child]
|
||||
pub user_id: TemplateChild<gtk::Label>,
|
||||
pub user_id: TemplateChild<adw::ActionRow>,
|
||||
#[template_child]
|
||||
pub session_id: TemplateChild<gtk::Label>,
|
||||
pub session_id: TemplateChild<adw::ActionRow>,
|
||||
#[template_child]
|
||||
pub deactivate_account_subpage: TemplateChild<DeactivateAccountSubpage>,
|
||||
#[template_child]
|
||||
|
@ -162,13 +162,13 @@ impl UserPage {
|
|||
let client = obj.session().unwrap().client();
|
||||
|
||||
let homeserver = client.homeserver();
|
||||
imp.homeserver.set_label(homeserver.as_ref());
|
||||
imp.homeserver.set_subtitle(homeserver.as_ref());
|
||||
|
||||
let user_id = client.user_id().unwrap();
|
||||
imp.user_id.set_label(user_id.as_ref());
|
||||
imp.user_id.set_subtitle(user_id.as_ref());
|
||||
|
||||
let session_id = client.device_id().unwrap();
|
||||
imp.session_id.set_label(session_id.as_ref());
|
||||
imp.session_id.set_subtitle(session_id.as_ref());
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
|
@ -59,45 +59,27 @@
|
|||
<object class="AdwPreferencesGroup">
|
||||
<property name="title" translatable="yes">Advanced Information</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<object class="AdwActionRow" id="homeserver">
|
||||
<property name="title" translatable="yes">Homeserver</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="homeserver">
|
||||
<style>
|
||||
<class name="dim-label"/>
|
||||
<class name="property"/>
|
||||
</style>
|
||||
<property name="ellipsize">end</property>
|
||||
<property name="selectable">true</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<object class="AdwActionRow" id="user_id">
|
||||
<property name="title" translatable="yes">Matrix User ID</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="user_id">
|
||||
<style>
|
||||
<class name="dim-label"/>
|
||||
<class name="property"/>
|
||||
</style>
|
||||
<property name="ellipsize">end</property>
|
||||
<property name="selectable">true</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<object class="AdwActionRow" id="session_id">
|
||||
<property name="title" translatable="yes">Session ID</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="session_id">
|
||||
<style>
|
||||
<class name="dim-label"/>
|
||||
<class name="property"/>
|
||||
</style>
|
||||
<property name="ellipsize">end</property>
|
||||
<property name="selectable">true</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
|
Loading…
Reference in a new issue