From 5b6bdf306955c26663121b14106e1181fb3474a1 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Sun, 24 Nov 2024 16:23:36 +0000 Subject: [PATCH] alt-tab: Rework minimized windows - Don't use [] notation (hard to read, not intuitive) - Move them to the end of the list so they don't get in the way - Apply the contrast effect to the title as well to make it more noticeable --- data/org.cinnamon.gschema.xml | 2 +- js/ui/appSwitcher/classicSwitcher.js | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/data/org.cinnamon.gschema.xml b/data/org.cinnamon.gschema.xml index db44b49bfd..18d1a75dd7 100644 --- a/data/org.cinnamon.gschema.xml +++ b/data/org.cinnamon.gschema.xml @@ -414,7 +414,7 @@ - false + true Move minimized windows to the end of the appSwitcher diff --git a/js/ui/appSwitcher/classicSwitcher.js b/js/ui/appSwitcher/classicSwitcher.js index 4af8c01c14..4ea9ab0021 100644 --- a/js/ui/appSwitcher/classicSwitcher.js +++ b/js/ui/appSwitcher/classicSwitcher.js @@ -419,16 +419,12 @@ AppIcon.prototype = { this.actor.add(this._iconBin, { x_fill: false, y_fill: false } ); let title = window.get_title(); if (title) { + this.label = new St.Label({ text: title }); if (window.minimized) { - this.label = new St.Label({ text: "[" + title + "]"}); - let contrast_effect = new Clutter.BrightnessContrastEffect(); + let contrast_effect = new Clutter.BrightnessContrastEffect(); contrast_effect.set_brightness_full(-0.5, -0.5, -0.5); - this._iconBin.add_effect(contrast_effect); + this.actor.add_effect(contrast_effect); } - else { - this.label = new St.Label({ text: title }); - } - let bin = new St.Bin({ x_align: St.Align.MIDDLE }); bin.add_actor(this.label); this.actor.add(bin);