Added BrushThickness to info bar - changed BrushThickness to int to be less floaty

This commit is contained in:
Ano-sys
2025-02-21 18:22:09 +01:00
parent 64d8209825
commit cb0ac5e60a
2 changed files with 22 additions and 3 deletions
+20 -1
View File
@@ -35,7 +35,7 @@
<Panel Background="Transparent">
<SplitView Background="Transparent" IsPaneOpen="{Binding IsSplitOpen, Mode=TwoWay}" DisplayMode="Overlay" OpenPaneLength="250" ClipToBounds="False">
<SplitView.Pane>
<Border Background="Transparent" BorderBrush="Gray" BorderThickness="2" BoxShadow="50 0 10 10 DarkGray" CornerRadius="0, 12.5,12.5,0" >
<Border Background="Transparent" BorderBrush="Gray" BorderThickness="0" CornerRadius="0, 12.5,12.5,0" >
<Grid Background="#66ffffff">
<Grid Background="Transparent">
<Grid.RowDefinitions>
@@ -141,12 +141,15 @@
</Border>
</Grid>
</SplitView>
<!-- left Info bar -->
<StackPanel Width="30" HorizontalAlignment="Left" IsVisible="{Binding !IsSplitOpen}" Background="#d4d4fc">
<!-- Menu-Opener -->
<Button Content="≡" Command="{Binding DisplaySplitEvent}" HorizontalAlignment="Center" VerticalAlignment="Top">
<Button.RenderTransform>
<TranslateTransform X="{Binding ButtonOffset}" />
</Button.RenderTransform>
</Button>
<!-- SelectedColor Info -->
<Button HorizontalAlignment="Center"
Margin="0,5,0,0"
BorderBrush="DimGray"
@@ -156,7 +159,23 @@
Width="20"
Height="20"
/>
<!-- BrushThickness Info -->
<TextBox Text="{Binding BrushThickness}"
HorizontalAlignment="Center"
TextAlignment="Center"
Margin="0,5,0,0"
Padding="0, 2, 0, 0"
Background="Transparent"
BorderThickness="0"
Width="25"
Height="25"
MinHeight="25"
MinWidth="25"
IsHitTestVisible="False"
IsReadOnly="True"
/>
</StackPanel>
<!-- Savebutton -->
<Button HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Margin="0,0,7.5,7.5"