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 May 4, 2020
1 parent 53329d7 commit 07c1d9c
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 2 deletions.
5 changes: 5 additions & 0 deletions PixivFSUWP/Assets/Pixiv_Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions PixivFSUWP/Controls/Pixiv_Logo.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Path
x:Class="PixivFSUWP.Controls.Pixiv_Logo"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:PixivFSUWP.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="400"
Fill="{ThemeResource SystemBaseHighColor}"
Data="M51.742 23.355c-4.64-4.026-11.134-6.35-18.683-6.35C13.382 17.006 0 32.09 0 32.09l3.77 5.945s2.088.174.983-3.328c.954-1.79 2.82-4.2 6.466-6.98v39.6c-1.572.44-3.65 1.268-2.234 2.675H19.82c1.43-1.42-.823-2.276-2.195-2.675v-9.342s7.427 2.896 15.434 2.896c7.034 0 13.435-2.08 18.196-5.835 4.76-3.733 7.83-9.308 7.81-15.68.014-6.257-2.682-12-7.324-16.01zM46 51.92c-3.292 3.228-8.08 5.27-13.602 5.266-6.162.003-11.348-1.182-14.773-2.857V24.62c3.758-2.653 9.852-4.287 14.773-4.277 5.98.005 10.674 2.25 13.85 5.654 3.168 3.426 4.898 7.977 4.914 13.267-.02 5.154-1.87 9.4-5.162 12.655zm22.65-34.914h-2.207c-.98 0-1.774.79-1.774 1.763v40.498c0 .973.793 1.763 1.773 1.763h2.206c.978 0 1.773-.788 1.773-1.762v-40.5c0-.972-.795-1.762-1.774-1.762zm57.66 0h-2.206c-.98 0-1.774.79-1.774 1.763v40.498c0 .973.793 1.763 1.774 1.763h2.206c.98 0 1.774-.788 1.774-1.762v-40.5c0-.972-.796-1.762-1.774-1.762zm51.872 0h-2.053c-1.614 0-2.06.207-2.785 1.654-.724 1.44-16.7 32.906-16.7 32.906s-15.98-31.466-16.7-32.906c-.728-1.447-1.173-1.654-2.786-1.654h-2.054c-1.51 0-2.326.667-1.475 2.366.854 1.7 20.53 40.088 20.53 40.088.517.972 1.463 1.57 2.486 1.57 1.02 0 1.965-.598 2.483-1.57.033-.07 19.676-38.39 20.525-40.088.85-1.7.038-2.366-1.473-2.366zM108.886 59.56c.834 1.054 1.432 1.47 3.044 1.47h3.308c2.082 0 1.35-.94.76-1.71-1.47-1.927-15.97-20.25-15.97-20.25s15.022-18.425 16.493-20.353c.59-.77 1.323-1.71-.76-1.71h-3.307c-1.613 0-2.212.415-3.045 1.472-.832 1.053-13.04 15.97-13.04 15.97S84.15 19.534 83.317 18.48c-.833-1.058-1.432-1.474-3.044-1.474h-3.308c-2.08 0-1.35.94-.76 1.71 1.47 1.93 16.503 20.355 16.503 20.355S77.77 57.394 76.3 59.32c-.59.77-1.322 1.71.76 1.71h3.308c1.613 0 2.21-.416 3.045-1.47.832-1.057 12.954-15.872 12.954-15.872l12.52 15.87zM67.54 0c-1.317 0-2.412.436-3.29 1.307-.875.87-1.314 1.96-1.314 3.268 0 1.306.44 2.396 1.315 3.267.878.87 1.973 1.307 3.29 1.307 1.314 0 2.41-.437 3.286-1.308.877-.87 1.316-1.96 1.316-3.267s-.44-2.397-1.316-3.268C69.95.437 68.854 0 67.54 0zm57.66 0c-1.314 0-2.41.436-3.285 1.307-.878.87-1.316 1.96-1.316 3.268 0 1.306.437 2.396 1.315 3.267.876.87 1.97 1.307 3.286 1.307 1.317 0 2.412-.437 3.29-1.308.875-.87 1.314-1.96 1.314-3.267s-.44-2.397-1.314-3.268C127.612.437 126.517 0 125.2 0z"
/>
27 changes: 27 additions & 0 deletions PixivFSUWP/Controls/Pixiv_Logo.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

//https://go.microsoft.com/fwlink/?LinkId=234236 上介绍了“用户控件”项模板

namespace PixivFSUWP.Controls
{
public sealed partial class Pixiv_Logo
{
public Pixiv_Logo()
{
this.InitializeComponent();
}
}
}
6 changes: 5 additions & 1 deletion PixivFSUWP/LoginPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock HorizontalAlignment="Center" Margin="0,150,0,0" x:Uid="LoginBanner"/>
<Image Source="{ThemeResource PixivText}"/>

<Viewbox Margin="80 20 80 0">
<ctrl:Pixiv_Logo xmlns:ctrl="using:PixivFSUWP.Controls"/>
</Viewbox>
<!--<Image Source="{ThemeResource PixivText}"/>-->
<StackPanel x:Name="stkTxts" Grid.Row="1" Margin="20,20,20,10" HorizontalAlignment="Stretch" VerticalAlignment="Center">
<TextBlock Margin="5" x:Uid="Username"/>
<TextBox x:Name="txtUserName" Margin="5"/>
Expand Down
5 changes: 4 additions & 1 deletion PixivFSUWP/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
SelectionChanged="NavControl_SelectionChanged"
IsSettingsVisible="False" BackRequested="NavControl_BackRequested">
<NavigationView.PaneHeader>
<Image Source="{ThemeResource PixivHeader}"/>
<Viewbox Height="20" Margin="20 0">
<ctrl:Pixiv_Logo xmlns:ctrl="using:PixivFSUWP.Controls"/>
</Viewbox>
<!--<Image Source="{ThemeResource PixivHeader}"/>-->
</NavigationView.PaneHeader>
<NavigationView.PaneFooter>
<StackPanel Orientation="Horizontal">
Expand Down
7 changes: 7 additions & 0 deletions PixivFSUWP/PixivFSUWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="Controls\Pixiv_Logo.xaml.cs">
<DependentUpon>Pixiv_Logo.xaml</DependentUpon>
</Compile>
<Compile Include="BigImage.xaml.cs">
<DependentUpon>BigImage.xaml</DependentUpon>
</Compile>
Expand Down Expand Up @@ -237,6 +240,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="Controls\Pixiv_Logo.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="BigImage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
Expand Down

0 comments on commit 07c1d9c

Please sign in to comment.