Add MGET app branding assets

This commit is contained in:
Ray Berezowski
2026-06-02 20:15:27 -04:00
parent 0567b796e0
commit cf9aa63982
6 changed files with 17 additions and 12 deletions

View File

@@ -28,17 +28,10 @@
Background="{DynamicResource AppSurfaceBrush}" Background="{DynamicResource AppSurfaceBrush}"
HorizontalAlignment="Left" HorizontalAlignment="Left"
VerticalAlignment="Top"> VerticalAlignment="Top">
<Grid> <Image Source="Assets/AboutLogo.png"
<TextBlock Text="MGET" Width="74"
FontSize="22" Height="74"
FontWeight="Bold" Stretch="UniformToFill"/>
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{DynamicResource AppAccentBrush}"/>
<Border Height="8"
VerticalAlignment="Bottom"
Background="{DynamicResource AppAccentBrush}"/>
</Grid>
</Border> </Border>
<StackPanel Grid.Column="1" VerticalAlignment="Center"> <StackPanel Grid.Column="1" VerticalAlignment="Center">

BIN
Assets/AboutLogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 KiB

BIN
Assets/AppIcon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

BIN
Assets/TrayIcon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

View File

@@ -90,7 +90,7 @@ public sealed class LauncherController : IDisposable
notifyIcon = new NotifyIcon notifyIcon = new NotifyIcon
{ {
Text = "Taskbar Launcher", Text = "Taskbar Launcher",
Icon = SystemIcons.Application, Icon = LoadTrayIcon(),
Visible = true, Visible = true,
ContextMenuStrip = new ContextMenuStrip() ContextMenuStrip = new ContextMenuStrip()
}; };
@@ -104,6 +104,12 @@ public sealed class LauncherController : IDisposable
notifyIcon.ContextMenuStrip.Items.Add("Exit", null, (_, _) => System.Windows.Application.Current.Shutdown()); notifyIcon.ContextMenuStrip.Items.Add("Exit", null, (_, _) => System.Windows.Application.Current.Shutdown());
} }
private static Icon LoadTrayIcon()
{
string iconPath = Path.Combine(AppContext.BaseDirectory, "Assets", "TrayIcon.ico");
return File.Exists(iconPath) ? new Icon(iconPath) : SystemIcons.Application;
}
private void LaunchItem(LauncherItem item) private void LaunchItem(LauncherItem item)
{ {
if (item.Type == LauncherItemType.Menu || string.IsNullOrWhiteSpace(item.Target)) if (item.Type == LauncherItemType.Menu || string.IsNullOrWhiteSpace(item.Target))

View File

@@ -10,10 +10,16 @@
<DefaultItemExcludes>$(DefaultItemExcludes);bin\**;obj\**;builds\**;_*\**;..\TaskbarLauncher-build\**</DefaultItemExcludes> <DefaultItemExcludes>$(DefaultItemExcludes);bin\**;obj\**;builds\**;_*\**;..\TaskbarLauncher-build\**</DefaultItemExcludes>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> <IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Authors>Ray Berezowski</Authors> <Authors>Ray Berezowski</Authors>
<ApplicationIcon>Assets\AppIcon.ico</ApplicationIcon>
<Version>1.0.0</Version> <Version>1.0.0</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion> <AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion> <FileVersion>1.0.0.0</FileVersion>
<InformationalVersion>1.0.0</InformationalVersion> <InformationalVersion>1.0.0</InformationalVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<Content Include="Assets\AboutLogo.png" CopyToOutputDirectory="PreserveNewest" />
<Content Include="Assets\TrayIcon.ico" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project> </Project>