• Rahul Singh's avatar
    WebVTT: Add opacity support, and color support for window on Win10 · f91ec3f6
    Rahul Singh authored
    This CL adds support for text and background opacity on Win10 by
    computing the color string with an alpha value corresponding to the
    user's choice in Settings.
    In addition, it also adds support for window color (with opacity) now
    that CaptionStyle also contains a string for window_color.
    
    With this change, all caption styling properties that show up in Win10
    Settings are now supported in Chromium on Win10. New Properties added:
    1. Caption Text Opacity
    2. Background Opacity
    3. Window Color
    4. Window Opacity
    
    Bug: 1001736
    Change-Id: I3e80f88219faa7407bbd015074c486bc4d680e5b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1794002
    Commit-Queue: Rahul Singh <rahsin@microsoft.com>
    Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#695853}
    f91ec3f6
caption_style_win.cc 11.9 KB