Browse Source

完善包装

CaptB 4 months ago
parent
commit
d24aaf0bb4

+ 10 - 0
EdgeVoyager.csproj

@@ -6,12 +6,18 @@
     <Nullable>enable</Nullable>
     <UseWindowsForms>true</UseWindowsForms>
     <ImplicitUsings>enable</ImplicitUsings>
+    <ApplicationIcon>Resources\icons8_connection_status_on.ico</ApplicationIcon>
+    <PackageIcon>icons8_connection_status_on_128.png</PackageIcon>
   </PropertyGroup>
 
   <ItemGroup>
     <None Remove="index.html" />
   </ItemGroup>
 
+  <ItemGroup>
+    <Content Include="Resources\icons8_connection_status_on.ico" />
+  </ItemGroup>
+
   <ItemGroup>
     <PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2903.40" />
   </ItemGroup>
@@ -37,6 +43,10 @@
   </ItemGroup>
 
   <ItemGroup>
+    <None Update="Resources\icons8_connection_status_on_128.png">
+      <Pack>True</Pack>
+      <PackagePath>\</PackagePath>
+    </None>
     <None Update="Settings1.settings">
       <Generator>SettingsSingleFileGenerator</Generator>
       <LastGenOutput>Settings1.Designer.cs</LastGenOutput>

+ 7 - 7
Form1.Designer.cs

@@ -103,6 +103,7 @@
             // 
             // toolStripStatusLabel1
             // 
+            toolStripStatusLabel1.BorderSides = ToolStripStatusLabelBorderSides.Left;
             toolStripStatusLabel1.Name = "toolStripStatusLabel1";
             toolStripStatusLabel1.Size = new Size(595, 18);
             toolStripStatusLabel1.Spring = true;
@@ -146,7 +147,6 @@
             // comboBox1
             // 
             comboBox1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
-            comboBox1.FlatStyle = FlatStyle.Popup;
             comboBox1.FormattingEnabled = true;
             comboBox1.Location = new Point(78, 29);
             comboBox1.Margin = new Padding(9, 3, 3, 3);
@@ -157,9 +157,9 @@
             // 
             // back_button
             // 
+            back_button.BackgroundImage = Properties.Resources.back_arrow_24px;
             back_button.FlatAppearance.BorderSize = 0;
             back_button.FlatStyle = FlatStyle.Flat;
-            back_button.Image = Properties.Resources.back_arrow_24px;
             back_button.Location = new Point(12, 28);
             back_button.Name = "back_button";
             back_button.Size = new Size(24, 24);
@@ -169,9 +169,9 @@
             // 
             // forward_button
             // 
+            forward_button.BackgroundImage = Properties.Resources.circled_right_24px;
             forward_button.FlatAppearance.BorderSize = 0;
             forward_button.FlatStyle = FlatStyle.Flat;
-            forward_button.Image = Properties.Resources.circled_right_24px;
             forward_button.Location = new Point(42, 28);
             forward_button.Name = "forward_button";
             forward_button.Size = new Size(24, 24);
@@ -182,9 +182,9 @@
             // refresh_button
             // 
             refresh_button.Anchor = AnchorStyles.Top | AnchorStyles.Right;
+            refresh_button.BackgroundImage = Properties.Resources.refresh_24px;
             refresh_button.FlatAppearance.BorderSize = 0;
             refresh_button.FlatStyle = FlatStyle.Flat;
-            refresh_button.Image = Properties.Resources.refresh_24px;
             refresh_button.Location = new Point(421, 28);
             refresh_button.Name = "refresh_button";
             refresh_button.Size = new Size(24, 24);
@@ -195,9 +195,9 @@
             // stop_button
             // 
             stop_button.Anchor = AnchorStyles.Top | AnchorStyles.Right;
+            stop_button.BackgroundImage = Properties.Resources.close_24px;
             stop_button.FlatAppearance.BorderSize = 0;
             stop_button.FlatStyle = FlatStyle.Flat;
-            stop_button.Image = Properties.Resources.close_24px;
             stop_button.Location = new Point(451, 28);
             stop_button.Name = "stop_button";
             stop_button.Size = new Size(24, 24);
@@ -208,7 +208,6 @@
             // textBox1
             // 
             textBox1.Anchor = AnchorStyles.Top | AnchorStyles.Right;
-            textBox1.BorderStyle = BorderStyle.FixedSingle;
             textBox1.Location = new Point(481, 30);
             textBox1.Name = "textBox1";
             textBox1.PlaceholderText = "Microsoft Bing 搜索...";
@@ -218,9 +217,10 @@
             // search_button
             // 
             search_button.Anchor = AnchorStyles.Top | AnchorStyles.Right;
+            search_button.BackgroundImage = Properties.Resources.search_in_cloud_24px;
+            search_button.BackgroundImageLayout = ImageLayout.None;
             search_button.FlatAppearance.BorderSize = 0;
             search_button.FlatStyle = FlatStyle.Flat;
-            search_button.Image = Properties.Resources.search_in_cloud_24px;
             search_button.Location = new Point(748, 30);
             search_button.Name = "search_button";
             search_button.Size = new Size(24, 24);

File diff suppressed because it is too large
+ 1201 - 1196
Form1.resx


BIN
Resources/back_arrow_24px.png


BIN
Resources/circled_right_24px.png


BIN
Resources/close_24px.png


BIN
Resources/icons8_connection_status_on.ico


BIN
Resources/icons8_connection_status_on_128.png


BIN
Resources/icons8_connection_status_on_16.png


BIN
Resources/icons8_connection_status_on_256.png


BIN
Resources/icons8_connection_status_on_32.png


BIN
Resources/icons8_connection_status_on_48.png


BIN
Resources/icons8_connection_status_on_64.png


BIN
Resources/refresh_24px.png


BIN
Resources/search_in_cloud_24px.png


Some files were not shown because too many files changed in this diff