Adjust generic size of textBox elements

Increased the size of the search bar icon (magnification glass)
This commit is contained in:
Peter Kirmeier 2023-08-12 20:23:30 +02:00
parent 1a34945a79
commit 8202a6c3cf
3 changed files with 8 additions and 4 deletions

View file

@ -12,6 +12,10 @@
<BitmapImage x:Key="LinkArrowIconImage" UriSource="../Resources/LinkArrow.ico" />
<BitmapImage x:Key="LoadingIconImage" UriSource="../Resources/Loading.ico" />
<BitmapImage x:Key="NotFoundIconImage" UriSource="../Resources/NotFound.ico" />
<Style TargetType="{x:Type TextBox}">
<Setter Property="Height" Value="21" />
</Style>
</Application.Resources>
</Application>

View file

@ -106,8 +106,8 @@
<TextBlock x:Name="txtTitle" TextTrimming="CharacterEllipsis" Margin="14,0"><Run Text="title"/></TextBlock>
</Label>
<DockPanel x:Name="searchPanel" DockPanel.Dock="Top" Margin="6,0" Background="{x:Static stm:MenuDefines.ColorSearchField}">
<Separator x:Name="panelLine" Height="1" Margin="0,1" DockPanel.Dock="Bottom" Background="{x:Static stm:MenuDefines.ColorIcons}"/>
<Image x:Name="pictureBoxSearch" Width="16" Height="16" Margin="1" DockPanel.Dock="Left" Source="{StaticResource ic_fluent_search_48_regularDrawingImage}"/>
<Separator x:Name="panelLine" Height="1" Margin="0" DockPanel.Dock="Bottom" Background="{x:Static stm:MenuDefines.ColorIcons}"/>
<Image x:Name="pictureBoxSearch" Width="22" Height="22" Margin="0" DockPanel.Dock="Left" Source="{StaticResource ic_fluent_search_48_regularDrawingImage}"/>
<TextBox x:Name="textBoxSearch" BorderBrush="{x:Null}" Background="{x:Null}" Foreground="{x:Static stm:MenuDefines.ColorForeground}" SelectionTextBrush="Red" SelectionBrush="#FFDAFF00" />
</DockPanel>
@ -178,7 +178,7 @@
<DataTemplate>
<StackPanel Orientation="Horizontal" Height="{DynamicResource RowHeight}" Background="{Binding BackgroundBrush}">
<Image Width="{DynamicResource ColumnIconWidth}" Margin="0,1,0,2" Source="{Binding ColumnIcon}" />
<Label Width="{DynamicResource ColumnTextWidth}" Margin="2,0" Padding="0" VerticalContentAlignment="Center">
<Label Width="{DynamicResource ColumnTextWidth}" Margin="5,0,2,1" Padding="0" VerticalContentAlignment="Center">
<TextBlock TextTrimming="CharacterEllipsis" Text="{Binding ColumnText}" Foreground="{x:Static stm:MenuDefines.ColorForeground}"/>
</Label>
</StackPanel>

View file

@ -50,7 +50,7 @@
</GroupBox>
<GroupBox Header="{u:Translate 'Hotkey'}">
<DockPanel LastChildFill="False">
<local:HotkeySelector x:Name="textBoxHotkey" AcceptsTab="False" MinWidth="200" VerticalAlignment="Center"/>
<local:HotkeySelector x:Name="textBoxHotkey" AcceptsTab="False" MinWidth="200" Height="{Binding ElementName=textBoxFolder, Path=ActualHeight}" VerticalAlignment="Center"/>
<Button x:Name="buttonHotkeyDefault" DockPanel.Dock="Right" Content="{u:Translate 'Default'}" Margin="3" MinWidth="76" Click="ButtonHotkeyDefault_Click" VerticalAlignment="Center"/>
</DockPanel>
</GroupBox>