From 6ee5eb415f2af886870439fabc8fe5207c01016c Mon Sep 17 00:00:00 2001 From: CHINBOY Date: Fri, 4 Jul 2025 11:03:56 +0800 Subject: [PATCH] Add EmbeddableControlRootTheme --- .../AtomUIOSSControlThemesProvider.axaml | 1 + .../Themes/EmbeddableControlRootTheme.axaml | 30 +++++++++++++++++++ .../Themes/EmbeddingThemeConstants.cs | 7 +++++ .../ScrollBar/Themes/ScrollViewerTheme.axaml | 2 +- 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 src/AtomUI.Controls/Embedding/Themes/EmbeddableControlRootTheme.axaml create mode 100644 src/AtomUI.Controls/Embedding/Themes/EmbeddingThemeConstants.cs diff --git a/src/AtomUI.Controls/AtomUIOSSControlThemesProvider.axaml b/src/AtomUI.Controls/AtomUIOSSControlThemesProvider.axaml index 6b0d48af1..15acbdcf7 100644 --- a/src/AtomUI.Controls/AtomUIOSSControlThemesProvider.axaml +++ b/src/AtomUI.Controls/AtomUIOSSControlThemesProvider.axaml @@ -17,6 +17,7 @@ + diff --git a/src/AtomUI.Controls/Embedding/Themes/EmbeddableControlRootTheme.axaml b/src/AtomUI.Controls/Embedding/Themes/EmbeddableControlRootTheme.axaml new file mode 100644 index 000000000..9c987b53e --- /dev/null +++ b/src/AtomUI.Controls/Embedding/Themes/EmbeddableControlRootTheme.axaml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/AtomUI.Controls/Embedding/Themes/EmbeddingThemeConstants.cs b/src/AtomUI.Controls/Embedding/Themes/EmbeddingThemeConstants.cs new file mode 100644 index 000000000..5edfdd0ea --- /dev/null +++ b/src/AtomUI.Controls/Embedding/Themes/EmbeddingThemeConstants.cs @@ -0,0 +1,7 @@ +namespace AtomUI.Controls.Themes; + +internal static class EmbeddingThemeConstants +{ + public const string TransparencyFallbackPart = "PART_TransparencyFallback"; + public const string ContentPresenterPart = "PART_ContentPresenter"; +} \ No newline at end of file diff --git a/src/AtomUI.Controls/ScrollBar/Themes/ScrollViewerTheme.axaml b/src/AtomUI.Controls/ScrollBar/Themes/ScrollViewerTheme.axaml index f1419e372..95cb3c8e8 100644 --- a/src/AtomUI.Controls/ScrollBar/Themes/ScrollViewerTheme.axaml +++ b/src/AtomUI.Controls/ScrollBar/Themes/ScrollViewerTheme.axaml @@ -31,7 +31,7 @@ Orientation="Vertical" Grid.Row="0" Grid.Column="1" /> -