mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Adjust to BaseIcon's new squared allocation
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user