Commit e57e4f69 authored by Sam Sebree's avatar Sam Sebree Committed by Commit Bot

[Controls Refresh] Adds dark mode styling for the progress bar native control

This change uses the native_theme_base controls properties to set
correct dark mode styling for progress bar controls.

Bug: 929098
Change-Id: I14afd7414cffba818b24a8e42d46f7d4a677a09c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2126472Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
Reviewed-by: default avatarIonel Popescu <iopopesc@microsoft.com>
Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Sam Sebree <sasebree@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#754985}
parent bf665b56
<meta name="color-scheme" content="dark">
<body>
<progress style="color-scheme: dark" max="100" value="0"></progress><br><br>
<progress style="color-scheme: dark" max="100" value="1"></progress><br><br>
<progress style="color-scheme: dark" max="100" value="5"></progress><br><br>
<progress style="color-scheme: dark" max="100" value="50"></progress><br><br>
<progress style="color-scheme: dark" max="100" value="95"></progress><br><br>
<progress style="color-scheme: dark" max="100" value="99"></progress><br><br>
<progress style="color-scheme: dark" max="100" value="100"></progress><br><br>
<progress style="color-scheme: dark" max="100" value="50" style="height:30px"></progress><br><br>
</body>
......@@ -1634,9 +1634,10 @@ SkColor NativeThemeBase::GetDarkModeControlColor(
return SkColorSetRGB(0xB9, 0xB9, 0xB9);
case kDisabledAccent:
return SkColorSetARGB(0x4D, 0xC3, 0xC3, 0xC3);
case kProgressValue:
return SkColorSetRGB(0x63, 0xAD, 0xE5);
case kFill:
case kLightenLayer:
case kProgressValue:
case kAutoCompleteBackground:
case kBackground:
return SkColorSetRGB(0x3B, 0x3B, 0x3B);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment