[gnome-shell] dateMenu: Bottom-align weather title/location
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dateMenu: Bottom-align weather title/location
- Date: Sat, 23 Nov 2019 00:23:05 +0000 (UTC)
commit 18a1435c2563673097b029b6974213a71382e481
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Nov 20 21:48:03 2019 +0100
dateMenu: Bottom-align weather title/location
The two labels use different font sizes, so they don't align properly.
Unfortunately we don't have BASELINE alignment in Clutter, but at least
END comes closer than the default FILL.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/1927
js/ui/dateMenu.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 1c6884e927..0b9c0d932b 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -272,6 +272,7 @@ class WeatherSection extends St.Button {
style_class: 'weather-header',
x_align: Clutter.ActorAlign.START,
x_expand: true,
+ y_align: Clutter.ActorAlign.END,
text: _('Weather'),
}));
box.add_child(titleBox);
@@ -279,6 +280,7 @@ class WeatherSection extends St.Button {
this._titleLocation = new St.Label({
style_class: 'weather-header location',
x_align: Clutter.ActorAlign.END,
+ y_align: Clutter.ActorAlign.END,
});
titleBox.add_child(this._titleLocation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]