Adjust to BaseIcon's new squared allocation

This commit is contained in:
Charles Gagnon
2018-10-12 09:12:48 -04:00
parent 55da36895b
commit b8ab43fd5d
2 changed files with 15 additions and 11 deletions

View File

@@ -135,6 +135,10 @@ var taskbarAppIcon = new Lang.Class({
this._dotsContainer = new St.Widget({ layout_manager: new Clutter.BinLayout() });
this.actor.remove_actor(this._iconContainer);
let iconContainer = new St.Widget({ name: 'icon-container', layout_manager: new Clutter.BinLayout() });
iconContainer.add_child(this._iconContainer);
if (appInfo.window) {
let box = new St.BoxLayout();
@@ -150,12 +154,12 @@ var taskbarAppIcon = new Lang.Class({
this._scaleFactorChangedId = St.ThemeContext.get_for_stage(global.stage).connect('changed', () => this._updateWindowTitleStyle());
box.add_child(this._iconContainer);
box.add_child(iconContainer);
box.add_child(this._windowTitle);
this._dotsContainer.add_child(box);
} else {
this._dotsContainer.add_child(this._iconContainer);
this._dotsContainer.add_child(iconContainer);
}
this._container.add_child(this._dotsContainer);

View File

@@ -21,23 +21,23 @@
* Some code was also adapted from the upstream Gnome Shell source code.
*/
#dashtopanelScrollview .app-well-app .overview-icon {
#dashtopanelScrollview .app-well-app .overview-icon {
border-radius: 0;
border: none;
padding: 2px 6px;
padding: 2px;
}
#dashtopanelScrollview .app-well-app #icon-container {
padding: 0 4px 0 6px;
}
#dashtopanelScrollview .app-well-app .overview-label {
padding-right: 8px;
}
#show-apps-btn {
margin: 0;
padding: 0;
}
#show-apps-btn .overview-icon {
padding: 2px 8px;
#show-apps-btn, #show-apps-btn .overview-icon {
margin: 0px;
padding: 0px;
}
#dashtopanelScrollview .app-well-app:hover .overview-icon,