diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 83a6d0317..8d3580e0e 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -371,18 +371,6 @@ StTooltip StLabel { -boxpointer-gap: 4px } -/* The rounded panel corners we draw don't - * support transitions, so disable transitions - * for the buttons at the left/right edges - */ -#panelActivities { - transition-duration: 0; -} - -#panelStatus { - transition-duration: 0; -} - #panelStatusMenu { spacing: 4px; } diff --git a/js/ui/panel.js b/js/ui/panel.js index b64a1b224..57db12532 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -782,8 +782,10 @@ PanelCorner.prototype = { button = this._findRightmostButton(this._box); if (button) { - if (this._button && this._buttonStyleChangedSignalId) + if (this._button && this._buttonStyleChangedSignalId) { this._button.disconnect(this._buttonStyleChangedSignalId); + this._button.style = null; + } this._button = button; @@ -801,6 +803,10 @@ PanelCorner.prototype = { let pseudoClass = button.get_style_pseudo_class(); this.actor.set_style_pseudo_class(pseudoClass); })); + + // The corner doesn't support theme transitions, so override + // the .panel-button default + button.style = 'transition-duration: 0'; } },