From 94e694ec1b945a773a1c78e9428c7e8f26f48206 Mon Sep 17 00:00:00 2001 From: Kunal22shah Date: Wed, 30 Oct 2024 11:20:54 -0400 Subject: [PATCH] chore: updating markup and docs --- doc/styles/PasswordBox.md | 5 +---- .../Styles/Controls/v2/PasswordBox.xaml | 17 +++++++---------- .../Theme/PasswordBox.cs | 12 ------------ 3 files changed, 8 insertions(+), 26 deletions(-) diff --git a/doc/styles/PasswordBox.md b/doc/styles/PasswordBox.md index ebfed5cb5..036712c58 100644 --- a/doc/styles/PasswordBox.md +++ b/doc/styles/PasswordBox.md @@ -71,10 +71,7 @@ IsDefaultStyle\*: Styles in this column will be set as the default implicit styl | `OutlinedPasswordBoxCharacterSpacing` | `Int32` | `BodyLargeCharacterSpacing` | | `OutlinedPasswordBoxCornerRadius` | `CornerRadius` | 4 | | `OutlinedPasswordBoxMinHeight` | `Double` | 58 | -| `OutlinedPasswordBoxBorderPadding` | `Thickness` | 1 | -| `OutlinedPasswordBoxBorderPaddingPointerOver` | `Thickness` | 0 | -| `OutlinedPasswordBoxBorderPaddingFocused` | `Thickness` | 0 | | `OutlinedPasswordBoxPadding` | `Thickness` | 16,4,8,4 | | `OutlinedPasswordBoxBorderThickness` | `Thickness` | 1 | -| `OutlinedPasswordBoxBorderThicknessPointerOver` | `Thickness` | 2 | +| `OutlinedPasswordBoxBorderThicknessPointerOver` | `Thickness` | 1 | | `OutlinedPasswordBoxBorderThicknessFocused` | `Thickness` | 2 | diff --git a/src/library/Uno.Material/Styles/Controls/v2/PasswordBox.xaml b/src/library/Uno.Material/Styles/Controls/v2/PasswordBox.xaml index 0999add20..481bbf5bf 100644 --- a/src/library/Uno.Material/Styles/Controls/v2/PasswordBox.xaml +++ b/src/library/Uno.Material/Styles/Controls/v2/PasswordBox.xaml @@ -89,13 +89,10 @@ 4 58 - 1 1 16,4,8,4 1 - 1 2 - 1 4,4,0,0 56 @@ -183,13 +180,10 @@ 4 58 - 1 1 16,4,8,4 1 - 1 2 - 1 4,4,0,0 56 @@ -478,11 +472,11 @@ - + @@ -490,23 +484,23 @@ - + - + @@ -628,7 +622,10 @@ Style="{StaticResource MaterialRevealButtonStyle}" Visibility="Collapsed" /> - + Focused => new("OutlinedPasswordBoxBorderBrushFocused"); } - public static partial class BorderPadding - { - [ResourceKeyDefinition(typeof(Thickness), "OutlinedPasswordBoxBorderPadding")] - public static ThemeResourceKey Default => new("OutlinedPasswordBoxBorderPadding"); - - [ResourceKeyDefinition(typeof(Thickness), "OutlinedPasswordBoxBorderPaddingPointerOver")] - public static ThemeResourceKey PointerOver => new("OutlinedPasswordBoxBorderPaddingPointerOver"); - - [ResourceKeyDefinition(typeof(Thickness), "OutlinedPasswordBoxBorderPaddingFocused")] - public static ThemeResourceKey Focused => new("OutlinedPasswordBoxBorderPaddingFocused"); - } - public static partial class BorderThickness { [ResourceKeyDefinition(typeof(Thickness), "OutlinedPasswordBoxBorderThickness")]