mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-13 00:01:45 +08:00
15 lines
547 B
C++
15 lines
547 B
C++
|
#include "pch.h"
|
||
|
#include "Styles.h"
|
||
|
#include <common/windows_colors.h>
|
||
|
|
||
|
Style AccentButtonStyle()
|
||
|
{
|
||
|
Style style{ winrt::xaml_typename<Controls::Button>() };
|
||
|
style.Setters().Append(Setter{
|
||
|
Controls::Control::BackgroundProperty(),
|
||
|
winrt::Windows::UI::Xaml::Media::SolidColorBrush{ WindowsColors::get_accent_color() } });
|
||
|
style.Setters().Append(Setter{
|
||
|
Controls::Control::ForegroundProperty(),
|
||
|
winrt::Windows::UI::Xaml::Media::SolidColorBrush{ winrt::Windows::UI::Colors::White() } });
|
||
|
return style;
|
||
|
}
|