From 453ccc105d4e40ae67d6ba2e8ab283d8ab6f7bfe Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Sun, 8 Mar 2026 21:39:01 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=E5=B9=B2=E5=91=98?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E9=83=A8=E5=88=86=E8=A7=92=E8=89=B2=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E9=A2=9C=E8=89=B2=E5=8F=8A=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/ViewModels/UI/ToolboxViewModel.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/MaaWpfGui/ViewModels/UI/ToolboxViewModel.cs b/src/MaaWpfGui/ViewModels/UI/ToolboxViewModel.cs index 9f1c171a46..67ce39d307 100644 --- a/src/MaaWpfGui/ViewModels/UI/ToolboxViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/ToolboxViewModel.cs @@ -1047,7 +1047,7 @@ public class ToolboxViewModel : Screen /// /// Gets the resource key based on rarity /// - 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)