From d582a0cfa455947178f3d6dd765d707a7c9b6011 Mon Sep 17 00:00:00 2001 From: SKProCH Date: Sat, 27 Jul 2024 01:30:37 +0300 Subject: [PATCH] Implement Text Selection handles in TextBox for touch input --- Material.Styles/MaterialToolKit.xaml | 1 + .../Themes/MenuFlyoutPresenter.axaml | 11 ++++- .../Resources/Themes/MenuItem.axaml | 9 ++++ .../Resources/Themes/TextBox.axaml | 48 ++++++++---------- .../Themes/TextSelectionHandle.axaml | 49 +++++++++++++++++++ 5 files changed, 90 insertions(+), 28 deletions(-) create mode 100644 Material.Styles/Resources/Themes/TextSelectionHandle.axaml diff --git a/Material.Styles/MaterialToolKit.xaml b/Material.Styles/MaterialToolKit.xaml index 0a5883d5..9eaabb3b 100644 --- a/Material.Styles/MaterialToolKit.xaml +++ b/Material.Styles/MaterialToolKit.xaml @@ -80,6 +80,7 @@ + diff --git a/Material.Styles/Resources/Themes/MenuFlyoutPresenter.axaml b/Material.Styles/Resources/Themes/MenuFlyoutPresenter.axaml index 1db9ed37..c0b32058 100644 --- a/Material.Styles/Resources/Themes/MenuFlyoutPresenter.axaml +++ b/Material.Styles/Resources/Themes/MenuFlyoutPresenter.axaml @@ -38,5 +38,14 @@ - + + + + + + + + + + \ No newline at end of file diff --git a/Material.Styles/Resources/Themes/MenuItem.axaml b/Material.Styles/Resources/Themes/MenuItem.axaml index f3cc2c2d..a86ced1b 100644 --- a/Material.Styles/Resources/Themes/MenuItem.axaml +++ b/Material.Styles/Resources/Themes/MenuItem.axaml @@ -53,6 +53,9 @@ + 2,0,2,0 + 8,4,8,7 + @@ -183,4 +186,10 @@ + + + + + diff --git a/Material.Styles/Resources/Themes/TextBox.axaml b/Material.Styles/Resources/Themes/TextBox.axaml index 6893b73f..4d50ef0d 100644 --- a/Material.Styles/Resources/Themes/TextBox.axaml +++ b/Material.Styles/Resources/Themes/TextBox.axaml @@ -55,41 +55,35 @@ - - + - - - - - - - - + + + + + + + @@ -162,7 +156,7 @@ - + diff --git a/Material.Styles/Resources/Themes/TextSelectionHandle.axaml b/Material.Styles/Resources/Themes/TextSelectionHandle.axaml new file mode 100644 index 00000000..f7a5895c --- /dev/null +++ b/Material.Styles/Resources/Themes/TextSelectionHandle.axaml @@ -0,0 +1,49 @@ + + 32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file