chore: 调整干员识别部分角色字体颜色及排序

This commit is contained in:
uye
2026-03-08 21:39:01 +08:00
parent a4c09bda81
commit 453ccc105d

View File

@@ -1047,7 +1047,7 @@ public class ToolboxViewModel : Screen
/// <summary>
/// Gets the resource key based on rarity
/// </summary>
public string RarityColorResourceKey => IsPallas ? "HiddenMedalBrush" : $"Star{Rarity}OperatorLogBrush";
public string RarityColorResourceKey => IsPallas ? "AchievementBrush.Rare.LinearGradientBrush" : $"Star{Rarity}OperatorLogBrush";
public bool Equals(Operator? other) => other != null && Name == other.Name && Rarity == other.Rarity;
@@ -1057,7 +1057,7 @@ public class ToolboxViewModel : Screen
public override string ToString() => $"{Name} (★{Rarity})";
private bool IsPallas => Id == "char_485_pallas";
public bool IsPallas => Id == "char_485_pallas";
private static int ExtractIdNumber(string id)
{
@@ -1126,7 +1126,8 @@ public class ToolboxViewModel : Screen
}
return [.. list
.OrderByDescending(x => x.Rarity)
.OrderByDescending(x => x.IsPallas)
.ThenByDescending(x => x.Rarity)
.ThenByDescending(x => x.Elite)
.ThenByDescending(x => x.Level)
.ThenByDescending(x => x.Potential)