Refine notification style
Update the notification style according to the latest mockups: - make notification icons smaller and prefer symbolic variants - remove background box when not hovered/focused - increase spacing between elements - use normal text sizes https://bugzilla.gnome.org/show_bug.cgi?id=775763
This commit is contained in:
@ -20,7 +20,7 @@ const MSECS_IN_DAY = 24 * 60 * 60 * 1000;
|
||||
const SHOW_WEEKDATE_KEY = 'show-weekdate';
|
||||
const ELLIPSIS_CHAR = '\u2026';
|
||||
|
||||
const MESSAGE_ICON_SIZE = 32;
|
||||
const MESSAGE_ICON_SIZE = 16;
|
||||
|
||||
// alias to prevent xgettext from picking up strings translated in GTK+
|
||||
const gtk30_ = Gettext_gtk30.gettext;
|
||||
@ -958,7 +958,8 @@ const NotificationSection = new Lang.Class({
|
||||
|
||||
_createTimeLabel: function(datetime) {
|
||||
let label = new St.Label({ style_class: 'event-time',
|
||||
x_align: Clutter.ActorAlign.START });
|
||||
x_align: Clutter.ActorAlign.START,
|
||||
y_align: Clutter.ActorAlign.END });
|
||||
label.connect('notify::mapped', () => {
|
||||
if (label.mapped)
|
||||
label.text = Util.formatTimeSpan(datetime);
|
||||
|
@ -318,6 +318,7 @@ const Message = new Lang.Class({
|
||||
|
||||
this._iconBin = new St.Bin({ style_class: 'message-icon-bin',
|
||||
y_expand: true,
|
||||
y_align: St.Align.START,
|
||||
visible: false });
|
||||
hbox.add_actor(this._iconBin);
|
||||
|
||||
|
Reference in New Issue
Block a user