Skip to content

Commit

Permalink
Adjust Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Oct 17, 2024
1 parent d004c68 commit b74ddc0
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 122 deletions.
File renamed without changes.
98 changes: 0 additions & 98 deletions v2rayN/v2rayN.Desktop/ViewModels/AppViewModel.cs

This file was deleted.

4 changes: 2 additions & 2 deletions v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@
Content="{x:Static resx:ResUI.TipActiveServer}"
IsVisible="{Binding isActive}"
Theme="{StaticResource TagLabel}" />
<Label
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
Content="{Binding remarks}" />
Text="{Binding remarks}" />
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
Expand Down
16 changes: 1 addition & 15 deletions v2rayN/v2rayN.Desktop/Views/ThemeSettingView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,46 +27,32 @@
<StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock
Grid.Row="0"
Grid.Column="0"
Width="100"
VerticalAlignment="Center"
Classes="Margin8"
Text="{x:Static resx:ResUI.TbSettingsColorMode}" />
<ToggleSwitch
x:Name="togDarkMode"
Grid.Row="0"
Grid.Column="1"
Classes="Margin8" />
<ToggleSwitch x:Name="togDarkMode" Classes="Margin8" />
</StackPanel>

<StackPanel Orientation="Horizontal">
<TextBlock
Grid.Row="1"
Grid.Column="0"
Width="100"
VerticalAlignment="Center"
Classes="Margin8"
Text="{x:Static resx:ResUI.TbSettingsFontSize}" />
<ComboBox
x:Name="cmbCurrentFontSize"
Grid.Row="1"
Grid.Column="1"
Width="100"
Classes="Margin8" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock
Grid.Row="2"
Grid.Column="0"
Width="100"
VerticalAlignment="Center"
Classes="Margin8"
Text="{x:Static resx:ResUI.TbSettingsLanguage}" />
<ComboBox
x:Name="cmbCurrentLanguage"
Grid.Row="2"
Grid.Column="1"
Width="100"
Classes="Margin8" />
</StackPanel>
Expand Down
4 changes: 2 additions & 2 deletions v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>v2rayN.ico</ApplicationIcon>
<ApplicationIcon>Assets\v2rayN.ico</ApplicationIcon>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
</PropertyGroup>
Expand Down Expand Up @@ -37,7 +37,7 @@
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="v2rayN.ico">
<EmbeddedResource Include="Assets\v2rayN.ico">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
Expand Down
File renamed without changes.
8 changes: 3 additions & 5 deletions v2rayN/v2rayN/v2rayN.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<UseWPF>true</UseWPF>
<ApplicationManifest>app.manifest</ApplicationManifest>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>v2rayN.ico</ApplicationIcon>
<ApplicationIcon>Resources\v2rayN.ico</ApplicationIcon>
<Copyright>Copyright © 2017-2024 (GPLv3)</Copyright>
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
</PropertyGroup>
Expand All @@ -24,15 +24,13 @@

<ItemGroup>
<AdditionalFiles Include="app.manifest" />
<EmbeddedResource Include="v2rayN.ico">
<EmbeddedResource Include="Resources\v2rayN.ico">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
<Resource Include="Resources\NotifyIcon1.ico" />
<Resource Include="Resources\NotifyIcon2.ico" />
<Resource Include="Resources\NotifyIcon3.ico" />
<Resource Include="v2rayN.ico">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
<Resource Include="Resources\v2rayN.ico" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit b74ddc0

Please sign in to comment.