Skip to content

Commit

Permalink
style: neutral icon fg and margin for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
janssen-io committed Jan 21, 2025
1 parent 1b88520 commit c1612d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/TransactionQL.DesktopApp/Assets/Styles.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<Style Selector="Button.IconAction /template/ ContentPresenter">
<Setter Property="BoxShadow" Value="none" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource FG.Base.Primary}" />
<Setter Property="Foreground" Value="{DynamicResource FG.Base.Neutral}" />
<Setter Property="FontSize" Value="16" />
<Setter Property="Transitions">
<Transitions>
Expand Down
2 changes: 1 addition & 1 deletion src/TransactionQL.DesktopApp/DesignData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static class DesignData

public static readonly MessageDialogViewModel Popup = new()
{
Message = "This is a preview message.",
Message = "This is a preview message. With a bit more extra text to make sure we see some line wrapping too.",
Title = "Preview Title",
IsError = false,
Icon = DialogIcon.Success,
Expand Down
6 changes: 4 additions & 2 deletions src/TransactionQL.DesktopApp/Views/MessageDialog.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
Margin="0 30 0 20" />

<TextBlock Text="{Binding Title}"
TextAlignment="Center" Classes="h2" />
TextAlignment="Center" Classes="h2"
Margin="20 0 20 0"/>
<TextBlock Text="{Binding Message}"
TextAlignment="Center"
Foreground="{DynamicResource FG.Elevated.Neutral}"
TextWrapping="Wrap" />
TextWrapping="Wrap"
Margin="20 0 20 0"/>
<Button Click="Button_OnClick"
HorizontalAlignment="Stretch"
Classes.Negative="{Binding IsError}"
Expand Down

0 comments on commit c1612d4

Please sign in to comment.