Skip to content

Commit dc01c1f

Browse files
committed
Fix no trigger word for styles datasets. Fixes #4.
1 parent ac3f863 commit dc01c1f

File tree

2 files changed

+316
-316
lines changed

2 files changed

+316
-316
lines changed

src/DatasetTag/MainWindow.axaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
55
xmlns:controls="clr-namespace:DatasetTag.Common.Controls"
66
xmlns:enums="clr-namespace:DatasetTag.Common.Enums"
7-
mc:Ignorable="d" d:DesignWidth="900" d:DesignHeight="450"
7+
mc:Ignorable="d" d:DesignWidth="1200" d:DesignHeight="600"
88
x:Class="DatasetTag.MainWindow"
99
Title="Dataset Tag" WindowStartupLocation="CenterScreen" WindowState="Maximized" Icon="/Assets/tag.png" Opened="MainWindow_Opened" KeyDown="MainWindow_KeyDown" KeyUp="MainWindow_KeyUp" SizeChanged="MainWindow_SizeChanged" PositionChanged="MainWindow_PositionChanged" LayoutUpdated="MainWindow_LayoutUpdated" MinWidth="800" MinHeight="600">
10-
<Window.Resources>
11-
<enums:TagCategory x:Key="Hairdd">Hair</enums:TagCategory>
12-
</Window.Resources>
1310
<Grid x:Name="grdContainer">
1411
<Grid.RowDefinitions>
1512
<RowDefinition Height="200" MinHeight="150" />
@@ -204,6 +201,9 @@
204201
<Grid Margin="0" VerticalAlignment="Top" HorizontalAlignment="Stretch">
205202
<Button Content="Save" Command="{Binding SaveCaptionAsync_Command, RelativeSource={RelativeSource AncestorType={x:Type Window}}}" Background="Red" Foreground="White" FontFamily="Arial" Height="50" Padding="0" FontSize="24" FontWeight="Bold" Margin="6" HorizontalAlignment="Stretch" VerticalAlignment="Top" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
206203
</Grid>
204+
<Grid Margin="0" VerticalAlignment="Top" HorizontalAlignment="Stretch">
205+
<TextBox x:Name="txtWarning" TextWrapping="WrapWithOverflow" Text="*** Unless you are preparing the dataset for training a style, a trigger word should always be included! ***" IsEnabled="False" Background="Orange" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" Margin="6" FontSize="16"/>
206+
</Grid>
207207
</StackPanel>
208208
</ScrollViewer>
209209
</Grid>

0 commit comments

Comments
 (0)