Fix inconsistent textbox look.
MODIFY
WalletWasabi.Gui/App.xaml
WalletWasabi.Gui/App.xaml
<StyleInclude Source="avares://WalletWasabi.Gui/Controls/TogglePasswordBox.xaml" />
<StyleInclude Source="avares://WalletWasabi.Gui/Controls/MultiTextBox.xaml" />
<StyleInclude Source="avares://WalletWasabi.Gui/Controls/EditableTextBlock.xaml" />
+ <StyleInclude Source="avares://WalletWasabi.Gui/Controls/ExtendedTextBox.xaml" />
<StyleInclude Source="avares://WalletWasabi.Gui/Controls/Shields.xaml" />
<StyleInclude Source="avares://WalletWasabi.Gui/Styles/Styles.xaml" />
<StyleInclude Source="avares://WalletWasabi.Gui/Icons/Icons.xaml" />

MODIFY
WalletWasabi.Gui/Controls/TogglePasswordBox.xaml
WalletWasabi.Gui/Controls/TogglePasswordBox.xaml
xmlns:controls="clr-namespace:WalletWasabi.Gui.Controls;assembly=WalletWasabi.Gui">
<Style>
<Style.Resources>
- <converters:ErrorDescriptorToBorderColorConverter x:Key="ErrorDescriptorToBorderColorConverter" />
<converters:BooleanStringConverter x:Key="BooleanStringConverter" />
</Style.Resources>
</Style>
</ControlTemplate>
</Setter>
</Style>
- <Style Selector="controls|TogglePasswordBox:pointerover /template/ Border#border">
- <Setter Property="BorderBrush" Value="{DynamicResource ThemeBorderHighBrush}" />
- </Style>
- <Style Selector="controls|TogglePasswordBox:focus /template/ Border#border">
- <Setter Property="BorderBrush" Value="{DynamicResource ThemeBorderHighBrush}" />
- </Style>
- <Style Selector="controls|TogglePasswordBox:error /template/ Border#border">
- <Setter Property="BorderBrush" Value="{Binding $parent[controls:TogglePasswordBox].(DataValidationErrors.Errors), Converter={StaticResource ErrorDescriptorToBorderColorConverter}}" />
- </Style>
- <Style Selector="controls|TogglePasswordBox">
- <Setter Property="Cursor" Value="IBeam" />
- </Style>
- <Style Selector="Button">
- <Setter Property="Cursor" Value="Hand" />
- </Style>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Opacity" Value="0.8" />
- </Style>
- <Style Selector="Button:pressed /template/ ContentPresenter">
- <Setter Property="Opacity" Value="0.6" />
- <Setter Property="Background" Value="Transparent" />
- </Style>
</Styles>

MODIFY
WalletWasabi.Gui/Styles/Styles.xaml
WalletWasabi.Gui/Styles/Styles.xaml
</Template>
</Setter>
</Style>
- <Style Selector="TextBox.monospaceFont">
+ <Style Selector="TextBox.monospaceFont /template/ TextPresenter#PART_TextPresenter">
<Setter Property="FontFamily" Value="{StaticResource MonospacedFont}" />
<Setter Property="FontSize" Value="14" />
</Style>
<Style Selector="TextBox">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeBorderHighBrush}" />
</Style>
+
<Style Selector="DataValidationErrors">
<Setter Property="Template">
<ControlTemplate>
</DataTemplate>
</Setter>
</Style>
- <Style Selector="TextBox:pointerover /template/ Border#border">
- <Setter Property="BorderBrush" Value="{DynamicResource ThemeBorderHighBrush}" />
- </Style>
- <Style Selector="TextBox:focus /template/ Border#border">
- <Setter Property="BorderBrush" Value="{DynamicResource ThemeBorderHighBrush}" />
- </Style>
- <Style Selector="TextBox:error /template/ Border#border">
- <Setter Property="BorderBrush" Value="{Binding $parent[TextBox].(DataValidationErrors.Errors), Converter={StaticResource ErrorDescriptorToBorderColorConverter}}" />
- </Style>
- <Style Selector="TextBox">
- <Setter Property="Background" Value="{DynamicResource ThemeBackgroundBrush}" />
- <Setter Property="BorderBrush" Value="{DynamicResource ThemeBorderMidBrush}" />
- <Setter Property="BorderThickness" Value="{DynamicResource ThemeBorderThickness}" />
- <Setter Property="SelectionBrush" Value="{DynamicResource HighlightBrush}" />
- <Setter Property="SelectionForegroundBrush" Value="{DynamicResource HighlightForegroundBrush}" />
- <Setter Property="Padding" Value="4" />
- <Setter Property="Template">
- <ControlTemplate>
- <DockPanel LastChildFill="True">
- <Border
- Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- DockPanel.Dock="Top">
- <DockPanel Margin="{TemplateBinding Padding}">
- <TextBlock
- Name="floatingWatermark"
- Foreground="{DynamicResource ThemeAccentBrush}"
- FontSize="{DynamicResource FontSizeSmall}"
- Text="{TemplateBinding Watermark}" DockPanel.Dock="Top">
- <TextBlock.IsVisible>
- <MultiBinding Converter="{x:Static BoolConverters.And}">
- <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="UseFloatingWatermark" />
- <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="Text" Converter="{x:Static StringConverters.IsNotNullOrEmpty}" />
- </MultiBinding>
- </TextBlock.IsVisible>
- </TextBlock>
- <ScrollViewer
- HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}"
- VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}">
- <Panel>
- <TextBlock
- Name="watermark"
- Opacity="0.5"
- Text="{TemplateBinding Watermark}"
- IsVisible="{TemplateBinding Text, Converter={x:Static StringConverters.IsNullOrEmpty}}" />
- <TextPresenter
- Name="PART_TextPresenter"
- Text="{TemplateBinding Text, Mode=TwoWay}"
- CaretIndex="{TemplateBinding CaretIndex}"
- SelectionStart="{TemplateBinding SelectionStart}"
- SelectionEnd="{TemplateBinding SelectionEnd}"
- TextAlignment="{TemplateBinding TextAlignment}"
- TextWrapping="{TemplateBinding TextWrapping}"
- PasswordChar="{TemplateBinding PasswordChar}"
- SelectionBrush="{TemplateBinding SelectionBrush}"
- SelectionForegroundBrush="{TemplateBinding SelectionForegroundBrush}"
- CaretBrush="{TemplateBinding CaretBrush}" />
- </Panel>
- </ScrollViewer>
- </DockPanel>
- </Border>
- <Border Margin="{TemplateBinding Padding}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding Background}">
- <DataValidationErrors />
- </Border>
- </DockPanel>
- </ControlTemplate>
- </Setter>
- </Style>
+
<Style Selector="ListBoxItem:pointerover Grid Expander /template/ ToggleButton#PART_toggle /template/ Border > Grid > Border">
<Setter Property="Background" Value="{DynamicResource ThemeControlHighlightMidBrush}" />
</Style>

Fix inconsistent textbox look.