Skip to content

Commit

Permalink
add a tip in file management page
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Dec 31, 2023
1 parent 35f4fc1 commit 2df9682
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 34 deletions.
6 changes: 3 additions & 3 deletions src/Starward.Language/Lang.Designer.cs

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

6 changes: 3 additions & 3 deletions src/Starward.Language/Lang.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1180,9 +1180,6 @@ Do you accept the risk and continue to use it?</value>
<data name="FileSettingPage_DataFolder" xml:space="preserve">
<value>Data Folder</value>
</data>
<data name="FileSettingPage_Location" xml:space="preserve">
<value>Location:</value>
</data>
<data name="FileSettingPage_OpenLogFile" xml:space="preserve">
<value>Open Log File</value>
</data>
Expand Down Expand Up @@ -1223,4 +1220,7 @@ Do you accept the risk and continue to use it?</value>
<data name="CloseWindowDialog_YouCouldChangeTheOptionAgainInSettingPage" xml:space="preserve">
<value>You could change the option again in setting page.</value>
</data>
<data name="FileSettingPage_DataFolderIsImportant" xml:space="preserve">
<value>Your personal data is stored in the folder below. It is very important, please do not delete it casually.</value>
</data>
</root>
8 changes: 4 additions & 4 deletions src/Starward.Language/Lang.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1192,9 +1192,6 @@
<data name="FileSettingPage_OpenLogFile" xml:space="preserve">
<value>打开日志文件</value>
</data>
<data name="FileSettingPage_Location" xml:space="preserve">
<value>位置:</value>
</data>
<data name="FileSettingPage_DataFolder" xml:space="preserve">
<value>数据文件夹</value>
</data>
Expand All @@ -1205,7 +1202,7 @@
<value>本日</value>
</data>
<data name="CloseWindowDialog_YouCouldChangeTheOptionAgainInSettingPage" xml:space="preserve">
<value>你可以在设置页面再次更改此选项。</value>
<value>您可以在设置页面再次更改此选项。</value>
</data>
<data name="SettingPage_Experience" xml:space="preserve">
<value>体验</value>
Expand All @@ -1222,4 +1219,7 @@
<data name="ExperienceSettingPage_CloseWindowOption" xml:space="preserve">
<value>关闭窗口选项</value>
</data>
<data name="FileSettingPage_DataFolderIsImportant" xml:space="preserve">
<value>您的个人数据保存在下面的文件夹中,它很重要,请不要随意删除。</value>
</data>
</root>
55 changes: 31 additions & 24 deletions src/Starward/Pages/Setting/FileSettingPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,46 @@
mc:Ignorable="d">

<ScrollViewer>
<StackPanel>
<StackPanel Margin="0,0,48,0">


<!-- user data folder -->
<TextBlock FontSize="20"
FontWeight="SemiBold"
Text="{x:Bind lang:Lang.FileSettingPage_DataFolder}" />
<StackPanel Margin="0,12,0,0" Orientation="Horizontal">
<TextBlock Text="{x:Bind lang:Lang.FileSettingPage_Location}" />
<TextBlock Margin="8,0,0,0"
Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}"
Text="{x:Bind s:AppConfig.UserDataFolder}" />
</StackPanel>
<!-- open data folder -->
<Button Height="40"
<TextBlock Margin="0,12,0,0"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Text="{x:Bind lang:Lang.FileSettingPage_DataFolderIsImportant}"
TextWrapping="Wrap" />
<Border Height="40"
Margin="0,12,0,0"
Padding="16,0,16,0"
BorderThickness="0"
Command="{x:Bind OpenDataFolderCommand}"
CornerRadius="4,20,20,4"
Style="{ThemeResource AccentButtonStyle}">
<StackPanel Orientation="Horizontal" Spacing="8">
<FontIcon Glyph="&#xE838;" />
<TextBlock Text="{x:Bind lang:Lang.SettingPage_OpenDataFolder}" />
</StackPanel>
</Button>
HorizontalAlignment="Left"
Background="{ThemeResource CustomAcrylicBrush}"
CornerRadius="8,20,20,8"
Visibility="{x:Bind LastDatabaseBackupTime, Converter={StaticResource ObjectToVisibilityConverter}}">
<Button Height="40"
Padding="16,0,16,1"
BorderThickness="0"
Command="{x:Bind OpenDataFolderCommand}"
CornerRadius="0">
<StackPanel Orientation="Horizontal">
<TextBlock VerticalAlignment="Center"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Text="{x:Bind s:AppConfig.UserDataFolder}" />
<FontIcon Margin="8,2,2,0"
FontSize="16"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Glyph="&#xE8A7;" />
</StackPanel>
</Button>
</Border>
<!-- reselect folder -->
<Button Height="40"
Margin="0,8,0,0"
Padding="16,0,16,0"
BorderThickness="0"
Command="{x:Bind ChangeDataFolderCommand}"
CornerRadius="4,20,20,4"
CornerRadius="8,20,20,8"
Style="{ThemeResource AccentButtonStyle}">
<StackPanel Orientation="Horizontal" Spacing="8">
<FontIcon Glyph="&#xE8DE;" />
Expand All @@ -57,7 +64,7 @@
Padding="16,0,16,0"
BorderThickness="0"
Command="{x:Bind BackupDatabaseCommand}"
CornerRadius="4,20,20,4"
CornerRadius="8,20,20,8"
Style="{ThemeResource AccentButtonStyle}">
<StackPanel Orientation="Horizontal" Spacing="8">
<FontIcon Glyph="&#xF156;" />
Expand Down Expand Up @@ -99,7 +106,7 @@
Padding="16,0,16,0"
BorderThickness="0"
Command="{x:Bind DeleteAllSettingCommand}"
CornerRadius="4,20,20,4"
CornerRadius="8,20,20,8"
Style="{ThemeResource AccentButtonStyle}">
<StackPanel Orientation="Horizontal" Spacing="8">
<FontIcon Glyph="&#xE74D;" />
Expand All @@ -119,7 +126,7 @@
Padding="16,0,16,0"
BorderThickness="0"
Command="{x:Bind OpenLogFileCommand}"
CornerRadius="4,20,20,4"
CornerRadius="8,20,20,8"
Style="{ThemeResource AccentButtonStyle}">
<StackPanel Orientation="Horizontal" Spacing="8">
<FontIcon Glyph="&#xE8E5;" />
Expand All @@ -132,7 +139,7 @@
Padding="16,0,16,0"
BorderThickness="0"
Command="{x:Bind OpenLogFolderCommand}"
CornerRadius="4,20,20,4"
CornerRadius="8,20,20,8"
Style="{ThemeResource AccentButtonStyle}">
<StackPanel Orientation="Horizontal" Spacing="8">
<FontIcon Glyph="&#xE838;" />
Expand Down

0 comments on commit 2df9682

Please sign in to comment.