2020-05-12 03:45:55 +08:00
|
|
|
#include "pch.h"
|
|
|
|
#include "Styles.h"
|
2020-12-15 20:16:09 +08:00
|
|
|
#include <common/themes/windows_colors.h>
|
2020-05-12 03:45:55 +08:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|