mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
GUI桌面环境
This commit is contained in:
22
Gui/ShellComponents/Dock/AppDockIcon.cs
Normal file
22
Gui/ShellComponents/Dock/AppDockIcon.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using CMLeonOS;
|
||||
using CMLeonOS.Gui.UILib;
|
||||
|
||||
namespace CMLeonOS.Gui.ShellComponents.Dock
|
||||
{
|
||||
internal class AppDockIcon : BaseDockIcon
|
||||
{
|
||||
internal AppDockIcon(AppWindow appWindow) : base(
|
||||
image: appWindow.Icon,
|
||||
doAnimation: true)
|
||||
{
|
||||
AppWindow = appWindow;
|
||||
}
|
||||
|
||||
internal AppWindow AppWindow { get; init; }
|
||||
|
||||
internal override void Clicked()
|
||||
{
|
||||
ProcessManager.GetProcess<WindowManager>().Focus = AppWindow;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user