Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
简单注释
Browse files Browse the repository at this point in the history
  • Loading branch information
frg2089 committed Apr 20, 2020
1 parent d3d022b commit fe4962e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions PixivFSUWP/SettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<TextBox x:Name="tbImgur" Margin="200,0" Width="400" HorizontalAlignment="Left" TextChanged="API_TextChanged"/>
</Grid>
</StackPanel>
<!--颜色主题-->
<StackPanel Margin="0 10">
<TextBlock Margin="15 0" FontSize="18" FontWeight="Bold" x:Uid="ColorTheme"/>
<ComboBox Margin="15 10 15 0" Width="300" DropDownClosed="ComboBox_DropDownClosed" x:Name="cboxColorTheme">
Expand Down
2 changes: 2 additions & 0 deletions PixivFSUWP/SettingsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ async Task loadContentsAsync()
//ApplicationDataContainer localSettings = ApplicationData.Current.LocalSettings;
//tbSauceNAO.Text = localSettings.Values["SauceNAOAPI"] as string;//读取设置项
//tbImgur.Text = localSettings.Values["ImgurAPI"] as string;
// 获取储存的颜色主题信息
switch (ApplicationData.Current.LocalSettings.Values["ColorTheme"])
{
case false:
Expand Down Expand Up @@ -201,6 +202,7 @@ private void ComboBox_DropDownClosed(object sender, object e)
{
if(sender is ComboBox cb)
{
// 保存颜色主题信息
switch (cb.SelectedIndex)
{
case 2:
Expand Down

0 comments on commit fe4962e

Please sign in to comment.