fix(ui): text and password boxes pad their text once; shared password error state

- The text box hands its Padding to the content host itself; the template no longer adds it again, so
  typed text starts where the placeholder does (12 px, 8 px after a leading icon). Same for the password box.
- ui:Field.Error marks an input without a validating binding (a password box) with the error border and
  makes the sentence its help text; the Uploader and the login dialog use it instead of drawing their own.
- The brand mark keeps its orientation by itself; the local left-to-right settings are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-06 08:10:36 +00:00
1 parent 70dc18787a
commit a7f5f83e04
8 files changed
+52 -30

No files matched your search

+1 -2
View File
@@ -18,8 +18,7 @@
<DockPanel>
<ComboBox DockPanel.Dock="Right" MinWidth="180" VerticalAlignment="Center" ItemsSource="{Binding Languages}" SelectedItem="{Binding SelectedLanguage}"
DisplayMemberPath="Name" IsEnabled="{Binding IsOptions}" ToolTip="{l:Loc Tooltips.Setup.Language}" AutomationProperties.Name="{l:Loc Setup.Field.Language}" />
<!-- The mark is artwork: its off-centre sun must not flip in right-to-left languages. -->
<ui:BrandMarkIcon ShowPlate="True" Width="40" Height="40" Margin="0,0,14,0" VerticalAlignment="Center" FlowDirection="LeftToRight" />
<ui:BrandMarkIcon ShowPlate="True" Width="40" Height="40" Margin="0,0,14,0" VerticalAlignment="Center" />
<StackPanel VerticalAlignment="Center">
<TextBlock Text="{Binding Heading}" Style="{StaticResource Text.PageTitle}" />
<TextBlock Text="{Binding SubHeading}" Style="{StaticResource Text.Secondary}" />