Skip to content

Commit

Permalink
Apply TextEnhancement.TextSize also to the input box
Browse files Browse the repository at this point in the history
  • Loading branch information
haefele committed Nov 17, 2023
1 parent 8f8a347 commit c7a9deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/ChatPrisma/Themes/TextBoxStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<Style TargetType="TextBox">
<Setter Property="Foreground" Value="White"/>
<Setter Property="CaretBrush" Value="White"/>
<Setter Property="Height" Value="30"/>
<Setter Property="ContextMenu">
<Setter.Value>
<ContextMenu>
Expand All @@ -33,7 +32,7 @@
<ControlTemplate TargetType="TextBox">
<GroupBox>
<Grid Margin="-10, -8, -10, -10" x:Name="BackgroundGrid" Background="#05FFFFFF">
<Grid Margin="6,7,6,2">
<Grid Margin="6,7,6,7">
<TextBlock Text="{Binding Path=(themes:Attached.Placeholder), RelativeSource={RelativeSource TemplatedParent}}"
Margin="2, 0, 0, 0"
Foreground="Gray"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<Grid>
<TextBox x:Name="InstructionTextBox"
themes:Attached.Placeholder="Anweisung wie der Text geändert werden soll"
FontSize="{Binding TextSize}"
IsReadOnly="{Binding ApplyInstructionCommand.IsRunning}"
Text="{Binding Instruction, UpdateSourceTrigger=PropertyChanged}">
<TextBox.InputBindings>
Expand Down

0 comments on commit c7a9deb

Please sign in to comment.