Fix title bar caption buttons theme
This commit is contained in:
@@ -240,12 +240,8 @@ namespace Wino.Services
|
|||||||
_ = mainApplicationFrame.DispatcherQueue.TryEnqueue(Microsoft.UI.Dispatching.DispatcherQueuePriority.Normal,
|
_ = mainApplicationFrame.DispatcherQueue.TryEnqueue(Microsoft.UI.Dispatching.DispatcherQueuePriority.Normal,
|
||||||
() =>
|
() =>
|
||||||
{
|
{
|
||||||
ApplicationViewTitleBar titleBar = null;
|
var titleBar = _appShellService.AppWindow.AppWindow.TitleBar;
|
||||||
try
|
|
||||||
{
|
|
||||||
titleBar = ApplicationView.GetForCurrentView().TitleBar;
|
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
if(titleBar == null) return;
|
if(titleBar == null) return;
|
||||||
|
|
||||||
if (_underlyingThemeService.IsUnderlyingThemeDark())
|
if (_underlyingThemeService.IsUnderlyingThemeDark())
|
||||||
@@ -260,12 +256,8 @@ namespace Wino.Services
|
|||||||
#else
|
#else
|
||||||
_ = mainApplicationFrame.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
|
_ = mainApplicationFrame.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
|
||||||
{
|
{
|
||||||
ApplicationViewTitleBar titleBar = null;
|
ApplicationViewTitleBar titleBar = ApplicationView.GetForCurrentView().TitleBar;
|
||||||
try
|
|
||||||
{
|
|
||||||
titleBar = ApplicationView.GetForCurrentView().TitleBar;
|
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
if (titleBar == null) return;
|
if (titleBar == null) return;
|
||||||
|
|
||||||
if (_underlyingThemeService.IsUnderlyingThemeDark())
|
if (_underlyingThemeService.IsUnderlyingThemeDark())
|
||||||
|
|||||||
Reference in New Issue
Block a user