0
Files
src/ui
Sam Davis Omekara 60269f65f0 Fix inconsistency with CSS system colors Field and FieldText
This CL addresses an issue with CSS system colors where the values of
`Field` and `FieldText` were shared with `Canvas` and `CanvasText`
respectively. This occurred after switching to retrieve system colors
from color providers instead of the NativeTheme in Blink
(http://crrev.com/c/5322440).

Previously, for Windows, `Field` and `FieldText` were retrieved using
the NativeTheme in light mode and forced colors mode, sharing the same
colors as `Canvas` and `CanvasText`. However, for Dark mode on Windows
and non-forced colors scenarios for other OSs, we used
`LayoutTheme::DefaultSystemColor()`, which treated these colors
separately.

To fix this discrepancy, new color ids have been added to the color
pipeline for these system colors, allowing them to share the same colors
when appropriate and have distinct colors when necessary.

Bug: 400746852
Change-Id: I47f7c8dd56bbd66bdde04c70847a5274cc431cec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6349557
Reviewed-by: Alison Maher <almaher@microsoft.com>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Sam Davis Omekara <samomekarajr@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1432463}
2025-03-13 17:18:07 -07:00
..
2025-03-12 11:57:57 -07:00
2025-03-12 11:57:57 -07:00

This directory contains UI frameworks used to build various user interface features. This directory is not intended to contain UI features (such as a keyboard).