1
0

feat: add program icon

This commit is contained in:
2025-09-09 14:16:35 +08:00
parent 78ed4aa43c
commit e21860c633
7 changed files with 150 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@ -0,0 +1,136 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="512"
height="512"
viewBox="0 0 512 512"
version="1.1"
id="svg1"
inkscape:version="1.3.2 (091e20e, 2023-11-25, custom)"
sodipodi:docname="Icon.svg"
inkscape:export-filename="Icon.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="px"
inkscape:zoom="1.4142136"
inkscape:cx="204.0003"
inkscape:cy="235.46655"
inkscape:window-width="1920"
inkscape:window-height="1017"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
showgrid="true">
<inkscape:grid
id="grid1"
units="px"
originx="0"
originy="0"
spacingx="1"
spacingy="1"
empcolor="#0099e5"
empopacity="0.30196078"
color="#0099e5"
opacity="0.14901961"
empspacing="8"
dotted="false"
gridanglex="30"
gridanglez="30"
visible="true" />
</sodipodi:namedview>
<defs
id="defs1" />
<g
inkscape:label="图层 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#f44336;fill-opacity:1;stroke:none"
id="rect1"
width="216"
height="160"
x="24"
y="24"
ry="24" />
<rect
style="fill:#ffeb3b;fill-opacity:1;stroke:none"
id="rect2"
width="216"
height="160"
x="272"
y="328"
ry="24" />
<rect
style="fill:#2196f3;fill-opacity:1;stroke:none"
id="rect3"
width="216"
height="272"
x="24"
y="216"
ry="24" />
<rect
style="fill:#4caf50;fill-opacity:1;stroke:none"
id="rect4"
width="216"
height="272"
x="272"
y="24"
ry="24" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:96px;font-family:'Source Han Sans CN';-inkscape-font-specification:'Source Han Sans CN';fill:#ffffff;fill-opacity:1;stroke:none"
x="97.008003"
y="139.18401"
id="text4"><tspan
sodipodi:role="line"
id="tspan4"
x="97.008003"
y="139.18401">H</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:96px;font-family:'Source Han Sans CN';-inkscape-font-specification:'Source Han Sans CN';fill:#ffffff;fill-opacity:1;stroke:none"
x="350.048"
y="195.18401"
id="text5"><tspan
sodipodi:role="line"
id="tspan5"
x="350.048"
y="195.18401"
style="font-size:96px">F</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:96px;font-family:'Source Han Sans CN';-inkscape-font-specification:'Source Han Sans CN';fill:#ffffff;fill-opacity:1;stroke:none"
x="97.344002"
y="386.56"
id="text6"><tspan
sodipodi:role="line"
id="tspan6"
x="97.344002"
y="386.56">U</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:96px;font-family:'Source Han Sans CN';-inkscape-font-specification:'Source Han Sans CN';fill:#000000;fill-opacity:1;stroke:none"
x="351.24799"
y="443.18399"
id="text7"><tspan
sodipodi:role="line"
id="tspan7"
x="351.24799"
y="443.18399">T</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -33,6 +33,9 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Icon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath> <HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
@ -163,6 +166,11 @@
<ItemGroup> <ItemGroup>
<None Include="App.config" /> <None Include="App.config" />
</ItemGroup> </ItemGroup>
<ItemGroup /> <ItemGroup>
<Folder Include="Asset\" />
</ItemGroup>
<ItemGroup>
<Resource Include="Icon.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

View File

@ -28,7 +28,10 @@ namespace HFUTCourseSimulation.Kernel.Data.LegacyStorage.V1 {
return new Storage.Semester() { return new Storage.Semester() {
StartDate = StartDate, StartDate = StartDate,
WeekCount = WeekCount.ToString(), WeekCount = WeekCount.ToString(),
// Other properties keep original value. IndexCount = 11.ToString(),
BreakfastAt = 0.ToString(),
LunchAt = 4.ToString(),
DinnerAt = 8.ToString(),
Courses = Courses.Select((item) => item.ToLatest()).ToList() Courses = Courses.Select((item) => item.ToLatest()).ToList()
}; };
} }

View File

@ -7,7 +7,7 @@
xmlns:uidata="clr-namespace:HFUTCourseSimulation.Kernel.Data.Ui" xmlns:uidata="clr-namespace:HFUTCourseSimulation.Kernel.Data.Ui"
mc:Ignorable="d" mc:Ignorable="d"
d:DataContext="{d:DesignInstance local:MainWindowContext}" d:DataContext="{d:DesignInstance local:MainWindowContext}"
Title="{Binding AppTitle, Mode=OneWay}" Height="600" Width="800"> Title="{Binding AppTitle, Mode=OneWay}" Height="600" Width="800" Icon="/Icon.ico">
<Window.Resources> <Window.Resources>
<RoutedUICommand x:Key="commandMenuNew"/> <RoutedUICommand x:Key="commandMenuNew"/>
<RoutedUICommand x:Key="commandMenuOpen"/> <RoutedUICommand x:Key="commandMenuOpen"/>