Use transparent backgrounds for show-apps-icon

This commit is contained in:
Tom Perez
2020-05-01 02:31:28 -07:00
parent 595a083201
commit 8019fe8cc1

View File

@@ -1622,12 +1622,17 @@ var ShowAppsIconWrapper = Utils.defineClass({
let customIconPath = Me.settings.get_string('show-apps-icon-file');
this.actor.set_style("background-color: transparent;");
this.realShowAppsIcon.icon.set_style("background-color: transparent;");
this.realShowAppsIcon.icon.createIcon = function(size) {
this._iconActor = new St.Icon({ icon_name: 'view' + (Config.PACKAGE_VERSION < '3.20' ? '' : '-app') + '-grid-symbolic',
icon_size: size,
style_class: 'show-apps-icon',
track_hover: true });
this._iconActor.set_style("background-color: transparent;");
if (customIconPath) {
this._iconActor.gicon = new Gio.FileIcon({ file: Gio.File.new_for_path(customIconPath) });
}