Skip to content

Commit cef0d2b

Browse files
committed
feat: improve mandatory update button (use secondary)
1 parent a0dbb9d commit cef0d2b

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/ByteSync.Client/Assets/Themes/GeneralStyles.axaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,14 @@
175175
<Setter Property="Background" Value="{DynamicResource BsAccentButtonPointerOverBackGround}" />
176176
</Style>
177177

178+
<Style Selector="Button.Secondary">
179+
<Setter Property="Background" Value="{DynamicResource SecondaryButtonBackGround}"/>
180+
</Style>
181+
182+
<Style Selector="Button.Secondary:pointerover > ContentPresenter#PART_ContentPresenter2">
183+
<Setter Property="Background" Value="{DynamicResource SecondaryButtonPointerOverBackGround}" />
184+
</Style>
185+
178186
<!-- SEPARATOR -->
179187
<!-- SEPARATOR -->
180188
<!-- SEPARATOR -->

src/ByteSync.Client/Views/Headers/HeaderView.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
IsVisible="{Binding ShowUpdateObservable}"
5252
HorizontalAlignment="Left"
5353
Classes.GenericButton="True"
54-
Classes.Accent="{Binding IsAVersionMandatory}">
54+
Classes.Secondary="{Binding IsAVersionMandatory}">
5555

5656
<StackPanel Orientation="Horizontal">
5757
<StackPanel IsVisible="{Binding !IsAVersionMandatory}">

0 commit comments

Comments
 (0)