| Index: ui/views/style/typography_provider.cc
|
| diff --git a/ui/views/style/typography_provider.cc b/ui/views/style/typography_provider.cc
|
| index 11bce4e92bc6465d84020f90d904fa30116c4e60..4c10182482587ce6bec942afdc80a51b9732f711 100644
|
| --- a/ui/views/style/typography_provider.cc
|
| +++ b/ui/views/style/typography_provider.cc
|
| @@ -52,6 +52,20 @@ SkColor DefaultTypographyProvider::GetColor(
|
| int context,
|
| int style,
|
| const ui::NativeTheme& theme) const {
|
| + if (context == style::CONTEXT_BUTTON_MD) {
|
| + ui::NativeTheme::ColorId color_id =
|
| + ui::NativeTheme::kColorId_ButtonEnabledColor;
|
| + switch (style) {
|
| + case views::style::STYLE_DIALOG_BUTTON_DEFAULT:
|
| + color_id = ui::NativeTheme::kColorId_TextOnProminentButtonColor;
|
| + break;
|
| + case views::style::STYLE_DISABLED:
|
| + color_id = ui::NativeTheme::kColorId_ButtonDisabledColor;
|
| + break;
|
| + }
|
| + return theme.GetSystemColor(color_id);
|
| + }
|
| +
|
| return theme.GetSystemColor(
|
| (style == style::STYLE_DISABLED)
|
| ? ui::NativeTheme::kColorId_LabelDisabledColor
|
|
|