Commit 90abe4b8 authored by gogerald's avatar gogerald Committed by Commit Bot

[StartSurface] Set correct initial tint for the tab switcher button

Before in dark mode:
https://drive.google.com/file/d/1uy3w9ooqoRyJ5GeSMbLLfncgg2rqUH6I/view?usp=sharing

after:
https://drive.google.com/file/d/1Mq6JRxglRYmFgxlX0ZOaCKiTV84KwmGf/view?usp=sharing
https://drive.google.com/file/d/1gZJvVCE3xaJUmbkGr9A9LzH9KF12buWp/view?usp=sharing

Bug: 1076449
Change-Id: I3ecaa14fa2c196a16df9005cf38884023ec7230c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2202100Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
Commit-Queue: Yusuf Ozuysal <yusufo@chromium.org>
Commit-Queue: Ganggui Tang <gogerald@chromium.org>
Auto-Submit: Ganggui Tang <gogerald@chromium.org>
Cr-Commit-Position: refs/heads/master@{#768826}
parent 30e634de
...@@ -80,6 +80,8 @@ public class TabSwitcherButtonCoordinator { ...@@ -80,6 +80,8 @@ public class TabSwitcherButtonCoordinator {
} }
}; };
mThemeColorProvider.addTintObserver(mTintObserver); mThemeColorProvider.addTintObserver(mTintObserver);
mTabSwitcherButtonModel.set(
TabSwitcherButtonProperties.TINT, mThemeColorProvider.getTint());
} }
public void setTabCountProvider(TabCountProvider tabCountProvider) { public void setTabCountProvider(TabCountProvider tabCountProvider) {
......
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