mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Merge branch 'dev' into hoverfix
This commit is contained in:
21
panel.js
21
panel.js
@@ -291,8 +291,27 @@ const dtpPanel = new Lang.Class({
|
||||
|
||||
Main.overview._panelGhost.set_height(isTop ? size : 0);
|
||||
this._myPanelGhost.set_height(isTop ? 0 : size);
|
||||
isTop ? this.panelBox.set_anchor_point(0, 0) :
|
||||
|
||||
|
||||
if(isTop) {
|
||||
this.panelBox.set_anchor_point(0, 0);
|
||||
|
||||
// styles for theming
|
||||
if(this.panel.actor.has_style_class_name('dashtopanelBottom'))
|
||||
this.panel.actor.remove_style_class_name('dashtopanelBottom');
|
||||
|
||||
if(!this.panel.actor.has_style_class_name('dashtopanelTop'))
|
||||
this.panel.actor.add_style_class_name('dashtopanelTop');
|
||||
} else {
|
||||
this.panelBox.set_anchor_point(0,(-1)*(Main.layoutManager.primaryMonitor.height-this.panelBox.height));
|
||||
|
||||
// styles for theming
|
||||
if(this.panel.actor.has_style_class_name('dashtopanelTop'))
|
||||
this.panel.actor.remove_style_class_name('dashtopanelTop');
|
||||
|
||||
if(!this.panel.actor.has_style_class_name('dashtopanelBottom'))
|
||||
this.panel.actor.add_style_class_name('dashtopanelBottom');
|
||||
}
|
||||
},
|
||||
|
||||
_setActivitiesButtonVisible: function(isVisible) {
|
||||
|
||||
@@ -1360,6 +1360,7 @@ const taskbarAppIcon = new Lang.Class({
|
||||
_onFocusAppChanged: function() {
|
||||
if(tracker.focus_app == this.app) {
|
||||
this._dot.opacity = 255;
|
||||
this.actor.add_style_class_name('focused');
|
||||
Tweener.addTween(this._dot,
|
||||
{ width: this._iconContainer.get_width(),
|
||||
height: RUNNING_INDICATOR_SIZE,
|
||||
@@ -1373,6 +1374,7 @@ const taskbarAppIcon = new Lang.Class({
|
||||
});
|
||||
} else {
|
||||
this._dot.opacity = 255;
|
||||
this.actor.remove_style_class_name('focused');
|
||||
Tweener.addTween(this._dot,
|
||||
{ width: 0,
|
||||
height: RUNNING_INDICATOR_SIZE,
|
||||
|
||||
Reference in New Issue
Block a user