appIcon: Draw running dot above the overview icon
Prevent the app-well-app-running dot from getting unintentionally hidden behind the overview-icon background by initializing the running-dot after its sibling overview-icon. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/866
This commit is contained in:
parent
e211c68a5c
commit
d4c2f9d0ef
@ -2038,17 +2038,10 @@ var AppIcon = class AppIcon {
|
|||||||
x_fill: true,
|
x_fill: true,
|
||||||
y_fill: true });
|
y_fill: true });
|
||||||
|
|
||||||
this._dot = new St.Widget({ style_class: 'app-well-app-running-dot',
|
|
||||||
layout_manager: new Clutter.BinLayout(),
|
|
||||||
x_expand: true, y_expand: true,
|
|
||||||
x_align: Clutter.ActorAlign.CENTER,
|
|
||||||
y_align: Clutter.ActorAlign.END });
|
|
||||||
|
|
||||||
this._iconContainer = new St.Widget({ layout_manager: new Clutter.BinLayout(),
|
this._iconContainer = new St.Widget({ layout_manager: new Clutter.BinLayout(),
|
||||||
x_expand: true, y_expand: true });
|
x_expand: true, y_expand: true });
|
||||||
|
|
||||||
this.actor.set_child(this._iconContainer);
|
this.actor.set_child(this._iconContainer);
|
||||||
this._iconContainer.add_child(this._dot);
|
|
||||||
|
|
||||||
this.actor._delegate = this;
|
this.actor._delegate = this;
|
||||||
|
|
||||||
@ -2065,6 +2058,16 @@ var AppIcon = class AppIcon {
|
|||||||
this.icon = new IconGrid.BaseIcon(app.get_name(), iconParams);
|
this.icon = new IconGrid.BaseIcon(app.get_name(), iconParams);
|
||||||
this._iconContainer.add_child(this.icon);
|
this._iconContainer.add_child(this.icon);
|
||||||
|
|
||||||
|
this._dot = new St.Widget({
|
||||||
|
style_class: 'app-well-app-running-dot',
|
||||||
|
layout_manager: new Clutter.BinLayout(),
|
||||||
|
x_expand: true,
|
||||||
|
y_expand: true,
|
||||||
|
x_align: Clutter.ActorAlign.CENTER,
|
||||||
|
y_align: Clutter.ActorAlign.END,
|
||||||
|
});
|
||||||
|
this._iconContainer.add_child(this._dot);
|
||||||
|
|
||||||
this.actor.label_actor = this.icon.label;
|
this.actor.label_actor = this.icon.label;
|
||||||
|
|
||||||
this.actor.connect('leave-event', this._onLeaveEvent.bind(this));
|
this.actor.connect('leave-event', this._onLeaveEvent.bind(this));
|
||||||
|
Loading…
Reference in New Issue
Block a user