Skip to content

Commit

Permalink
fix style for the talents activation button when talents and conditio…
Browse files Browse the repository at this point in the history
…nal modifiers are activated
  • Loading branch information
iTTou committed Oct 28, 2023
1 parent 7f60eb3 commit 10e8a4d
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="Variant.Outlined" Color="Color.Primary" Style="@GetSkillOrTalentsEnabledIndicator()" OnClick="@OpenSkillDialog">
<MudButton Disabled="@(!ViewModel.SkillActivationButtonEnabled)" Variant="@GetSkillOrTalentsEnabledIndicator()" Color="Color.Primary" OnClick="@OpenSkillDialog" Size="Size.Small">
<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 string GetSkillOrTalentsEnabledIndicator()
private Variant GetSkillOrTalentsEnabledIndicator()
{
return ViewModel!.ArHpPercentage < 100 || ViewModel.TalentOrConditionalSkillEnabled ? "border: #BF0000FF solid 1px" : string.Empty;
return ViewModel!.ArHpPercentage < 100 || ViewModel.TalentOrConditionalSkillEnabled ? Variant.Filled : Variant.Outlined;
}

private int GetImageSize()
Expand Down

0 comments on commit 10e8a4d

Please sign in to comment.