Adding Hosts icon (#21227)
* Adding Hosts icon * assets added to setup Co-authored-by: Davide <davide.giacometti@outlook.it>
BIN
src/modules/Hosts/Hosts/Assets/AppList.scale-100.png
Normal file
|
After Width: | Height: | Size: 657 B |
BIN
src/modules/Hosts/Hosts/Assets/AppList.scale-125.png
Normal file
|
After Width: | Height: | Size: 878 B |
BIN
src/modules/Hosts/Hosts/Assets/AppList.scale-150.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/modules/Hosts/Hosts/Assets/AppList.scale-200.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/modules/Hosts/Hosts/Assets/AppList.scale-400.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
src/modules/Hosts/Hosts/Assets/Hosts.ico
Normal file
|
After Width: | Height: | Size: 143 KiB |
@@ -19,11 +19,15 @@
|
||||
<RootNamespace>Hosts</RootNamespace>
|
||||
<AssemblyName>PowerToys.Hosts</AssemblyName>
|
||||
<DefineConstants>DISABLE_XAML_GENERATED_MAIN,TRACE</DefineConstants>
|
||||
<ApplicationIcon>icon.ico</ApplicationIcon>
|
||||
<ApplicationIcon>Assets/Hosts.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="icon.ico" />
|
||||
<None Remove="Assets\AppList.scale-100.png" />
|
||||
<None Remove="Assets\AppList.scale-125.png" />
|
||||
<None Remove="Assets\AppList.scale-150.png" />
|
||||
<None Remove="Assets\AppList.scale-200.png" />
|
||||
<None Remove="Assets\AppList.scale-400.png" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<winuiex:WindowEx
|
||||
x:Uid="Window"
|
||||
x:Class="Hosts.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
@@ -8,6 +7,7 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:views="using:Hosts.Views"
|
||||
xmlns:winuiex="using:WinUIEx"
|
||||
x:Uid="Window"
|
||||
Width="680"
|
||||
MinWidth="480"
|
||||
MinHeight="320"
|
||||
@@ -25,9 +25,10 @@
|
||||
Margin="16,8,8,8"
|
||||
VerticalAlignment="Top"
|
||||
Orientation="Horizontal">
|
||||
<TextBlock FontFamily="{ThemeResource SymbolThemeFontFamily}" Text="" />
|
||||
<Image Source="Assets/AppList.png" />
|
||||
<TextBlock
|
||||
Margin="12,0,0,0"
|
||||
FontSize="12"
|
||||
Style="{StaticResource CaptionTextBlockStyle}"
|
||||
Text="Hosts File Editor" />
|
||||
</StackPanel>
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Hosts
|
||||
var hWnd = WinRT.Interop.WindowNative.GetWindowHandle(this);
|
||||
WindowId windowId = Win32Interop.GetWindowIdFromWindow(hWnd);
|
||||
AppWindow appWindow = AppWindow.GetFromWindowId(windowId);
|
||||
appWindow.SetIcon("icon.ico");
|
||||
appWindow.SetIcon("Assets/Hosts.ico");
|
||||
|
||||
if (ThemeHelpers.GetAppTheme() == AppTheme.Dark)
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 52 KiB |