Skip to content

Commit

Permalink
Update Logo and Fix the adaptive behavior of the taskbar
Browse files Browse the repository at this point in the history
  • Loading branch information
SQc04 committed Mar 23, 2024
1 parent 03af1eb commit 3971208
Show file tree
Hide file tree
Showing 65 changed files with 161 additions and 46 deletions.
Binary file modified Assets/BadgeLogo.scale-100.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 modified Assets/BadgeLogo.scale-125.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 modified Assets/BadgeLogo.scale-150.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 modified Assets/BadgeLogo.scale-200.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 modified Assets/BadgeLogo.scale-400.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 Assets/FSFSoft.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 Assets/FSFSoftLogo.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 Assets/FSFSoftLogo.scale-100.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 Assets/FSFSoftLogo.scale-125.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 Assets/FSFSoftLogo.scale-150.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 Assets/FSFSoftLogo.scale-200.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 Assets/FSFSoftLogo.scale-400.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 modified Assets/LargeTile.scale-100.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 modified Assets/LargeTile.scale-125.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 modified Assets/LargeTile.scale-150.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 modified Assets/LargeTile.scale-200.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 modified Assets/LargeTile.scale-400.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 modified Assets/SmallTile.scale-100.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 modified Assets/SmallTile.scale-125.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 modified Assets/SmallTile.scale-150.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 modified Assets/SmallTile.scale-200.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 modified Assets/SmallTile.scale-400.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 modified Assets/SplashScreen.scale-100.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 modified Assets/SplashScreen.scale-125.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 modified Assets/SplashScreen.scale-150.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 modified Assets/SplashScreen.scale-200.png
Binary file modified Assets/SplashScreen.scale-400.png
Binary file modified Assets/Square150x150Logo.scale-100.png
Binary file modified Assets/Square150x150Logo.scale-125.png
Binary file modified Assets/Square150x150Logo.scale-150.png
Binary file modified Assets/Square150x150Logo.scale-200.png
Binary file modified Assets/Square150x150Logo.scale-400.png
Binary file modified Assets/Square44x44Logo.altform-lightunplated_targetsize-16.png
Binary file modified Assets/Square44x44Logo.altform-lightunplated_targetsize-24.png
Binary file modified Assets/Square44x44Logo.altform-lightunplated_targetsize-256.png
Binary file modified Assets/Square44x44Logo.altform-lightunplated_targetsize-32.png
Binary file modified Assets/Square44x44Logo.altform-lightunplated_targetsize-48.png
Binary file modified Assets/Square44x44Logo.altform-unplated_targetsize-16.png
Binary file modified Assets/Square44x44Logo.altform-unplated_targetsize-256.png
Binary file modified Assets/Square44x44Logo.altform-unplated_targetsize-32.png
Binary file modified Assets/Square44x44Logo.altform-unplated_targetsize-48.png
Binary file modified Assets/Square44x44Logo.scale-100.png
Binary file modified Assets/Square44x44Logo.scale-125.png
Binary file modified Assets/Square44x44Logo.scale-150.png
Binary file modified Assets/Square44x44Logo.scale-200.png
Binary file modified Assets/Square44x44Logo.scale-400.png
Binary file modified Assets/Square44x44Logo.targetsize-16.png
Binary file modified Assets/Square44x44Logo.targetsize-24.png
Binary file modified Assets/Square44x44Logo.targetsize-24_altform-unplated.png
Binary file modified Assets/Square44x44Logo.targetsize-256.png
Binary file modified Assets/Square44x44Logo.targetsize-32.png
Binary file modified Assets/Square44x44Logo.targetsize-48.png
Binary file modified Assets/Wide310x150Logo.scale-100.png
Binary file modified Assets/Wide310x150Logo.scale-125.png
Binary file modified Assets/Wide310x150Logo.scale-150.png
Binary file modified Assets/Wide310x150Logo.scale-200.png
Binary file modified Assets/Wide310x150Logo.scale-400.png
Binary file added FSFSoft.ico
Binary file not shown.
Binary file added FSFSoftH.ico
Binary file not shown.
13 changes: 10 additions & 3 deletions FSGaryityTool_Win11.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<DefaultLanguage>zh-cn</DefaultLanguage>
<PackageCertificateThumbprint>44A69BF79CCE3D4449484E6D059292A4AABE7E63</PackageCertificateThumbprint>
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
<ApplicationIcon>FSSoftH.ico</ApplicationIcon>
<ApplicationIcon>FSFSoftH.ico</ApplicationIcon>
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
<LangVersion>11.0</LangVersion>
<PackageIcon>SmallTile.scale-400.png</PackageIcon>
Expand All @@ -33,7 +33,7 @@
<requireLicenseAcceptance>flase</requireLicenseAcceptance>
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
<AppxPackageDir>D:\I\FAIRING STUDIO\FSSoftware\FSGarvityTool\FSGaryityTool_Win11\bin\win10-x64\publish\x64-Pkg\</AppxPackageDir>
<AppxSymbolPackageEnabled>False</AppxSymbolPackageEnabled>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
Expand All @@ -42,6 +42,12 @@
<Version />
</PropertyGroup>
<ItemGroup>
<Content Remove="Assets\FSFSoft.png" />
<Content Remove="Assets\FSFSoftLogo.scale-100.png" />
<Content Remove="Assets\FSFSoftLogo.scale-125.png" />
<Content Remove="Assets\FSFSoftLogo.scale-150.png" />
<Content Remove="Assets\FSFSoftLogo.scale-200.png" />
<Content Remove="Assets\FSFSoftLogo.scale-400.png" />
<Content Remove="Assets\StoreLogo.png" />
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -70,6 +76,7 @@
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
<Content Include="FSFSoftH.ico" />
<Content Include="FSSoftH.ico" />
</ItemGroup>

