Use color classifier's brightness algorithm for dark theme detection.
This is a follow-up to a comment in https://crrev.com/c/1637036 about moving IsLight() to within DarkModeColorClassifier(). This change removes IsLight() and makes CalculateColorBrightness() from the .cc file publicly available via a static method in DarkModeColorClassifier. Change-Id: I71497cbd4d6776134debade82960df7af01b1157 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1755054Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Aran Gilman <gilmanmh@google.com> Cr-Commit-Position: refs/heads/master@{#687368}
Showing
Please register or sign in to comment