🪐 Ceres is a comprehensive Android development framework designed to streamline your app development process. Powered by the latest technologies like Jetpack Compose, Hilt, Coroutines, and Flow, Ceres empowers developers to build modern and efficient Android applications.
This PR introduces significant enhancements to the color manipulation and customization capabilities within the project. The following functionalities have been added:
ColorUtils Object
Added the blend, darken, and lighten functions for color blending and adjustments.
Implemented the toGrayscale function for converting a color to grayscale.
Introduced the invert function to obtain the inverse color.
Added getBrightness for calculating color brightness.
Included calculateContrastRatio for determining the contrast ratio with another color.
Improved the harmonizeWithPrimary function by adding the @FloatRange parameter.
ColorTheme Object
Enhanced the Color.tone function with @IntRange parameters for specifying light and dark tones.
Improved the lightDarkColor function to handle light and dark color selection.
These additions provide more flexibility and control when working with colors, ensuring better design customization and harmonization with the primary theme.
Description
This PR introduces significant enhancements to the color manipulation and customization capabilities within the project. The following functionalities have been added:
ColorUtils
Objectblend
,darken
, andlighten
functions for color blending and adjustments.toGrayscale
function for converting a color to grayscale.invert
function to obtain the inverse color.getBrightness
for calculating color brightness.calculateContrastRatio
for determining the contrast ratio with another color.harmonizeWithPrimary
function by adding the@FloatRange
parameter.ColorTheme
ObjectColor.tone
function with@IntRange
parameters for specifying light and dark tones.lightDarkColor
function to handle light and dark color selection.These additions provide more flexibility and control when working with colors, ensuring better design customization and harmonization with the primary theme.
Closes #149