Expand Down Expand Up @@ -199,7 +206,7 @@
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>0.2.15</VersionPrefix>
<VersionPrefix>0.2.18</VersionPrefix>
</PropertyGroup>


Expand Down
38 changes: 22 additions & 16 deletions MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,33 @@
</Grid.RowDefinitions>


<StackPanel Grid.Column="2" Grid.Row="0" Orientation="Horizontal" Canvas.ZIndex="10">
<Image x:Name="TitleBarIcon" Stretch="Fill" Source="/Assets/StoreLogo.png"
HorizontalAlignment="Left"
Width="20" Height="20"
Margin="0,2,0,0"/>


<TextBlock x:Name="TitleBarTextBlock"
Text="App title"
Style="{StaticResource CaptionTextBlockStyle}"
VerticalAlignment="Center"
Margin="8,2,0,0"/>
</StackPanel>


<Border x:Name="AppTitleBara" Grid.Column="2" Grid.Row="0" Height="48" VerticalAlignment="Top" Canvas.ZIndex="9" >
<Border x:Name="AppTitleBara" Grid.Column="2" Grid.Row="0" Height="48" VerticalAlignment="Top" Canvas.ZIndex="9" Margin="0,0,0,0">
<!--Background="{ThemeResource SystemAccentColorLight2}"-->
<TextBlock x:Name="AppTitle" VerticalAlignment="Top" Margin="0,8,0,0" />
<!--<TextBlock x:Name="AppTitle" VerticalAlignment="Top" Margin="0,8,0,0" />-->
<Grid>
<StackPanel Grid.Column="2" Grid.Row="0" Orientation="Horizontal" Canvas.ZIndex="10">
<Image x:Name="TitleBarIcon" Stretch="Fill" Source="/Assets/FSFSoftLogo.png"
HorizontalAlignment="Left"
Width="20" Height="20"
Margin="0,2,0,0"/>

