Skip to content

Commit

Permalink
这是一个悲伤的更新 V0.0.7
Browse files Browse the repository at this point in the history
我忘了我更新了啥了
  • Loading branch information
MFn233 authored Feb 9, 2024
1 parent 4369454 commit 4bc3ecb
Showing 1 changed file with 33 additions and 11 deletions.
44 changes: 33 additions & 11 deletions Custom.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,43 @@
\/_____/\/_/\/_/\/_/\/_/\ \ \/ \/____/\/____/ \/_/ \/_/\/__/\/_/ \/_/\/_/\/_/\ \ \/ \/__/\/_/\/___L\ \/____/
\ \_\ \ \_\ /\____/
\/_/ \/_/ \_/__/
\-by MFn-\
\-https://github.com/MFn233/PCL-Mainpage-\
\- by MFn -\
\- https://github.com/MFn233/PCL-Mainpage -\
-->
<local:MyCard Margin="0,0,0,12" Title="欢迎页" CanSwap="True" IsSwaped="False">
<StackPanel Margin="24,40,24,15">
<TextBlock HorizontalAlignment="Center" Margin="0,0,0,12" Foreground="{DynamicResource ColorBrush2}" FontSize="20"
Text="欢迎使用Simple Mainpage!" />
<local:MyHint Text="主页作者: MFn233" Margin="0,0,0,0" Padding="0,2,0,2" IsWarn="False" />
<!-- <local:MyHint Text="主页作者: MFn233" Margin="0,0,0,0" Padding="0,2,0,2" IsWarn="False" /> -->
<!--这玩意可以不用放了-->
<Calendar HorizontalAlignment="Center" Margin="0,12,0,10" Grid.Column="0"/>
<!--因为“你知道吗”在启动游戏的时候会出现,所以我只在这里设置了回声洞-->
<TextBlock Margin="5,0,5,12" TextWrapping="Wrap" HorizontalAlignment="Center" Foreground="{DynamicResource ColorBrush1}" Text="{cave}" />
<local:MyButton Margin="0,-10,-5,0" Width="15" Height="15" HorizontalAlignment="Right" ToolTip="刷新" EventType="刷新主页" EventData="回声洞">
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="5*" />
<ColumnDefinition Width="0.3*" />
<ColumnDefinition Width="0.5*" />
</Grid.ColumnDefinitions>
<local:MyIconButton Grid.Column="1" LogoScale="1.2" Logo="M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z"
Height="21" Margin="0,5,0,0"
ToolTip="Minecraft新闻(作者:最亮的信标)" EventData="https://news.bugjump.net/News.json" EventType="打开帮助" VerticalAlignment="Bottom"/>
<local:MyIconButton Grid.Column="2" LogoScale="1.2" Logo="M256.455,8C322.724,8.119,382.892,34.233,427.314,76.685L463.029,40.97C478.149,25.851,504,36.559,504,57.941L504,192C504,205.255,493.255,216,480,216L345.941,216C324.559,216,313.851,190.149,328.97,175.029L370.72,133.279C339.856,104.38 299.919,88.372 257.49,88.006 165.092,87.208 87.207,161.983 88.0059999999999,257.448 88.764,348.009 162.184,424 256,424 297.127,424 335.997,409.322 366.629,382.444 371.372,378.283 378.535,378.536 382.997,382.997L422.659,422.659C427.531,427.531 427.29,435.474 422.177,440.092 378.202,479.813 319.926,504 256,504 119.034,504 8.001,392.967 8,256.002 7.999,119.193 119.646,7.755 256.455,8z"
Height="21" Margin="0,5,0,0"
ToolTip="点此刷新" EventData="回声洞" EventType="刷新主页" VerticalAlignment="Bottom"/>
</Grid>
<!-- <local:MyButton Margin="0,-10,-5,0" Width="15" Height="15" HorizontalAlignment="Right" ToolTip="刷新" EventType="刷新主页" EventData="回声洞">
<Path Fill="{DynamicResource ColorBrush5}" Stretch="Fill" Width="15" Height="15">
<Path.Data>
<PathGeometry FillRule="Nonzero" Figures="M256.455,8C322.724,8.119,382.892,34.233,427.314,76.685L463.029,40.97C478.149,25.851,504,36.559,504,57.941L504,192C504,205.255,493.255,216,480,216L345.941,216C324.559,216,313.851,190.149,328.97,175.029L370.72,133.279C339.856,104.38 299.919,88.372 257.49,88.006 165.092,87.208 87.207,161.983 88.0059999999999,257.448 88.764,348.009 162.184,424 256,424 297.127,424 335.997,409.322 366.629,382.444 371.372,378.283 378.535,378.536 382.997,382.997L422.659,422.659C427.531,427.531 427.29,435.474 422.177,440.092 378.202,479.813 319.926,504 256,504 119.034,504 8.001,392.967 8,256.002 7.999,119.193 119.646,7.755 256.455,8z"/>
</Path.Data>
</Path>
<!-- 网上随便抄来的刷新按钮。。。因为path不会画 -->
</local:MyButton>
</local:MyButton> -->
<!--
网上随便抄来的刷新按钮。。。因为path不会画
这是旧的刷新主页按钮设计,现在我改成了local:myiconbutton
-->
</StackPanel>
</local:MyCard>
<local:MyCard Margin="0,0,0,12" Title="网页捷径" CanSwap="True" IsSwaped="True">
Expand All @@ -39,7 +57,7 @@
</Grid.ColumnDefinitions>
<local:MyTextBox Margin="0,0,0,10" Name="site" Height="30" Grid.Column="0"/>
<local:MyButton EventType="打开网页" EventData="{Binding ElementName=site,Path=Text}" Text="打开网页" Margin="5,0,0,10" Height="30" Grid.Column="1" Padding="2,0,2,0" ColorType="Highlight"/>
</Grid>
</Grid>
<local:MyCard Margin="0,0,0,6" Title="常用网站" CanSwap="True" IsSwaped="False">
<StackPanel Margin="24,40,24,15">
<local:MyListItem Margin="-2,0,0,0" Logo="https://www.baidu.com/favicon.ico" Title="百度" Info="百度一下,你就知道" EventType="打开网页" EventData="https://www.baidu.com/" Type="Clickable" />
Expand All @@ -49,7 +67,7 @@
<local:MyListItem Margin="-2,0,0,0" Logo="https://static.zhihu.com/heifetz/favicon.ico" Title="知乎" Info="有问题,就会有答案" EventType="打开网页" EventData="https://www.zhihu.com/" Type="Clickable" />
</StackPanel>
</local:MyCard>
<local:MyCard Margin="0,0,0,12" Title="Minecraft相关" CanSwap="True" IsSwaped="False">
<local:MyCard Margin="0,0,0,12" Title="Minecraft相关" CanSwap="True" IsSwaped="True">
<StackPanel Margin="24,40,24,15">
<local:MyListItem Margin="-2,0,0,0" Logo="pack://application:,,,/images/Blocks/Grass.png"
Title="Minecraft官网" Info="Minecraft国际版官网" EventType="打开网页" EventData="https://www.minecraft.net" Type="Clickable" />
Expand Down Expand Up @@ -123,14 +141,18 @@
或许我会找其他正常点的api替代,也或许以后都不会再有了
api: https://www.loliapi.com/
-->
<local:MyButton Grid.Column="1" Margin="0,0,0,0" Text="启动Minecraft基岩版" EventType="打开网页" EventData="minecraft://" ToolTip="如果你的电脑上安装了Minecraft基岩版,按下这个按钮将会启动它。" />
<!-- 别不信,真有效 -->
<local:MyButton Grid.Column="1" Margin="0,0,0,0" Text="启动Minecraft基岩版" EventType="打开网页" EventData="minecraft://" ToolTip="如果你的电脑上安装了Minecraft基岩版,按下这个按钮将会以URL Scheme的方式启动它。" />
<!-- 别不信,真有效
原理是通过url scheme
其实不是什么很深奥的玩意-->
</Grid>
<local:MyListItem Margin="-2,12,0,0" Logo="https://zh.minecraft.wiki/favicon.ico" Title="【重要!】中文MC Wiki迁移通知" Info="中文MinecraftWiki现已迁移至zh.minecraft.wiki,请不要再访问旧的网站!" EventType="打开网页" EventData="https://zh.minecraft.wiki/w/Minecraft_Wiki:%E8%BF%81%E7%A7%BB%E9%80%9A%E7%9F%A5" Type="Clickable" />
</StackPanel>
</local:MyCard>
<local:MyCard Margin="0,0,0,12" Title="关于" CanSwap="True" IsSwaped="True">
<StackPanel Margin="24,40,24,15">
<local:MyListItem Margin="-2,0,0,12" Logo="https://zh.minecraft.wiki/favicon.ico" Title="【重要!】中文MC Wiki迁移通知" Info="中文MinecraftWiki现已迁移至zh.minecraft.wiki,请不要再访问旧的网站!" EventType="打开网页" EventData="https://zh.minecraft.wiki/w/Minecraft_Wiki:%E8%BF%81%E7%A7%BB%E9%80%9A%E7%9F%A5" Type="Clickable" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
Expand Down

0 comments on commit 4bc3ecb

Please sign in to comment.