Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyaocz committed Mar 17, 2020
1 parent 7be59fe commit e9011ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BiliBili.UWP/Controls/CommentV2Control.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ public SolidColorBrush LikeColor
}
else
{
return Application.Current.Resources.MergedDictionaries[0]["Bili-ForeColor"] as SolidColorBrush;
return (Application.Current.Resources.ThemeDictionaries["Light"] as ResourceDictionary)["Bili-ForeColor"] as SolidColorBrush;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions BiliBili.UWP/Controls/DynamicControls.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private async void btn_Like_Click(object sender, RoutedEventArgs e)
item.desc.is_liked = 1;
item.desc.like += 1;

item.desc.likeColor = Application.Current.Resources.MergedDictionaries[0]["Bili-ForeColor"] as SolidColorBrush;
item.desc.likeColor = (Application.Current.Resources.ThemeDictionaries["Light"] as ResourceDictionary)["Bili-ForeColor"] as SolidColorBrush;
return;
}
if (item.desc.is_liked == 1 && d)
Expand Down Expand Up @@ -755,7 +755,7 @@ public SolidColorBrush likeColor
}
else
{
return Application.Current.Resources.MergedDictionaries[0]["Bili-ForeColor"] as SolidColorBrush;
return (Application.Current.Resources.ThemeDictionaries["Light"] as ResourceDictionary)["Bili-ForeColor"] as SolidColorBrush;
}
}
set
Expand Down

0 comments on commit e9011ea

Please sign in to comment.