<TextBlock x:Name="TitleBarTextBlock"
Text="App title"
Style="{StaticResource CaptionTextBlockStyle}"
VerticalAlignment="Center"
Margin="8,2,0,0"/>
</StackPanel>
</Grid>
</Border>

<NavigationView x:Name="FSnv" Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" Grid.ColumnSpan="2" IsTitleBarAutoPaddingEnabled="False" PaneDisplayMode="Auto" IsTabStop="False"
IsBackEnabled="True" BackRequested="NavigationView_BackRequested" SelectionChanged="NavigationView_SelectionChanged" Margin="0,0,0,0">
IsBackEnabled="True" BackRequested="NavigationView_BackRequested"
SelectionChanged="NavigationView_SelectionChanged"
DisplayModeChanged="NavigationView_DisplayModeChanged"
Margin="0,0,0,0">
<NavigationView.MenuItems>
<NavigationViewItem Icon="Sort" Content="Serial Port" Tag="MainPage1" />
<NavigationViewItem Content="Download FLASH" Tag="Page2">
Expand All @@ -69,7 +75,7 @@
</NavigationViewItem>-->
<NavigationViewItem Tag="FSPage" Content="FairingStudio">
<NavigationViewItem.Icon>
<BitmapIcon UriSource="/Assets/StoreLogo.png" ShowAsMonochrome="False"/>
<BitmapIcon UriSource="/Assets/FSFSoftLogo.png" ShowAsMonochrome="False"/>
</NavigationViewItem.Icon>
</NavigationViewItem>
</NavigationView.FooterMenuItems>
Expand Down
23 changes: 19 additions & 4 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace FSGaryityTool_Win11
public sealed partial class MainWindow : Window
{

public static string FSSoftVersion = "0.2.15";
public static string FSSoftVersion = "0.2.18";
public static int FsPage = 0;
public static TomlTable settingstomlSp;

Expand Down Expand Up @@ -116,7 +116,7 @@ public MainWindow()

m_AppWindow = GetAppWindowForCurrentWindow();
m_AppWindow.Title = "FSGravityTool";//Set AppWindow
m_AppWindow.SetIcon("FSsoftH.ico");
m_AppWindow.SetIcon("FSFSoftH.ico");


string SYSAPLOCAL = Environment.GetFolderPath(folder: Environment.SpecialFolder.LocalApplicationData);
Expand Down Expand Up @@ -225,6 +225,7 @@ public MainWindow()
["AutoDaveSet"] = "1",
["AutoSerichCom"] = "1",
["AutoConnect"] = "1",
["DefaultTXNewLine"] = "1"
},

};
Expand Down Expand Up @@ -257,7 +258,7 @@ public MainWindow()
Debug.WriteLine(">");

//缓存设置
string defpage, baud, party, stop, data, rxhex, txhex, dtr, rts, shtime, autosco, autosavrset, autosercom, autoconnect;
string defpage, baud, party, stop, data, rxhex, txhex, dtr, rts, shtime, autosco, autosavrset, autosercom, autoconnect, txnewline;
using (StreamReader reader = File.OpenText(Page1.FSSetToml)) //打开TOML文件
{
settingstomlSp = TOML.Parse(reader);
Expand Down Expand Up @@ -291,6 +292,8 @@ public MainWindow()
else autosercom = "1";
if ((string)settingstomlSp["SerialPortSettings"]["AutoConnect"] != "Tommy.TomlLazy") autoconnect = settingstomlSp["SerialPortSettings"]["AutoConnect"];
else autoconnect = "1";
if ((string)settingstomlSp["SerialPortSettings"]["DefaultTXNewLine"] != "Tommy.TomlLazy") txnewline = settingstomlSp["SerialPortSettings"]["DefaultTXNewLine"];
else txnewline = "1";
//if (settingstomlSp["SerialPortSettings"] != null) = ;

settingstomlSp = new TomlTable
Expand Down Expand Up @@ -325,6 +328,7 @@ public MainWindow()
["AutoDaveSet"] = autosavrset,
["AutoSerichCom"] = autosercom,
["AutoConnect"] = autoconnect,
["DefaultTXNewLine"] = txnewline,
},

};
Expand Down Expand Up @@ -466,7 +470,7 @@ private AppWindow GetAppWindowForCurrentWindow()
return AppWindow.GetFromWindowId(wndId);
}

