About:Color codes: Difference between revisions

m
no edit summary
mNo edit summary
Tags: Mobile edit Mobile web edit
mNo edit summary
Tags: Mobile edit Mobile web edit
Line 8: Line 8:
{{EditionM}}
{{EditionM}}
From the entries list, tap the 3-dot (kabob) menu button in the upper-right corner and tap Edit Library to enter Edit Library. The FIELDS tab will be selected by default, so tap the MAIN tab to get to Library Settings. The bottom two settings are '''Entry color''' (which implies the <u>foreground</u> color of the text) and '''Entry background color'''. These settings are by default set to '''None''', in which case the operating system's color mode (or theme) setting is used, which is most often black on white for '''Light''' mode & white on black for '''Dark''' mode. To set them to the colors you want, create a field to contain the color value you want, one for the foreground color & one for the background color.
From the entries list, tap the 3-dot (kabob) menu button in the upper-right corner and tap Edit Library to enter Edit Library. The FIELDS tab will be selected by default, so tap the MAIN tab to get to Library Settings. The bottom two settings are '''Entry color''' (which implies the <u>foreground</u> color of the text) and '''Entry background color'''. These settings are by default set to '''None''', in which case the operating system's color mode (or theme) setting is used, which is most often black on white for '''Light''' mode & white on black for '''Dark''' mode. To set them to the colors you want, create a field to contain the color value you want, one for the foreground color & one for the background color.
A color field may be a choice field or a JavaScript field. A choice field is one of the following:
* An SCL (Single-Choice List) field
* An MCL (Multiple-Choice List)
* A Radio Buttons field
* A checkboxes field
* A JavaScript field
The values for the choice items should be Internet color codes as described below. The typical script for a JavaScript color field would be something like...
<pre>
    if (field("Status") == "Due")
        "#00FF00"    // Green
else if (field("Status") == "Overdue")
        "#FF0000"    // Red
else
        "#000000"    // Black
</pre>


{{EditionD}}
{{EditionD}}