Commit 1793baba authored by Daniel Garcia Moreno's avatar Daniel Garcia Moreno

Merge branch 'uid_label' into 'master'

Uid label

Closes #318

See merge request World/fractal!233
parents 1e3b6473 e0a91b06
......@@ -297,3 +297,7 @@ stack.titlebar:not(headerbar) > box > separator {
.devel headerbar:last-child > box > label {
color: @theme_fg_color;
}
.small-font {
font-size: small;
}
......@@ -126,11 +126,19 @@ 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("small-font");
style.add_class("dim-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