Skip to content

Commit

Permalink
add: project logo image
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvenBless committed Sep 17, 2024
1 parent 8ce5301 commit 41ef16e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 22 deletions.
Binary file added Source/StaX.Desktop/Assets/StaXBlack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Source/StaX.Desktop/Assets/StaXWhite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion Source/StaX.Desktop/StaX.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
<ItemGroup>
<AvaloniaResource Include="Assets\**" />
</ItemGroup>

<ItemGroup>
<None Remove="Assets\StaX.ico" />
</ItemGroup>

<ItemGroup>
<Content Include="Assets\StaX.ico" />
<Content Include="Assets\StaXBlack.png" />
<Content Include="Assets\StaXWhite.png" />
</ItemGroup>

<ItemGroup>
Expand Down
23 changes: 11 additions & 12 deletions Source/StaX.Desktop/Views/MainAppSplashContent.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,42 @@

<UserControl.Resources>
<ResourceDictionary>
<!--<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<ImageBrush
x:Key="LogoImageBrush"
AlignmentY="Center"
Source="/Assets/BlackLogo.png"
Source="/Assets/StaXBlack.png"
Stretch="UniformToFill" />
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<ImageBrush
x:Key="LogoImageBrush"
AlignmentY="Center"
Source="/Assets/Logo.png"
Source="/Assets/StaXWhite.png"
Stretch="UniformToFill" />
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>-->
</ResourceDictionary.ThemeDictionaries>
<ui:ImageIconSource x:Key="AppLogo" Source="/Assets/StaX.ico" />
</ResourceDictionary>
</UserControl.Resources>

<Panel Background="{DynamicResource ApplicationPageBackgroundThemeBrush}">
<Border
Width="892"
Height="174"
Width="900"
Height="200"
Background="{DynamicResource LogoImageBrush}"
ClipToBounds="True"
CornerRadius="8 0 0 0"
RenderOptions.BitmapInterpolationMode="HighQuality" />

<!-- Background="{DynamicResource LogoImageBrush}" -->

<ui:IconSourceElement
Width="150"
Height="150"
Margin="-920,0,0,-100"
Width="170"
Height="170"
Margin="-900,0,0,-140"
IconSource="{StaticResource AppLogo}" />
<Grid
Margin="0,0,0,-120"
Margin="0,0,0,-140"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<ui:ItemsRepeater ItemsSource="{Binding PluginLoaderVisualizator.Icons}">
Expand Down
2 changes: 1 addition & 1 deletion Source/StaX.Desktop/Views/MainAppSplashScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public PluginLoaderVisualizator PluginLoaderVisualizator
DataContext = this,
};

public int MinimumShowTime => 1000;
public int MinimumShowTime => 1200;

public Action? InitApp { get; set; }

Expand Down
16 changes: 8 additions & 8 deletions Source/StaX.Desktop/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@
Margin="0"
FontSize="21"
Symbol="WeatherMoon" />
<!--<ImageBrush
<ImageBrush
x:Key="LogoImageBrush"
AlignmentY="Center"
Source="/Assets/BlackLogo.png"
Stretch="UniformToFill" />-->
Source="/Assets/StaXBlack.png"
Stretch="UniformToFill" />
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<ui:SymbolIcon
x:Key="ThemeIcon"
Margin="0"
FontSize="21"
Symbol="WeatherSunny" />
<!--<ImageBrush
<ImageBrush
x:Key="LogoImageBrush"
AlignmentY="Center"
Source="/Assets/Logo.png"
Stretch="UniformToFill" />-->
Source="/Assets/StaXWhite.png"
Stretch="UniformToFill" />
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
<ui:ImageIconSource x:Key="AppLogo" Source="/Assets/StaX.ico" />
Expand All @@ -58,12 +58,12 @@
<Grid>
<Panel Background="{DynamicResource ApplicationPageBackgroundThemeBrush}" Opacity="0.05">
<Border
Width="892"
Width="822"
Height="174"
Background="{DynamicResource LogoImageBrush}"
ClipToBounds="True"
CornerRadius="8 0 0 0"
RenderOptions.BitmapInterpolationMode="HighQuality" />
<!-- Background="{DynamicResource LogoImageBrush}" -->
</Panel>
<ui:NavigationView
x:Name="nvSample"
Expand Down

0 comments on commit 41ef16e

Please sign in to comment.