|
|
@@ -0,0 +1,229 @@
|
|
|
+
|
|
|
+<!--
|
|
|
+ ___ ___
|
|
|
+ /\_ \ /'___`\
|
|
|
+ _____ ___\//\ \ /\_\ /\ \ ___ __ __ __ __ ____
|
|
|
+ /\ '__`\ /'___\\ \ \ \/_/// /__ /' _ `\ /'__`\/\ \/\ \/\ \ /',__\
|
|
|
+ \ \ \L\ \/\ \__/ \_\ \_ // /_\ \ /\ \/\ \/\ __/\ \ \_/ \_/ \/\__, `\
|
|
|
+ \ \ ,__/\ \____\/\____\/\______/ \ \_\ \_\ \____\\ \___x___/'\/\____/
|
|
|
+ \ \ \/ \/____/\/____/\/_____/ \/_/\/_/\/____/ \/__//__/ \/___/
|
|
|
+ \ \_\
|
|
|
+ \/_/
|
|
|
+ __
|
|
|
+ /\ \
|
|
|
+ \ \ \___ ___ ___ ___ __ _____ __ __ __
|
|
|
+ \ \ _ `\ / __`\ /' __` __`\ /'__`\ /\ '__`\ /'__`\ /'_ `\ /'__`\
|
|
|
+ \ \ \ \ \/\ \L\ \/\ \/\ \/\ \/\ __/ \ \ \L\ \/\ \L\.\_/\ \L\ \/\ __/
|
|
|
+ \ \_\ \_\ \____/\ \_\ \_\ \_\ \____\ \ \ ,__/\ \__/.\_\ \____ \ \____\
|
|
|
+ \/_/\/_/\/___/ \/_/\/_/\/_/\/____/ \ \ \/ \/__/\/_/\/___L\ \/____/
|
|
|
+ \ \_\ /\____/
|
|
|
+ \/_/ \_/__/
|
|
|
+ **PCL2新闻主页**
|
|
|
+ By: Light Beacon(最亮的信标)
|
|
|
+ 维护:最亮的信标(Light Beacon)、空辰KC
|
|
|
+ 订阅地址:https://news.bugjump.net
|
|
|
+ 仓库:https://github.com/Light-Beacon/PCL2-NewsHomepage
|
|
|
+ 协议:CC BY-NC-SA 4.0
|
|
|
+-->
|
|
|
+<StackPanel>
|
|
|
+ <StackPanel Margin="0,-10,0,0">
|
|
|
+ <!--Animations Starts-->
|
|
|
+ <StackPanel.Triggers>
|
|
|
+ <EventTrigger RoutedEvent="StackPanel.Loaded">
|
|
|
+ <BeginStoryboard>
|
|
|
+ <Storyboard x:Name="animation1" RepeatBehavior="Forever">
|
|
|
+ <ColorAnimation Storyboard.TargetName="NewsHint" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" From="#FF000000" To="#FF000000" Duration="0:0:0" />
|
|
|
+ <ColorAnimation BeginTime="0:0:5" Storyboard.TargetName="NewsHint" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" From="#FF000000" To="#00000000" Duration="0:0:1" />
|
|
|
+ <ColorAnimation BeginTime="0:0:13" Storyboard.TargetName="NewsHint" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" From="#00000000" To="#FF000000" Duration="0:0:1" />
|
|
|
+ <ColorAnimation Storyboard.TargetName="Hint2" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" From="#00000000" To="#00000000" Duration="0:0:0" />
|
|
|
+ <ColorAnimation BeginTime="0:0:6" Storyboard.TargetName="Hint2" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" From="#00000000" To="#FF000000" Duration="0:0:1" />
|
|
|
+ <ColorAnimation BeginTime="0:0:12" Storyboard.TargetName="Hint2" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" From="#FF000000" To="#00000000" Duration="0:0:1" />
|
|
|
+ </Storyboard>
|
|
|
+ </BeginStoryboard>
|
|
|
+ </EventTrigger>
|
|
|
+ </StackPanel.Triggers>
|
|
|
+ <!--Animations Ends-->
|
|
|
+ <StackPanel.Resources>
|
|
|
+ <!--Template Starts-->
|
|
|
+ <!--Template Ends-->
|
|
|
+ <!--Styles Starts-->
|
|
|
+ <!--即将弃用-->
|
|
|
+ <Style TargetType="Ellipse">
|
|
|
+ <Setter Property="Fill" Value="{DynamicResource ColorBrush3}" />
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Left" />
|
|
|
+ <Setter Property="Height" Value="8" />
|
|
|
+ <Setter Property="Width" Value="8" />
|
|
|
+ <Setter Property="Margin" Value="0,0,10,0" />
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="TextBlock">
|
|
|
+ <Setter Property="TextWrapping" Value="Wrap" />
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Left" />
|
|
|
+ <Setter Property="FontSize" Value="14" />
|
|
|
+ <Setter Property="Foreground" Value="Black" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="PGTextBlock" TargetType="TextBlock">
|
|
|
+ <Setter Property="TextWrapping" Value="Wrap" />
|
|
|
+ <Setter Property="Margin" Value="25,5,0,5" />
|
|
|
+ <Setter Property="FontSize" Value="16" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="ListItem" TargetType="TextBlock">
|
|
|
+ <Setter Property="Margin" Value="10,-13.5,5,15" />
|
|
|
+ <Setter Property="TextWrapping" Value="Wrap" />
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Left" />
|
|
|
+ <Setter Property="FontSize" Value="14" />
|
|
|
+ <Setter Property="Foreground" Value="Black" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="ListItemLink" TargetType="local:MyTextButton">
|
|
|
+ <Setter Property="Margin" Value="15,-15,5,15" />
|
|
|
+ <Setter Property="TextElement.FontSize" Value="20" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="ListStyle" TargetType="StackPanel">
|
|
|
+ <Setter Property="Margin" Value="22,0,14,5" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="Read" TargetType="local:MyButton">
|
|
|
+ <Setter Property="Margin" Value="0,0,5,5" />
|
|
|
+ <Setter Property="Height" Value="35" />
|
|
|
+ <Setter Property="Padding" Value="13,0,13,0" />
|
|
|
+ <Setter Property="EventType" Value="打开网页" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="Read0" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
|
|
|
+ <Setter Property="Grid.Column" Value="0" />
|
|
|
+ <Setter Property="Text" Value="Minecraft Wiki" />
|
|
|
+ <!--<Setter Property="ColorType" Value="Highlight"/>-->
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="Read0+" TargetType="local:MyButton" BasedOn="{StaticResource Read0}">
|
|
|
+ <Setter Property="Grid.Row" Value="0" />
|
|
|
+ <Setter Property="Grid.ColumnSpan" Value="3" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="Read1" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
|
|
|
+ <Setter Property="Grid.Column" Value="1" />
|
|
|
+ <Setter Property="Text" Value="MCBBS" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="Read1+" TargetType="local:MyButton" BasedOn="{StaticResource Read1}">
|
|
|
+ <Setter Property="Grid.Column" Value="0" />
|
|
|
+ <Setter Property="Grid.Row" Value="1" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="Read2" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
|
|
|
+ <Setter Property="Grid.Column" Value="2" />
|
|
|
+ <Setter Property="Text" Value="官网" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="Read2+" TargetType="local:MyButton" BasedOn="{StaticResource Read2}">
|
|
|
+ <Setter Property="Grid.Column" Value="1" />
|
|
|
+ <Setter Property="Grid.Row" Value="1" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="ReadR" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
|
|
|
+ <Setter Property="Grid.Column" Value="3" />
|
|
|
+ <Setter Property="Text" Value="Reddit" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="ReadR+" TargetType="local:MyButton" BasedOn="{StaticResource ReadR}">
|
|
|
+ <Setter Property="Grid.Column" Value="2" />
|
|
|
+ <Setter Property="Grid.Row" Value="1" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="Code" TargetType="Border">
|
|
|
+ <Setter Property="Background" Value="#e0e0e0" />
|
|
|
+ <Setter Property="BorderBrush" Value="#444" />
|
|
|
+ <Setter Property="CornerRadius" Value="1" />
|
|
|
+ <Setter Property="Margin" Value="5,0,5,0" />
|
|
|
+ <Setter Property="BorderThickness" Value="1" />
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="TextBox">
|
|
|
+ <Setter Property="Background" Value="{x:Null}" />
|
|
|
+ <Setter Property="Padding" Value="3,0,3,0" />
|
|
|
+ <Setter Property="IsReadOnly" Value="True" />
|
|
|
+ <Setter Property="BorderBrush" Value="{x:Null}" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="verImgBdr" TargetType="Border">
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
+ <Setter Property="BorderThickness" Value="4" />
|
|
|
+ <Setter Property="VerticalAlignment" Value="Top" />
|
|
|
+ <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush3}" />
|
|
|
+ <Setter Property="CornerRadius" Value="7" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="verTxtBlk" TargetType="TextBlock">
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
+ <Setter Property="TextAlignment" Value="Center" />
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource ColorBrush7}" />
|
|
|
+ <Setter Property="Width" Value="180" />
|
|
|
+ <Setter Property="TextWrapping" Value="Wrap" />
|
|
|
+ <Setter Property="FontSize" Value="20" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="imgTitle" TargetType="TextBlock">
|
|
|
+ <Setter Property="FontSize" Value="14" />
|
|
|
+ <Setter Property="Foreground" Value="#FF777777" />
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
+ <Setter Property="Margin" Value="0,0,0,15" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="verTxtBdr" TargetType="Border">
|
|
|
+ <Setter Property="Margin" Value="0,-20,-1,10" />
|
|
|
+ <Setter Property="Background" Value="{DynamicResource ColorBrush3}" />
|
|
|
+ <Setter Property="Width" Value="190" />
|
|
|
+ <Setter Property="Height" Value="36" />
|
|
|
+ <Setter Property="CornerRadius" Value="2" />
|
|
|
+ <Setter Property="BorderThickness" Value="0,0,0,3" />
|
|
|
+ <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush2}" />
|
|
|
+ </Style>
|
|
|
+ <!--h2-->
|
|
|
+ <Style x:Key="h2" TargetType="TextBlock">
|
|
|
+ <Setter Property="FontSize" Value="24" />
|
|
|
+ <Setter Property="Padding" Value="15,5" />
|
|
|
+ <Setter Property="Margin" Value="5,15,5,10" />
|
|
|
+ <Setter Property="FontWeight" Value="Bold" />
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource ColorBrush3}" />
|
|
|
+ </Style>
|
|
|
+ <!--h3-->
|
|
|
+ <Style x:Key="h3" TargetType="TextBlock">
|
|
|
+ <Setter Property="FontSize" Value="20" />
|
|
|
+ <Setter Property="Padding" Value="30,0" />
|
|
|
+ <Setter Property="Margin" Value="-10,0,10,17" />
|
|
|
+ <Setter Property="FontWeight" Value="Bold" />
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource ColorBrush4}" />
|
|
|
+ </Style>
|
|
|
+ <!--h4-->
|
|
|
+ <Style x:Key="h4" TargetType="TextBlock">
|
|
|
+ <Setter Property="FontSize" Value="16" />
|
|
|
+ <Setter Property="Padding" Value="30,0" />
|
|
|
+ <Setter Property="Margin" Value="5,0,10,10" />
|
|
|
+ <Setter Property="FontWeight" Value="Bold" />
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource ColorBrush4}" />
|
|
|
+ </Style>
|
|
|
+ <!--footnote-->
|
|
|
+ <Style x:Key="footnote" TargetType="TextBlock">
|
|
|
+ <Setter Property="FontSize" Value="14" />
|
|
|
+ <Setter Property="Padding" Value="30,0" />
|
|
|
+ <Setter Property="Margin" Value="0,20,0,15" />
|
|
|
+ <Setter Property="Foreground" Value="#FF777777" />
|
|
|
+ <Setter Property="TextWrapping" Value="Wrap" />
|
|
|
+ </Style>
|
|
|
+ <!--ButtonNameBorder-->
|
|
|
+ <!--ImageButtonStyle-->
|
|
|
+ <Style x:Key="ImgBtnImg" TargetType="Image">
|
|
|
+ <Setter Property="MaxWidth" Value="70px" />
|
|
|
+ <Setter Property="MaxHeight" Value="70px" />
|
|
|
+ <Setter Property="Margin" Value="3" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="ImgBtnBdr" TargetType="Border">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource ColorBrush7}" />
|
|
|
+ <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush3}" />
|
|
|
+ <Setter Property="BorderThickness" Value="2px" />
|
|
|
+ <Setter Property="CornerRadius" Value="5" />
|
|
|
+ <Setter Property="Margin" Value="2px" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="NameBdr" TargetType="Border">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource ColorBrush3}" />
|
|
|
+ <Setter Property="BorderThickness" Value="0" />
|
|
|
+ <Setter Property="CornerRadius" Value="5,5,0,0" />
|
|
|
+ <Setter Property="Margin" Value="-2,-2,-2,2" />
|
|
|
+ </Style>
|
|
|
+ <Style x:Key="ImgBtnTxt" TargetType="TextBlock">
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
+ <Setter Property="Grid.Row" Value="0" />
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource ColorBrush7}" />
|
|
|
+ <Setter Property="FontSize" Value="12px" />
|
|
|
+ <Setter Property="Margin" Value="8px,2px" />
|
|
|
+ </Style>
|
|
|
+ </StackPanel.Resources>
|
|
|
+ </StackPanel>
|
|
|
+</StackPanel>
|
|
|
+<!-- 由 新闻主页构建器 生成,生成时间:2023/5/29 23:10:03 -->
|