mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
FilePicker error display rework
Circle was covering the text
This commit is contained in:
@ -10,36 +10,90 @@
|
|||||||
d:DesignWidth="400"
|
d:DesignWidth="400"
|
||||||
BorderBrush="{StaticResource DarkBackgroundBrush}"
|
BorderBrush="{StaticResource DarkBackgroundBrush}"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<Grid>
|
<Grid ClipToBounds="True">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
<ColumnDefinition Width="Auto" />
|
<ColumnDefinition Width="36" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
<Border
|
||||||
|
x:Name="BackgroundCornerFillIn"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
Margin="0,0,5,0"
|
||||||
|
Background="{StaticResource TextBoxBackground}"
|
||||||
|
CornerRadius="3" />
|
||||||
<TextBox
|
<TextBox
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="0,0,-4,0"
|
Margin="5,0,-2,0"
|
||||||
VerticalContentAlignment="Center"
|
VerticalContentAlignment="Center"
|
||||||
Background="{StaticResource DarkBackgroundBrush}"
|
Background="{StaticResource DarkBackgroundBrush}"
|
||||||
Text="{Binding TargetPath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding TargetPath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Visibility="{Binding ShowTextBoxInput}" />
|
Visibility="{Binding ShowTextBoxInput}" />
|
||||||
<icon:PackIconMaterial
|
<Grid Grid.Column="1" HorizontalAlignment="Right">
|
||||||
Margin="0,4,4,4"
|
<Border
|
||||||
Padding="0,3"
|
Margin="3,1,0,1"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Center"
|
Background="{StaticResource WarningBrush}"
|
||||||
Foreground="{StaticResource WarningBrush}"
|
CornerRadius="3"
|
||||||
Kind="Circle"
|
ToolTip="{Binding ErrorTooltip}">
|
||||||
ToolTip="{Binding ErrorTooltip}"
|
<Border.Style>
|
||||||
Visibility="{Binding InError, Converter={StaticResource bool2VisibilityConverter}}" />
|
<Style TargetType="Border">
|
||||||
<Button
|
<Setter Property="Width" Value="25" />
|
||||||
Grid.Column="1"
|
<Style.Triggers>
|
||||||
Command="{Binding SetTargetPathCommand}"
|
<DataTrigger Binding="{Binding InError}" Value="True">
|
||||||
ToolTip="Set target path">
|
<DataTrigger.EnterActions>
|
||||||
<icon:PackIconMaterial
|
<BeginStoryboard>
|
||||||
Width="16"
|
<Storyboard>
|
||||||
Height="12"
|
<DoubleAnimation
|
||||||
Margin="4"
|
Storyboard.TargetProperty="Width"
|
||||||
Kind="DotsHorizontal" />
|
To="33"
|
||||||
</Button>
|
Duration="0:0:0.1">
|
||||||
|
<DoubleAnimation.EasingFunction>
|
||||||
|
<ExponentialEase EasingMode="EaseOut" />
|
||||||
|
</DoubleAnimation.EasingFunction>
|
||||||
|
</DoubleAnimation>
|
||||||
|
</Storyboard>
|
||||||
|
</BeginStoryboard>
|
||||||
|
</DataTrigger.EnterActions>
|
||||||
|
<DataTrigger.ExitActions>
|
||||||
|
<BeginStoryboard>
|
||||||
|
<Storyboard>
|
||||||
|
<DoubleAnimation
|
||||||
|
Storyboard.TargetProperty="Width"
|
||||||
|
To="25"
|
||||||
|
Duration="0:0:0.1">
|
||||||
|
<DoubleAnimation.EasingFunction>
|
||||||
|
<ExponentialEase EasingMode="EaseOut" />
|
||||||
|
</DoubleAnimation.EasingFunction>
|
||||||
|
</DoubleAnimation>
|
||||||
|
</Storyboard>
|
||||||
|
</BeginStoryboard>
|
||||||
|
</DataTrigger.ExitActions>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</Border.Style>
|
||||||
|
</Border>
|
||||||
|
<Border
|
||||||
|
Width="30"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Background="{StaticResource TextBoxBackground}"
|
||||||
|
CornerRadius="3">
|
||||||
|
<Button Command="{Binding SetTargetPathCommand}" ToolTip="Set target path">
|
||||||
|
<icon:PackIconMaterial
|
||||||
|
Width="16"
|
||||||
|
Height="12"
|
||||||
|
Margin="4"
|
||||||
|
Kind="DotsHorizontal" />
|
||||||
|
</Button>
|
||||||
|
<Border.Effect>
|
||||||
|
<DropShadowEffect
|
||||||
|
BlurRadius="3"
|
||||||
|
Direction="0"
|
||||||
|
Opacity="0.5"
|
||||||
|
ShadowDepth="2" />
|
||||||
|
</Border.Effect>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
Reference in New Issue
Block a user