-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed some bugs, which made the AnimeListView Crash
- Loading branch information
1 parent
926a197
commit fb683e1
Showing
8 changed files
with
120 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:AniMoe.App.Styles"> | ||
<Style TargetType="StackPanel" | ||
x:Key="CardStackPanelStyle"> | ||
<Setter Property="Background" | ||
Value="{StaticResource CardBackgroundFillColorDefaultBrush}" /> | ||
<Setter Property="CornerRadius" | ||
Value="4" /> | ||
<Setter Property="BorderBrush" | ||
Value="{StaticResource ControlElevationBorderBrush}"/> | ||
<Setter Property="BorderThickness" | ||
Value="1"/> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:AniMoe.App.Styles"> | ||
<Style x:Key="CardStackPanelStyle" TargetType="StackPanel"> | ||
<Setter Property="Background" Value="{StaticResource CardBackgroundFillColorDefaultBrush}" /> | ||
<Setter Property="CornerRadius" Value="4" /> | ||
<Setter Property="BorderBrush" Value="{StaticResource ControlElevationBorderBrush}" /> | ||
<Setter Property="BorderThickness" Value="1" /> | ||
</Style> | ||
<Style TargetType="Grid" | ||
x:Key="CardGridStyle"> | ||
<Setter Property="Background" | ||
Value="{StaticResource CardBackgroundFillColorDefaultBrush}" /> | ||
<Setter Property="CornerRadius" | ||
Value="4" /> | ||
<Setter Property="BorderBrush" | ||
Value="{StaticResource ControlElevationBorderBrush}"/> | ||
<Setter Property="BorderThickness" | ||
Value="1"/> | ||
<Style x:Key="CardGridStyle" TargetType="Grid"> | ||
<Setter Property="Background" Value="{StaticResource CardBackgroundFillColorDefaultBrush}" /> | ||
<Setter Property="CornerRadius" Value="4" /> | ||
<Setter Property="BorderBrush" Value="{StaticResource ControlElevationBorderBrush}" /> | ||
<Setter Property="BorderThickness" Value="1" /> | ||
</Style> | ||
<Style TargetType="RelativePanel" | ||
x:Key="CardRelativePanelStyle"> | ||
<Setter Property="Background" | ||
Value="{StaticResource CardBackgroundFillColorDefaultBrush}" /> | ||
<Setter Property="CornerRadius" | ||
Value="4" /> | ||
<Setter Property="BorderBrush" | ||
Value="{StaticResource ControlElevationBorderBrush}"/> | ||
<Setter Property="BorderThickness" | ||
Value="1"/> | ||
<Style x:Key="CardRelativePanelStyle" TargetType="RelativePanel"> | ||
<Setter Property="Background" Value="{StaticResource CardBackgroundFillColorDefaultBrush}" /> | ||
<Setter Property="CornerRadius" Value="4" /> | ||
<Setter Property="BorderBrush" Value="{StaticResource ControlElevationBorderBrush}" /> | ||
<Setter Property="BorderThickness" Value="1" /> | ||
</Style> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,98 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Page | ||
x:Class="AniMoe.App.Views.UserView" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:AniMoe.App.Views" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="using:AniMoe.App.Views" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:media="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:toolkit="using:CommunityToolkit.WinUI.UI.Controls" | ||
mc:Ignorable="d"> | ||
|
||
<Grid> | ||
<Page.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="ms-appx:///Styles/LayoutStyles.xaml" /> | ||
<ResourceDictionary Source="ms-appx:///CommunityToolkit.Labs.WinUI.SegmentedControl/Segmented/Segmented.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
<media:AcrylicBrush | ||
x:Key="CustomAcrylicBrush" | ||
FallbackColor="#FF008000" | ||
TintColor="#FF0000FF" | ||
TintLuminosityOpacity="0" | ||
TintOpacity="0" /> | ||
</ResourceDictionary> | ||
</Page.Resources> | ||
|
||
<Grid Margin="30" ColumnSpacing="10"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="1.2*" /> | ||
<ColumnDefinition Width="3*" /> | ||
</Grid.ColumnDefinitions> | ||
|
||
<ScrollViewer> | ||
<Grid Grid.Column="0" RowSpacing="10"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="Auto" /> | ||
</Grid.RowDefinitions> | ||
<Grid | ||
Grid.Row="0" | ||
Height="300" | ||
Style="{StaticResource CardGridStyle}"> | ||
<Grid.Background> | ||
<ImageBrush ImageSource="ms-appx:///Assets/benner_2.jpg" Stretch="Fill" /> | ||
</Grid.Background> | ||
<Grid CornerRadius="4"> | ||
<Grid.Background> | ||
<media:AcrylicBrush | ||
TintColor="Transparent" | ||
TintLuminosityOpacity="0" | ||
TintOpacity="0" /> | ||
</Grid.Background> | ||
<ScrollViewer> | ||
<StackPanel | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center" | ||
Spacing="10"> | ||
<toolkit:ImageEx | ||
Width="120" | ||
CornerRadius="8" | ||
Source="ms-appx:///Assets/profile.jpg" /> | ||
<TextBlock | ||
Margin="20,0" | ||
Style="{ThemeResource SubtitleTextBlockStyle}" | ||
Text="TestAccountForAnimoe" | ||
TextAlignment="Center" | ||
TextWrapping="WrapWholeWords" | ||
ToolTipService.ToolTip="TestAccountForAnimoe" /> | ||
|
||
<Border | ||
Padding="10,5" | ||
HorizontalAlignment="Center" | ||
Background="{ThemeResource SystemAccentColor}" | ||
CornerRadius="5"> | ||
<TextBlock | ||
Foreground="{ThemeResource TextOnAccentAAFillColorPrimaryBrush}" | ||
Text="ぴょんぴょん" | ||
TextAlignment="Center" /> | ||
</Border> | ||
|
||
<Button | ||
HorizontalAlignment="Center" | ||
Content="Following" | ||
Style="{ThemeResource AccentButtonStyle}" /> | ||
</StackPanel> | ||
</ScrollViewer> | ||
</Grid> | ||
</Grid> | ||
<Grid Grid.Row="1" Style="{StaticResource CardGridStyle}" | ||
Height="800"/> | ||
</Grid> | ||
</ScrollViewer> | ||
|
||
<Grid Grid.Column="1" Style="{StaticResource CardGridStyle}" /> | ||
|
||
</Grid> | ||
</Page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters