Added BrushThickness to info bar - changed BrushThickness to int to be less floaty
This commit is contained in:
@@ -39,7 +39,7 @@ public class ViewModelBase : ObservableObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Brush _brush = new SolidColorBrush(new Color(a: 255, r: 0, g: 0, b: 0));
|
private Brush _brush = new SolidColorBrush(new Color(a: 255, r: 0, g: 0, b: 0));
|
||||||
private double _brushThickness = 2.0;
|
private int _brushThickness = 2;
|
||||||
|
|
||||||
protected Brush Brush
|
protected Brush Brush
|
||||||
{
|
{
|
||||||
@@ -47,7 +47,7 @@ public class ViewModelBase : ObservableObject
|
|||||||
set => SetProperty(ref _brush, value);
|
set => SetProperty(ref _brush, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public double BrushThickness
|
public int BrushThickness
|
||||||
{
|
{
|
||||||
get => _brushThickness;
|
get => _brushThickness;
|
||||||
set => SetProperty(ref _brushThickness, value);
|
set => SetProperty(ref _brushThickness, value);
|
||||||
|
|||||||
+20
-1
@@ -35,7 +35,7 @@
|
|||||||
<Panel Background="Transparent">
|
<Panel Background="Transparent">
|
||||||
<SplitView Background="Transparent" IsPaneOpen="{Binding IsSplitOpen, Mode=TwoWay}" DisplayMode="Overlay" OpenPaneLength="250" ClipToBounds="False">
|
<SplitView Background="Transparent" IsPaneOpen="{Binding IsSplitOpen, Mode=TwoWay}" DisplayMode="Overlay" OpenPaneLength="250" ClipToBounds="False">
|
||||||
<SplitView.Pane>
|
<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="#66ffffff">
|
||||||
<Grid Background="Transparent">
|
<Grid Background="Transparent">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
@@ -141,12 +141,15 @@
|
|||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
</SplitView>
|
</SplitView>
|
||||||
|
<!-- left Info bar -->
|
||||||
<StackPanel Width="30" HorizontalAlignment="Left" IsVisible="{Binding !IsSplitOpen}" Background="#d4d4fc">
|
<StackPanel Width="30" HorizontalAlignment="Left" IsVisible="{Binding !IsSplitOpen}" Background="#d4d4fc">
|
||||||
|
<!-- Menu-Opener -->
|
||||||
<Button Content="≡" Command="{Binding DisplaySplitEvent}" HorizontalAlignment="Center" VerticalAlignment="Top">
|
<Button Content="≡" Command="{Binding DisplaySplitEvent}" HorizontalAlignment="Center" VerticalAlignment="Top">
|
||||||
<Button.RenderTransform>
|
<Button.RenderTransform>
|
||||||
<TranslateTransform X="{Binding ButtonOffset}" />
|
<TranslateTransform X="{Binding ButtonOffset}" />
|
||||||
</Button.RenderTransform>
|
</Button.RenderTransform>
|
||||||
</Button>
|
</Button>
|
||||||
|
<!-- SelectedColor Info -->
|
||||||
<Button HorizontalAlignment="Center"
|
<Button HorizontalAlignment="Center"
|
||||||
Margin="0,5,0,0"
|
Margin="0,5,0,0"
|
||||||
BorderBrush="DimGray"
|
BorderBrush="DimGray"
|
||||||
@@ -156,7 +159,23 @@
|
|||||||
Width="20"
|
Width="20"
|
||||||
Height="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>
|
</StackPanel>
|
||||||
|
<!-- Savebutton -->
|
||||||
<Button HorizontalAlignment="Right"
|
<Button HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Bottom"
|
VerticalAlignment="Bottom"
|
||||||
Margin="0,0,7.5,7.5"
|
Margin="0,0,7.5,7.5"
|
||||||
|
|||||||
Reference in New Issue
Block a user