[gnome-shell] screenShield: Align notifications to the left, not the middle
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] screenShield: Align notifications to the left, not the middle
- Date: Thu, 11 Oct 2012 15:26:13 +0000 (UTC)
commit b3cd46a5c8427d415590f6ac962999b63755a430
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Oct 10 18:07:39 2012 -0300
screenShield: Align notifications to the left, not the middle
With different lengths of text in notifications, icons aren't
aligned and things look ugly. Put notifications on the left
for now.
https://bugzilla.gnome.org/show_bug.cgi?id=685919
js/ui/screenShield.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 3a56d31..c2e1c65 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -95,13 +95,13 @@ const NotificationsBox = new Lang.Class({
this._residentNotificationBox = new St.BoxLayout({ vertical: true,
style_class: 'screen-shield-notifications-box' });
- let scrollView = new St.ScrollView({ x_fill: false, x_align: St.Align.MIDDLE });
+ let scrollView = new St.ScrollView({ x_fill: false, x_align: St.Align.START });
this._persistentNotificationBox = new St.BoxLayout({ vertical: true,
style_class: 'screen-shield-notifications-box' });
scrollView.add_actor(this._persistentNotificationBox);
this.actor.add(this._residentNotificationBox, { x_fill: true });
- this.actor.add(scrollView, { x_fill: true, x_align: St.Align.MIDDLE });
+ this.actor.add(scrollView, { x_fill: true, x_align: St.Align.START });
this._items = [];
Main.messageTray.getSummaryItems().forEach(Lang.bind(this, function(item) {
@@ -153,7 +153,7 @@ const NotificationsBox = new Lang.Class({
box.add(sourceActor.actor, { y_fill: true });
let textBox = new St.BoxLayout({ vertical: true });
- box.add(textBox);
+ box.add(textBox, { y_fill: false, y_align: St.Align.START });
let label = new St.Label({ text: source.title,
style_class: 'screen-shield-notification-label' });
@@ -190,7 +190,7 @@ const NotificationsBox = new Lang.Class({
item.prepareNotificationStackForShowing();
} else {
[obj.sourceBox, obj.countLabel] = this._makeNotificationSource(item.source);
- this._persistentNotificationBox.add(obj.sourceBox, { x_fill: false, x_align: St.Align.MIDDLE });
+ this._persistentNotificationBox.add(obj.sourceBox, { x_fill: false, x_align: St.Align.START });
}
obj.contentUpdatedId = item.connect('content-updated', Lang.bind(this, this._onItemContentUpdated));
@@ -236,7 +236,7 @@ const NotificationsBox = new Lang.Class({
this._residentNotificationBox.remove_actor(obj.item.notificationStackWidget);
[obj.sourceBox, obj.countLabel] = this._makeNotificationSource(obj.source);
- this._persistentNotificationBox.add(obj.sourceBox);
+ this._persistentNotificationBox.add(obj.sourceBox, { x_fill: false, x_align: St.Align.START });
} else if (itemShouldBeResident && !obj.resident) {
// make into a resident item
obj.sourceBox.destroy();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]