整理代码

croire 3 years ago
parent fcf388870f
commit 5ffdfcab77

@ -196,7 +196,7 @@
Fill = "#FF000000"
};
BangumiFollow = new VectorImage
Subscription = new VectorImage
{
Height = 24,
Width = 24,
@ -213,7 +213,7 @@
Fill = "#FF000000"
};
Toview = new VectorImage
ToView = new VectorImage
{
Height = 24,
Width = 24,
@ -257,8 +257,8 @@
public VectorImage BindingPhone { get; private set; }
public VectorImage FavoriteOutline { get; private set; }
public VectorImage BangumiFollow { get; private set; }
public VectorImage Toview { get; private set; }
public VectorImage Subscription { get; private set; }
public VectorImage ToView { get; private set; }
public VectorImage History { get; private set; }
}
}

@ -37,6 +37,19 @@
<system:String x:Key="Logout">退出登录</system:String>
<system:String x:Key="MySpaceWait">请稍等,马上就好~</system:String>
<system:String x:Key="Level">等级</system:String>
<system:String x:Key="Following">关注数</system:String>
<system:String x:Key="Whisper">悄悄关注数</system:String>
<system:String x:Key="Follower">粉丝数</system:String>
<system:String x:Key="Black">黑名单数</system:String>
<system:String x:Key="Moral">节操值</system:String>
<system:String x:Key="Silence">封禁状态</system:String>
<system:String x:Key="Favorites">收藏夹</system:String>
<system:String x:Key="Subscription">我的订阅</system:String>
<system:String x:Key="ToView">稍后再看</system:String>
<system:String x:Key="History">历史记录</system:String>
<system:String x:Key="Normal">正常</system:String>
<system:String x:Key="Ban">封停</system:String>
<!-- VideoDetail -->
<system:String x:Key="CopyCover">复制封面图片</system:String>
@ -219,7 +232,7 @@
<system:String x:Key="ExtractVideo">提取视频</system:String>
<!-- PublicFavorites -->
<system:String x:Key="Favorites">收藏夹</system:String>
<system:String x:Key="PublicFavorites">收藏夹</system:String>
<system:String x:Key="FavoritesMediaCount">个内容</system:String>
<!-- Dialog -->

@ -385,21 +385,21 @@ namespace DownKyi.ViewModels
CurrentExp = "--/--";
StatusList.Clear();
StatusList.Add(new SpaceItem { Title = "关注数", Subtitle = "--" });
StatusList.Add(new SpaceItem { Title = "悄悄关注数", Subtitle = "--" });
StatusList.Add(new SpaceItem { Title = "粉丝数", Subtitle = "--" });
StatusList.Add(new SpaceItem { Title = "黑名单数", Subtitle = "--" });
StatusList.Add(new SpaceItem { Title = "节操值", Subtitle = "--" });
StatusList.Add(new SpaceItem { Title = "封禁状态", Subtitle = "N/A" });
StatusList.Add(new SpaceItem { Title = DictionaryResource.GetString("Following"), Subtitle = "--" });
StatusList.Add(new SpaceItem { Title = DictionaryResource.GetString("Whisper"), Subtitle = "--" });
StatusList.Add(new SpaceItem { Title = DictionaryResource.GetString("Follower"), Subtitle = "--" });
StatusList.Add(new SpaceItem { Title = DictionaryResource.GetString("Black"), Subtitle = "--" });
StatusList.Add(new SpaceItem { Title = DictionaryResource.GetString("Moral"), Subtitle = "--" });
StatusList.Add(new SpaceItem { Title = DictionaryResource.GetString("Silence"), Subtitle = "N/A" });
PackageList.Clear();
PackageList.Add(new SpaceItem { Image = NormalIcon.Instance().FavoriteOutline, Title = "收藏夹" });
PackageList.Add(new SpaceItem { Image = NormalIcon.Instance().BangumiFollow, Title = "我的订阅" });
PackageList.Add(new SpaceItem { Image = NormalIcon.Instance().Toview, Title = "稍后再看" });
PackageList.Add(new SpaceItem { Image = NormalIcon.Instance().History, Title = "历史记录" });
PackageList.Add(new SpaceItem { Image = NormalIcon.Instance().FavoriteOutline, Title = DictionaryResource.GetString("Favorites") });
PackageList.Add(new SpaceItem { Image = NormalIcon.Instance().Subscription, Title = DictionaryResource.GetString("Subscription") });
PackageList.Add(new SpaceItem { Image = NormalIcon.Instance().ToView, Title = DictionaryResource.GetString("ToView") });
PackageList.Add(new SpaceItem { Image = NormalIcon.Instance().History, Title = DictionaryResource.GetString("History") });
NormalIcon.Instance().FavoriteOutline.Fill = DictionaryResource.GetColor("ColorPrimary");
NormalIcon.Instance().BangumiFollow.Fill = DictionaryResource.GetColor("ColorPrimary");
NormalIcon.Instance().Toview.Fill = DictionaryResource.GetColor("ColorPrimary");
NormalIcon.Instance().Subscription.Fill = DictionaryResource.GetColor("ColorPrimary");
NormalIcon.Instance().ToView.Fill = DictionaryResource.GetColor("ColorPrimary");
NormalIcon.Instance().History.Fill = DictionaryResource.GetColor("ColorPrimary");
SelectedPackage = -1;
@ -493,9 +493,13 @@ namespace DownKyi.ViewModels
StatusList[4].Subtitle = myInfo.Moral.ToString();
// 封禁状态
if (myInfo.Silence == 0)
{ StatusList[5].Subtitle = "正常"; }
{
StatusList[5].Subtitle = DictionaryResource.GetString("Normal");
}
else if (myInfo.Silence == 1)
{ StatusList[5].Subtitle = "封停"; }
{
StatusList[5].Subtitle = DictionaryResource.GetString("Ban");
}
}
else
{

@ -40,7 +40,7 @@
VerticalAlignment="Center"
FontSize="16"
Foreground="{DynamicResource BrushTextDark}"
Text="{DynamicResource Favorites}" />
Text="{DynamicResource PublicFavorites}" />
</StackPanel>
</Button>
</Grid>

Loading…
Cancel
Save