Skip to content

Commit

Permalink
add a button of helping translate
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Jan 14, 2024
1 parent 1896834 commit 07877c5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
9 changes: 9 additions & 0 deletions src/Starward.Language/Lang.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/Starward.Language/Lang.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1268,4 +1268,7 @@ Do you accept the risk and continue to use it?</value>
<data name="HoyolabToolboxPage_PureFiction" xml:space="preserve">
<value>Pure Fiction</value>
</data>
<data name="AppearanceSettingPage_HelpUsTranslateStarward" xml:space="preserve">
<value>Help us translate Starward</value>
</data>
</root>
34 changes: 21 additions & 13 deletions src/Starward/Pages/Setting/AppearanceSettingPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,27 @@
<TextBlock FontSize="20"
FontWeight="SemiBold"
Text="{x:Bind lang:Lang.SettingPage_Language}" />
<Border Height="36"
Margin="0,12,0,0"
HorizontalAlignment="Left"
Background="{ThemeResource CustomOverlayAcrylicBrush}"
CornerRadius="8,18,18,8">
<ComboBox Name="ComboBox_Language"
Height="36"
MinWidth="260"
Padding="18.5,0,0,0"
BorderThickness="0"
CornerRadius="8,18,18,8"
SelectionChanged="ComboBox_Language_SelectionChanged" />
</Border>
<StackPanel Margin="0,12,0,0" Orientation="Horizontal">
<Border Height="36"
Background="{ThemeResource CustomOverlayAcrylicBrush}"
CornerRadius="8,18,18,8">
<ComboBox Name="ComboBox_Language"
Height="36"
MinWidth="260"
Padding="18.5,0,0,0"
BorderThickness="0"
CornerRadius="8,18,18,8"
SelectionChanged="ComboBox_Language_SelectionChanged" />
</Border>
<HyperlinkButton Margin="20,0,0,0"
VerticalAlignment="Center"
NavigateUri="https://github.com/Scighost/Starward/blob/main/docs/Localization.md">
<TextBlock FontSize="16"
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}"
Text="{x:Bind lang:Lang.AppearanceSettingPage_HelpUsTranslateStarward}" />

</HyperlinkButton>
</StackPanel>

<!-- Window Size -->
<TextBlock Margin="0,20,0,0"
Expand Down

0 comments on commit 07877c5

Please sign in to comment.