[go: nahoru, domu]

tree: 95f8e1ebab1d0c8e5006708ba60812356aec4d24 [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_manager.cc
  21. color_provider_manager.h
  22. color_provider_manager_unittest.cc
  23. color_provider_source.cc
  24. color_provider_source.h
  25. color_provider_source_observer.cc
  26. color_provider_source_observer.h
  27. color_provider_source_observer_unittest.cc
  28. color_provider_unittest.cc
  29. color_provider_utils.cc
  30. color_provider_utils.h
  31. color_provider_utils_unittest.cc
  32. color_recipe.cc
  33. color_recipe.h
  34. color_recipe_unittest.cc
  35. color_test_ids.h
  36. color_transform.cc
  37. color_transform.h
  38. color_transform_unittest.cc
  39. core_default_color_mixer.cc
  40. core_default_color_mixer.h
  41. DEPS
  42. material_ui_color_mixer.cc
  43. material_ui_color_mixer.h
  44. native_color_mixers.cc
  45. native_color_mixers.h
  46. OWNERS
  47. PRESUBMIT.py
  48. README.md
  49. ref_color_mixer.cc
  50. ref_color_mixer.h
  51. run_all_unittests.cc
  52. sys_color_mixer.cc
  53. sys_color_mixer.h
  54. system_theme.h
  55. temp_palette.cc
  56. temp_palette.h
  57. ui_color_mixer.cc
  58. 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.