[gnome-shell/wip/fmuellner/dont-disturb: 2/3] dateMenu: Add some spacing between date and indicator
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/dont-disturb: 2/3] dateMenu: Add some spacing between date and indicator
- Date: Tue, 21 Jan 2020 15:46:22 +0000 (UTC)
commit a557dd68f68e20af89a91234bfb302d7e78c10f1
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jan 17 17:41:49 2020 +0100
dateMenu: Add some spacing between date and indicator
While the existing dot doesn't necessarily need padding, we are about
to (sometimes) showing a "proper" icon there.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/239
data/theme/gnome-shell-sass/widgets/_calendar.scss | 4 +++-
js/ui/dateMenu.js | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/widgets/_calendar.scss
b/data/theme/gnome-shell-sass/widgets/_calendar.scss
index 2e2495c5fb..e1bb0e5697 100644
--- a/data/theme/gnome-shell-sass/widgets/_calendar.scss
+++ b/data/theme/gnome-shell-sass/widgets/_calendar.scss
@@ -1,5 +1,7 @@
/* Date/Time Menu */
+.clock-display-box { spacing: $base_spacing; }
+
// overall menu
#calendarArea {
padding:0;
@@ -263,4 +265,4 @@
font-feature-settings: "tnum";
@include fontsize($base_font_size - 1);
}
-}
\ No newline at end of file
+}
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 005cc7d8e2..d8571d31c4 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -561,7 +561,7 @@ class DateMenuButton extends PanelMenu.Button {
this._clockDisplay = new St.Label({ y_align: Clutter.ActorAlign.CENTER });
this._indicator = new MessagesIndicator();
- let box = new St.BoxLayout();
+ let box = new St.BoxLayout({ style_class: 'clock-display-box' });
box.add_actor(new IndicatorPad(this._indicator));
box.add_actor(this._clockDisplay);
box.add_actor(this._indicator);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]