[go: nahoru, domu]

tree: af875bed452f0135f19a7c298b8fe473f59bf8e1 [path history] [tgz]
  1. chromeos/
  2. dynamic_color/
  3. mac/
  4. win/
  5. .clang-tidy
  6. BUILD.gn
  7. color_id.h
  8. color_id.mojom
  9. color_id_macros.inc
  10. color_id_map_macros.inc
  11. color_metrics.cc
  12. color_metrics.h
  13. color_mixer.cc
  14. color_mixer.h
  15. color_mixer_unittest.cc
  16. color_mixers.cc
  17. color_mixers.h
  18. color_provider.cc
  19. color_provider.h
  20. color_provider_key.cc
  21. color_provider_key.h
  22. color_provider_manager.cc
  23. color_provider_manager.h
  24. color_provider_manager_unittest.cc
  25. color_provider_source.cc
  26. color_provider_source.h
  27. color_provider_source_observer.cc
  28. color_provider_source_observer.h
  29. color_provider_source_observer_unittest.cc
  30. color_provider_unittest.cc
  31. color_provider_utils.cc
  32. color_provider_utils.h
  33. color_provider_utils_unittest.cc
  34. color_recipe.cc
  35. color_recipe.h
  36. color_recipe_unittest.cc
  37. color_test_ids.h
  38. color_transform.cc
  39. color_transform.h
  40. color_transform_unittest.cc
  41. core_default_color_mixer.cc
  42. core_default_color_mixer.h
  43. DEPS
  44. fluent_ui_color_mixer.cc
  45. fluent_ui_color_mixer.h
  46. forced_colors_mixer.cc
  47. forced_colors_mixer.h
  48. material_ui_color_mixer.cc
  49. material_ui_color_mixer.h
  50. native_color_mixers.cc
  51. native_color_mixers.h
  52. OWNERS
  53. PRESUBMIT.py
  54. README.md
  55. ref_color_mixer.cc
  56. ref_color_mixer.h
  57. scheme_variant.mojom
  58. sys_color_mixer.cc
  59. sys_color_mixer.h
  60. sys_color_mixer_unittest.cc
  61. system_theme.h
  62. ui_color_mixer.cc
  63. ui_color_mixer.h
ui/color/README.md

Color Pipeline

This directory implements the cross-platform Color Pipeline machinery, including all core classes and the //ui-level mixers/recipes. Embedders may add more mixers/recipes to define additional colors or modify how these appear (for an example in Chrome, see the chrome/browser/ui/color/ directory).

To the greatest degree possible, colors in Chromium should be identified using ColorIds and their physical values obtained from an appropriate ColorProvider; direct use of SkColor outside ColorRecipes should be limited to colors which are necessarily transient, e.g. colors based on a current animation state or colors sampled dynamically from playing media.