From 8019fe8cc1940362b631cefeddbdd50026756cb0 Mon Sep 17 00:00:00 2001 From: Tom Perez <60866122+tper0700@users.noreply.github.com> Date: Fri, 1 May 2020 02:31:28 -0700 Subject: [PATCH] Use transparent backgrounds for show-apps-icon --- appIcons.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/appIcons.js b/appIcons.js index 3347de4..bf8b0ea 100644 --- a/appIcons.js +++ b/appIcons.js @@ -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) }); }