mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
Immediately reflect margin / panel size changes #102
This commit is contained in:
10
appIcons.js
10
appIcons.js
@@ -144,8 +144,6 @@ var taskbarAppIcon = new Lang.Class({
|
||||
this._dtpSettings.connect('changed::dot-color-unfocused-4', Lang.bind(this, this._settingsChangeRefresh));
|
||||
this._dtpSettings.connect('changed::focus-highlight', Lang.bind(this, this._settingsChangeRefresh));
|
||||
|
||||
this._dtpSettings.connect('changed::appicon-margin', Lang.bind(this, this._setIconStyle));
|
||||
|
||||
this.windowPreview = null;
|
||||
|
||||
this.forcedOverview = false;
|
||||
@@ -357,7 +355,7 @@ var taskbarAppIcon = new Lang.Class({
|
||||
containerWidth + "px " +
|
||||
(containerWidth - (pos == DOT_POSITION.BOTTOM ? highlightMargin : 0)) + "px;";
|
||||
}
|
||||
|
||||
|
||||
// graphical glitches if i dont set this on a timeout
|
||||
if(this.actor.get_style() != inlineStyle)
|
||||
Mainloop.timeout_add(0, Lang.bind(this, function() { this.actor.set_style(inlineStyle); }));
|
||||
@@ -418,6 +416,8 @@ var taskbarAppIcon = new Lang.Class({
|
||||
},
|
||||
|
||||
_displayProperIndicator: function (force) {
|
||||
this._setIconStyle();
|
||||
|
||||
let containerWidth = this._iconContainer.get_width();
|
||||
let isFocused = (tracker.focus_app == this.app);
|
||||
let focusedDotStyle = this._dtpSettings.get_string('dot-style-focused');
|
||||
@@ -425,8 +425,6 @@ var taskbarAppIcon = new Lang.Class({
|
||||
let focusedIsWide = this._isWideDotStyle(focusedDotStyle);
|
||||
let unfocusedIsWide = this._isWideDotStyle(unfocusedDotStyle);
|
||||
|
||||
this._setIconStyle();
|
||||
|
||||
let newFocusedDotsWidth = 0;
|
||||
let newFocusedDotsOpacity = 0;
|
||||
let newUnfocusedDotsWidth = 0;
|
||||
@@ -756,7 +754,7 @@ var taskbarAppIcon = new Lang.Class({
|
||||
cr.rectangle(0, 0, width, size);
|
||||
cr.fill();
|
||||
}
|
||||
|
||||
|
||||
cr.$dispose();
|
||||
},
|
||||
|
||||
|
||||
5
panel.js
5
panel.js
@@ -295,6 +295,11 @@ var dtpPanel = new Lang.Class({
|
||||
|
||||
this._dtpSettings.connect('changed::panel-size', Lang.bind(this, function() {
|
||||
this._setPanelPosition();
|
||||
this.taskbar.resetAppIcons();
|
||||
}));
|
||||
|
||||
this._dtpSettings.connect('changed::appicon-margin', Lang.bind(this, function() {
|
||||
this.taskbar.resetAppIcons();
|
||||
}));
|
||||
|
||||
this._dtpSettings.connect('changed::show-activities-button', Lang.bind(this, function() {
|
||||
|
||||
Reference in New Issue
Block a user