[fractal] Minor style changes to typing notifications
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Minor style changes to typing notifications
- Date: Fri, 15 Mar 2019 11:32:10 +0000 (UTC)
commit 79f02009d5063ee28408c365dba58ca35f0143b6
Author: Christopher Davis <brainblasted disroot org>
Date: Sat Mar 9 16:08:18 2019 -0500
Minor style changes to typing notifications
* In typing notifications with 2 people, bold both names
* Match the size of emotes
fractal-gtk/src/appop/room.rs | 2 +-
fractal-gtk/src/widgets/scroll_widget.rs | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/fractal-gtk/src/appop/room.rs b/fractal-gtk/src/appop/room.rs
index 0004f63f..ec89115b 100644
--- a/fractal-gtk/src/appop/room.rs
+++ b/fractal-gtk/src/appop/room.rs
@@ -540,7 +540,7 @@ impl AppOp {
} else {
let typing_string = ni18n_f(
"<b>{}</b> is typing…",
- "<b>{}</b> and {} are typing…",
+ "<b>{}</b> and <b>{}</b> are typing…",
typing_users.len() as u32,
typing_users
.iter()
diff --git a/fractal-gtk/src/widgets/scroll_widget.rs b/fractal-gtk/src/widgets/scroll_widget.rs
index 870db9f1..031d8e07 100644
--- a/fractal-gtk/src/widgets/scroll_widget.rs
+++ b/fractal-gtk/src/widgets/scroll_widget.rs
@@ -71,10 +71,10 @@ impl Widgets {
let typing_label = gtk::Label::new(None);
typing_label.show();
- typing_label
- .get_style_context()
- .unwrap()
- .add_class("typing_label");
+ typing_label.get_style_context().map(|ctx| {
+ ctx.add_class("typing_label");
+ ctx.add_class("small-font");
+ });
typing_label.set_xalign(0.0);
typing_label.set_property_wrap(true);
typing_label.set_property_wrap_mode(pango::WrapMode::WordChar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]