minimize applet (#217)

* chore: add minimize applet skeleton

* fix(minimize): desktop typo

* wip: minimize applet

* feat: include window images, and overlay their icon

* cleanup

* fix: add minimize applet to workspace

* chore: add host wayland display to desktop file for minimize applet

* chore: Cargo.lock

* cleanup: fix typos

* fix: don't hide minimized apps in app-list
This commit is contained in:
Ashley Wulber 2024-03-04 13:08:52 -05:00 committed by GitHub
parent 06634c3348
commit 090bb9653f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 1301 additions and 4 deletions

View file

@ -0,0 +1,15 @@
[Desktop Entry]
Name=Cosmic Applet Minimize Windows
Comment=Applet for Cosmic Panel
Type=Application
Exec=cosmic-applet-minimize
Terminal=false
Categories=Cosmic;Iced;
Keywords=Cosmic;Iced;
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=com.system76.CosmicAppletMinimize
StartupNotify=true
NoDisplay=true
X-CosmicApplet=true
X-MinimizeApplet=true
X-HostWaylandDisplay=true

View file

@ -0,0 +1,29 @@
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Size=256">
<rect id="Rectangle 418" x="8" y="40" width="240" height="176" rx="16" fill="url(#paint0_linear_2049_378)"/>
<rect id="Rectangle 419" x="24" y="94" width="96" height="68" rx="8" fill="white"/>
<rect id="Rectangle 439" x="136" y="94" width="96" height="68" rx="8" fill="white"/>
<circle id="Ellipse 25" cx="112" cy="102" r="4" fill="#229FAD"/>
<circle id="Ellipse 28" cx="224" cy="102" r="4" fill="#229FAD"/>
<circle id="Ellipse 26" cx="102" cy="102" r="4" fill="#229FAD"/>
<circle id="Ellipse 29" cx="214" cy="102" r="4" fill="#229FAD"/>
<circle id="Ellipse 27" cx="92" cy="102" r="4" fill="#229FAD"/>
<circle id="Ellipse 30" cx="204" cy="102" r="4" fill="#229FAD"/>
<rect id="Rectangle 440" x="92" y="138" width="32" height="32" rx="8" fill="url(#paint1_linear_2049_378)"/>
<rect id="Rectangle 441" x="204" y="139" width="32" height="32" rx="8" fill="url(#paint2_linear_2049_378)"/>
</g>
<defs>
<linearGradient id="paint0_linear_2049_378" x1="248" y1="40" x2="6.11676" y2="213.373" gradientUnits="userSpaceOnUse">
<stop stop-color="#49BAC8"/>
<stop offset="1" stop-color="#229FAD"/>
</linearGradient>
<linearGradient id="paint1_linear_2049_378" x1="92" y1="170" x2="124.659" y2="138.687" gradientUnits="userSpaceOnUse">
<stop stop-color="#DDC74C"/>
<stop offset="1" stop-color="#F7E062"/>
</linearGradient>
<linearGradient id="paint2_linear_2049_378" x1="204" y1="171" x2="236.659" y2="139.687" gradientUnits="userSpaceOnUse">
<stop stop-color="#C48400"/>
<stop offset="1" stop-color="#FFAD00"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB