Skip to content

Commit

Permalink
Change the talent activation button style to match the one in the shi…
Browse files Browse the repository at this point in the history
…p comparison page
  • Loading branch information
iTTou committed Oct 28, 2023
1 parent 10e8a4d commit 997f4a3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</MudSelect>
</MudItem>
<MudItem xs="5" Style="text-align: center" Class="mb-n2">
<MudButton Disabled="@(!ViewModel.SkillActivationButtonEnabled)" Variant="@GetSkillOrTalentsEnabledIndicator()" Color="Color.Primary" OnClick="@OpenSkillDialog" Size="Size.Small">
<MudButton Disabled="@(!ViewModel.SkillActivationButtonEnabled)" Variant="Variant.Outlined" Color="@(GetSkillOrTalentsEnabledIndicator())" OnClick="@OpenSkillDialog">
<MudText Typo="Typo.body2">
@Localizer.GetAppLocalization(nameof(Translation.CaptainSkillSelector_SkillTalent)).Localization
</MudText>
Expand Down Expand Up @@ -195,9 +195,9 @@
return !skillItem.CanExecute && !ViewModel!.SkillOrderList.Any(x => x.SkillNumber.Equals(skillItem.Skill.SkillNumber)) ? @"opacity: 0.4" : string.Empty;
}

private Variant GetSkillOrTalentsEnabledIndicator()
private Color GetSkillOrTalentsEnabledIndicator()
{
return ViewModel!.ArHpPercentage < 100 || ViewModel.TalentOrConditionalSkillEnabled ? Variant.Filled : Variant.Outlined;
return ViewModel!.ArHpPercentage < 100 || ViewModel.TalentOrConditionalSkillEnabled ? Color.Primary : Color.Default;
}

private int GetImageSize()
Expand Down

0 comments on commit 997f4a3

Please sign in to comment.