Skip to content

Commit

Permalink
Update ActionsView.axaml
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Dec 10, 2023
1 parent 2cd0e1d commit df15fe8
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions src/SvgToXaml.Base/Views/ActionsView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,25 +107,16 @@
</StackPanel>
</Button>

<Button x:Name="ThemeButton"
Background="Transparent"
Padding="0,6,0,7"
Margin="0,0,0,0"
DockPanel.Dock="Right"
ToolTip.Tip="Switch between the Light and Dark mode theme.">
<StackPanel Orientation="Horizontal">
<PathIcon Width="16" Height="16"
Margin="6,0,6,0"
Opacity="0.6"
Data="{DynamicResource DarkTheme}"/>
</StackPanel>
</Button>
<Separator DockPanel.Dock="Left" Background="{DynamicResource SystemChromeAltLowColor}"
Opacity="0.3"
Width="0.55"
Height="NaN"
Margin="6,6,6,7"/>

<Button Margin="0,0,6,0"
<Button Margin="6,0,6,0"
Padding="6,7,6,7"
IsEnabled="{Binding !!Project.SelectedItem}"
DockPanel.Dock="Right"
ToolTip.Tip="Preview">
DockPanel.Dock="Left">
<Button.Flyout>
<Flyout ShowMode="TransientWithDismissOnPointerMoveAway"
Placement="BottomEdgeAlignedRight">
Expand All @@ -137,6 +128,20 @@
Data="{DynamicResource PreviewIcon}"/>
</Button>

<Button x:Name="ThemeButton"
Background="Transparent"
Padding="0,6,0,7"
Margin="0,0,0,0"
DockPanel.Dock="Right"
ToolTip.Tip="Switch between the Light and Dark mode theme.">
<StackPanel Orientation="Horizontal">
<PathIcon Width="16" Height="16"
Margin="6,0,6,0"
Opacity="0.6"
Data="{DynamicResource DarkTheme}"/>
</StackPanel>
</Button>

</DockPanel>

</UserControl>

0 comments on commit df15fe8

Please sign in to comment.