• minch's avatar
    dark_mode: Simplify the logic to get ripple attributes. · 0360779c
    minch authored
    Color of the ripple is no longer the opposite color of the background
    color, but either WHITE or BLACK based on the current color mode now.
    
    - Update AshColorProvider::GetRippleAttributes with default value to
      simplify most of the call sites. The default background color is
      GetBackgroundColor() for Shield and Base layer.
    - Hard code the logic of notification related, which will not going to
      support dark mode at the first stage.
    - Clean up. Removed some unnecessary functions and arguments.
    
    Bug: 1107056
    Change-Id: I1adb4232f66c5433eb52920ac5b48c329ade35f6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2427623
    Commit-Queue: Min Chen <minch@chromium.org>
    Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#810534}
    0360779c
message_center_style.h 1.85 KB