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