private void NavigationView_BackRequested(NavigationView sender, NavigationViewBackRequestedEventArgs args)
private void NavigationView_BackRequested(NavigationView sender, NavigationViewBackRequestedEventArgs args) //返回按钮
{

if (FsPage == 0) ; //SerialPortPage
Expand All @@ -483,6 +487,17 @@ private void NavigationView_BackRequested(NavigationView sender, NavigationViewB
//else if (FsPage == 5) ; //SettingsPage
}

private void NavigationView_DisplayModeChanged(Microsoft.UI.Xaml.Controls.NavigationView sender, Microsoft.UI.Xaml.Controls.NavigationViewDisplayModeChangedEventArgs args)
{
if (args.DisplayMode == Microsoft.UI.Xaml.Controls.NavigationViewDisplayMode.Minimal)
{
AppTitleBara.Margin = new Thickness(48, 0, 0, 0);
}
else
{
AppTitleBara.Margin = new Thickness(0, 0, 0, 0);
}
}

/*
Expand Down
4 changes: 2 additions & 2 deletions Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<Identity
Name="8153eea4-0701-4df3-b478-ccfc268ddd1b"
Publisher="CN=FAIRING STUDIO"
Version="0.2.14.0" />
Version="0.2.18.0" />

<Properties>
<DisplayName>FSGaryityTool</DisplayName>
<PublisherDisplayName>FAIRING STUDIO</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
<Logo>Assets\FSFSoftLogo.png</Logo>


</Properties>
Expand Down
5 changes: 3 additions & 2 deletions Page1.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
</StackPanel.Transitions>
</StackPanel>
<StackPanel Orientation="Horizontal">
<ToggleButton x:Name="SaveSetButton" Checked="SaveSetButton_Checked" IsThreeState="False" IsChecked="False" Width="120" Margin="6">AutoSaveSet</ToggleButton>
<ToggleButton x:Name="TXNewLineButton" Click="TXNewLineButton_Click" Width="120" Margin="6">TXNewLine</ToggleButton>
<ToggleButton x:Name="DTRButton" Click="DTRButton_Click" Width="48" Margin="6">DTR</ToggleButton>
<ToggleButton x:Name="RTSButton" Click="RTSButton_Click" Width="48" Margin="6">RTS</ToggleButton>
<StackPanel.Transitions>
Expand All @@ -165,7 +165,7 @@
</StackPanel.Transitions>
</StackPanel>
<StackPanel Orientation="Horizontal">
<ToggleButton x:Name="ShowTimeButton" Click="ShowTimeButton_Click" Width="120" Margin="6">Showtimestamp</ToggleButton>
<ToggleButton x:Name="SaveSetButton" Click="SaveSetButton_Click" IsThreeState="False" IsChecked="False" Width="120" Margin="6">AutoSaveSet</ToggleButton>
<ToggleButton x:Name="AUTOScrollButton" Click="AUTOScrollButton_Click" Width="108" Margin="6">AUTOScroll</ToggleButton>
<StackPanel.Transitions>
<TransitionCollection>
Expand All @@ -187,6 +187,7 @@

<StackPanel Orientation="Horizontal">
<Button x:Name="RSTButton" Click="RSTButton_Click" Width="120" Margin="6">RST</Button>
<ToggleButton x:Name="ShowTimeButton" Click="ShowTimeButton_Click" Width="108" Margin="6">Showtimestamp</ToggleButton>
<StackPanel.Transitions>
<TransitionCollection>
<RepositionThemeTransition />
Expand Down
Loading

0 comments on commit 3971208

Please sign in to comment.