Commit 03e4da2e authored by Rasmus Rendal's avatar Rasmus Rendal

Added a label to the members list which shows MXID's

parent 1e3b6473
......@@ -297,3 +297,8 @@ stack.titlebar:not(headerbar) > box > separator {
.devel headerbar:last-child > box > label {
color: @theme_fg_color;
}
.uid-label {
color: grey;
font-size: small;
}
......@@ -126,11 +126,18 @@ fn load_row_content(member: Member) -> gtk::Box {
avatar.circle(member.uid.clone(), member.alias.clone(), 40);
let user_box = gtk::Box::new(gtk::Orientation::Vertical, 0);
let username = gtk::Label::new(Some(member.get_alias().as_str()));
let uid = gtk::Label::new(Some(member.uid.as_str()));
username.set_xalign(0.);
uid.set_xalign(0.);
if let Some(style) = uid.get_style_context() {
style.add_class("uid-label");
}
b.set_margin_start(12);
b.set_margin_end(12);
b.set_margin_top(6);
b.set_margin_bottom(6);
user_box.pack_start(&username, true, true, 0);
user_box.pack_start(&uid, false, false, 0);
/* we don't have this state yet
* let state = gtk::Label::new();
* user_box.pack_end(&state, true, true, 0); */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment