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 19, 2020
1 parent 824adef commit 9f82973
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
8 changes: 7 additions & 1 deletion PixivFSUWP/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
xmlns:converters="using:PixivFSUWP.Converters"
RequestedTheme="Light">
<Application.Resources>
<ResourceDictionary>
<!--<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Dark" Source="/Themes/Dark.xaml" />
<ResourceDictionary x:Key="Default" Source="/Themes/Light.xaml" />
</ResourceDictionary.ThemeDictionaries>-->
<converters:MultiPageVisibilityConverter x:Name="MultiPageVisibilityConverter"/>
<converters:BookmarkHeartVisibilityConverter x:Name="BookmarkHeartVisibilityConverter"/>
<AcrylicBrush x:Name="PageBackGround" BackgroundSource="HostBackdrop" TintColor="White" TintOpacity="0.5" FallbackColor="White"/>
<AcrylicBrush x:Name="PageBackGround" BackgroundSource="HostBackdrop" TintColor="{ThemeResource SystemAltHighColor}" TintOpacity="0.5" FallbackColor="{ThemeResource SystemAltHighColor}"/>
<ControlTemplate x:Name="ScrollViewerScrollBarlessTemplate" TargetType="ScrollViewer">
<Grid Background="{TemplateBinding Background}">
<ScrollContentPresenter x:Name="ScrollContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Margin="{TemplateBinding Padding}"/>
Expand Down Expand Up @@ -128,5 +133,6 @@
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>
2 changes: 1 addition & 1 deletion PixivFSUWP/BigImage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<Grid x:Name="grdTip" HorizontalAlignment="Center" Grid.RowSpan="3"
VerticalAlignment="Bottom" Margin="20" Visibility="Collapsed" Opacity="0">
<Grid.Background>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="White" FallbackColor="White"/>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="{ThemeResource SystemAltHighColor}" FallbackColor="{ThemeResource SystemAltHighColor}"/>
</Grid.Background>
<TextBlock x:Name="txtTip" Margin="10" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Grid>
Expand Down
6 changes: 3 additions & 3 deletions PixivFSUWP/LoginPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<Grid Height="480" Width="400"
HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid.Background>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.4" TintColor="White" FallbackColor="#99ffffff"/>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.4" TintColor="{ThemeResource SystemAltHighColor}" FallbackColor="{ThemeResource SystemAltMediumColor}"/>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
Expand Down Expand Up @@ -114,7 +114,7 @@
<Button Style="{StaticResource ButtonRevealStyleWithAcrylic}" HorizontalAlignment="Center"
BorderThickness="1.5" VerticalAlignment="Stretch" Click="Button_Click">
<Button.Background>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="White" FallbackColor="White"/>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="{ThemeResource SystemAltHighColor}" FallbackColor="{ThemeResource SystemAltHighColor}"/>
</Button.Background>
<Grid>
<Grid.ColumnDefinitions>
Expand All @@ -133,7 +133,7 @@
<Button Style="{StaticResource ButtonRevealStyleWithAcrylic}" HorizontalAlignment="Center"
BorderThickness="1.5" VerticalAlignment="Stretch" x:Name="btnReport" Click="btnReport_Click">
<Button.Background>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="White" FallbackColor="White"/>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="{ThemeResource SystemAltHighColor}" FallbackColor="{ThemeResource SystemAltHighColor}"/>
</Button.Background>
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}"
FontSize="16" Glyph="&#xED15;"/>
Expand Down
2 changes: 1 addition & 1 deletion PixivFSUWP/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<Grid x:Name="grdTip" HorizontalAlignment="Center"
VerticalAlignment="Bottom" Margin="20" Visibility="Collapsed" Opacity="0">
<Grid.Background>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="White" FallbackColor="White"/>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="{ThemeResource SystemAltHighColor}" FallbackColor="{ThemeResource SystemAltHighColor}"/>
</Grid.Background>
<TextBlock x:Name="txtTip" Margin="10" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion PixivFSUWP/SearchPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<Grid x:Name="grdSearchPanel"
VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<Grid.Background>
<AcrylicBrush x:Name="detailBackground" BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="White" FallbackColor="White"/>
<AcrylicBrush x:Name="detailBackground" BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="{ThemeResource SystemAltHighColor}" FallbackColor="{ThemeResource SystemAltHighColor}"/>
</Grid.Background>
<StackPanel Margin="0 75 0 0" Orientation="Vertical" Width="500" x:Name="stkMain"
HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
Expand Down
4 changes: 2 additions & 2 deletions PixivFSUWP/UserDetailPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<Button Style="{StaticResource ButtonRevealStyleWithAcrylic}" HorizontalAlignment="Center"
BorderThickness="1.5" VerticalAlignment="Stretch" Click="Button_Click">
<Button.Background>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="White" FallbackColor="White"/>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="{ThemeResource SystemAltHighColor}" FallbackColor="{ThemeResource SystemAltHighColor}"/>
</Button.Background>
<Grid>
<Grid.ColumnDefinitions>
Expand All @@ -129,7 +129,7 @@
</Grid>
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="grdDetail">
<Grid.Background>
<AcrylicBrush x:Name="detailBackground" BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="White" FallbackColor="White"/>
<AcrylicBrush x:Name="detailBackground" BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="{ThemeResource SystemAltHighColor}" FallbackColor="{ThemeResource SystemAltHighColor}"/>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="75"/>
Expand Down

0 comments on commit 9f82973

Please sign in to comment.