• dpapad's avatar
    WebUI: Enable scrollbars to follow system's light/dark theme. · 0687f19d
    dpapad authored
    Previously scrollbars always appeared light, even if a WebUI
    page was otherwise respecting dark mode. The upcoming
    FormControlsDarkMode feature allows webpages to specify whether
    scrollbras should follow the system's theme, by specifying a new
    <meta name="color-scheme"> tag.
    
    In this CL updating WebUIs that do support dark mode, except for
    chrome://new-tab-page which needs to be investigated separately
    (styling breaks when the meta tag is added).
    
    Launch Chrome with the following flags to experience dark scrollbars.
    --enable-features=WebUIDarkMode,CSSColorSchemeUARendering \
    --force-dark-mode
    
    Bug: 1142291
    Change-Id: Ia2cece4b18c4f1c1453ce5dad7815881104fa1eb
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2509690
    Auto-Submit: dpapad <dpapad@chromium.org>
    Commit-Queue: John Lee <johntlee@chromium.org>
    Reviewed-by: default avatarJohn Lee <johntlee@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#822845}
    0687f19d
index_pp.html 754 Bytes