Itās done!
Iāve finished with the new version of Chamaeleon! Iām not sure of who uses this currently, but if you do, Iāve just saved you a whole ton of arrangements with the new one. Before we begin, it does come in a very large size, but if you donāt care then letās begin!
Blocks?
These are from an example project which I included the AIA for.
Configuration structureā¦
You can remove any property and it will still work, but it will stick to defaults for the missing property!
Configure block
{
BOX_CORNER_RADIUS: 4,
MODE: "LIGHT" || "DARK",
SECONDARY_COLOR: "#1A73E9",
TEXT_COLOR: "#000000"
}
āBOX_CORNER_RADIUSā accepts any integer and will be the corner radius of the outlined textfield.
āMODEā is where you use āLIGHTā or āDARKā, the hint color depends on this property. The hint color will be the opposite of the mode so if your background color of the arrangement or screen is light, then set the mode to āLIGHTā so the hint color will be darker than the background.
āSECONDARY_COLORā will default to ā#1A73E9ā, but as an integer. It only accepts integers, it will not convert a HEX to a color-int. This will be the outline color of the textfield when in focus.
āTEXT_COLORā will default to ā#000000ā, but as an integer. It only accepts integers, it will not convert a HEX to a color-int. This will be the text color of the textfield when someone types.
Create block
{
HINT: "Hello world!",
IS_SINGLE_LINE: true || false
}
āHINTā accepts only strings and will be the hint (and floating label) of the outlined textfield.
āIS_SINGLE_LINEā accepts only boolean and is whether the textfield will be 1 line or allow more to be shown when the width in text is reached.
The end
I hope that the block picture made you understand much of what youāre supposed to do! Enjoy
MaterialTextfields.aia (3.1 MB)
io.gitlab.stormifire.textfields.aix (3.1 MB)