Skip to content

Commit

Permalink
alt-tab: Rework minimized windows
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
clefebvre committed Nov 24, 2024
1 parent a0ee3d2 commit 5b6bdf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion data/org.cinnamon.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
</key>

<key type="b" name="alttab-minimized-aware">
<default>false</default>
<default>true</default>
<summary>Move minimized windows to the end of the appSwitcher</summary>
</key>

Expand Down
10 changes: 3 additions & 7 deletions js/ui/appSwitcher/classicSwitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b6bdf3

Please sign in to comment.