* Pixiview/UI/CircleUIs.cs:
* Pixiview.iOS/Pixiview.iOS.csproj: * Pixiview.iOS/Renderers/RoundLabelRenderer.cs: * Pixiview.iOS/Renderers/CircleImageRenderer.cs: custom round corner controls * Pixiview/App.xaml: * Pixiview/Utils/Converters.cs: * Pixiview/GlobalSuppressions.cs: * Pixiview/UI/StyleDefinition.cs: * Pixiview/UI/AdaptedPage.cs: * Pixiview.iOS/Renderers/AdaptedPageRenderer.cs: observe orientation * Pixiview/MainPage.xaml: * Pixiview/Utils/Stores.cs: * Pixiview/MainPage.xaml.cs: * Pixiview/Utils/IllustData.cs: data and UI adjust
This commit is contained in:
@@ -5,14 +5,63 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:u="clr-namespace:Pixiview.UI"
|
||||
mc:Ignorable="d"
|
||||
x:Class="Pixiview.MainPage">
|
||||
x:Class="Pixiview.MainPage"
|
||||
BackgroundColor="{DynamicResource WindowColor}"
|
||||
OrientationChanged="Page_OrientationChanged">
|
||||
<NavigationPage.TitleView>
|
||||
<u:NavigationTitle Title="Startup Name Generator"
|
||||
<u:NavigationTitle Title="Follow"
|
||||
IsLeftButtonVisible="True"
|
||||
LeftButtonClicked="NavigationTitle_LeftButtonClicked"
|
||||
RightButtonClicked="NavigationTitle_RightButtonClicked"/>
|
||||
</NavigationPage.TitleView>
|
||||
<Grid>
|
||||
|
||||
</Grid>
|
||||
<ScrollView HorizontalOptions="Fill" Padding="{Binding StatusBarPadding}">
|
||||
<u:FlowLayout ItemsSource="{Binding Illusts}"
|
||||
HorizontalOptions="Fill" Column="{Binding Columns}"
|
||||
Margin="16" RowSpacing="16" ColumnSpacing="16">
|
||||
<u:FlowLayout.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Frame HasShadow="False" Padding="0" Margin="0" CornerRadius="10"
|
||||
BackgroundColor="{DynamicResource MainColor}">
|
||||
<Grid HorizontalOptions="Fill" Margin="0, -5, 0, 0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Image BackgroundColor="LightGray"
|
||||
Source="{Binding Image}"
|
||||
HorizontalOptions="Fill"
|
||||
Aspect="AspectFit"/>
|
||||
<u:RoundLabel Text="R-18" BackgroundColor="#fd4363" Margin="6, 11, 0, 0"
|
||||
Padding="6, 2" CornerRadius="4"
|
||||
HorizontalOptions="Start" VerticalOptions="Start"
|
||||
FontSize="Micro" TextColor="White"
|
||||
IsVisible="{Binding IsRestrict}"/>
|
||||
<u:RoundLabel Text="{Binding PageCountText}"
|
||||
FontFamily="{DynamicResource IconSolidFontFamily}"
|
||||
BackgroundColor="#50000000" Margin="0, 11, 6, 0"
|
||||
Padding="6, 4" CornerRadius="6"
|
||||
HorizontalOptions="End" VerticalOptions="Start"
|
||||
FontSize="Micro" TextColor="White"
|
||||
IsVisible="{Binding IsPageVisible}"/>
|
||||
<Label Grid.Row="1" Text="{Binding Title}"
|
||||
Padding="8, 2"
|
||||
TextColor="{DynamicResource TextColor}"
|
||||
LineBreakMode="TailTruncation"
|
||||
FontSize="Small"/>
|
||||
<StackLayout Grid.Row="2" Orientation="Horizontal" Padding="8, 0, 8, 8">
|
||||
<u:CircleImage WidthRequest="30" HeightRequest="30" Aspect="AspectFill"
|
||||
Source="{Binding ProfileImage}"/>
|
||||
<Label Text="{Binding UserName}"
|
||||
VerticalOptions="Center"
|
||||
TextColor="{DynamicResource SubTextColor}"
|
||||
LineBreakMode="TailTruncation"
|
||||
FontSize="Micro"/>
|
||||
</StackLayout>
|
||||
</Grid>
|
||||
</Frame>
|
||||
</DataTemplate>
|
||||
</u:FlowLayout.ItemTemplate>
|
||||
</u:FlowLayout>
|
||||
</ScrollView>
|
||||
</u:AdaptedPage>
|
Reference in New Issue
Block a user