Cotton code
248 lines · 7.5 KB · JSONRaw
{  "format_version": 1,  "id": "face_settings",  "name": "Face choice",  "plural": "Face choices",  "builtin": true,  "visibility": "owner",  "title": "table",  "columns": [    {      "key": "table",      "name": "Table",      "type": "text",      "required": true    },    {      "key": "face",      "name": "Face",      "type": "text",      "required": true    },    {      "key": "chosen_at",      "name": "Chosen at",      "type": "date"    },    {      "key": "font_size",      "name": "Text size",      "type": "number"    },    {      "key": "line_height",      "name": "Line spacing",      "type": "number"    },    {      "key": "margins",      "name": "Margins",      "type": "number"    },    {      "key": "font",      "name": "Font",      "type": "choice",      "choices": [        "publisher",        "serif",        "sans",        "dyslexic",        "mono",        "system"      ],      "labels": {        "publisher": "The book's own",        "serif": "Serif",        "sans": "Sans serif",        "dyslexic": "For dyslexia",        "mono": "Mono",        "system": "The phone's own"      }    },    {      "key": "weight",      "name": "Weight",      "type": "choice",      "choices": [        "regular",        "bold"      ],      "labels": {        "regular": "Regular",        "bold": "Bold"      }    },    {      "key": "justify",      "name": "Justify",      "type": "bool"    },    {      "key": "publisher_styles",      "name": "The book's own styles",      "type": "bool"    },    {      "key": "layout",      "name": "Layout",      "type": "choice",      "choices": [        "pages",        "scroll"      ],      "labels": {        "pages": "Pages",        "scroll": "Scroll"      }    },    {      "key": "page_turn",      "name": "Page turn",      "type": "choice",      "choices": [        "slide",        "fade",        "none"      ],      "labels": {        "slide": "Slide",        "fade": "Fade",        "none": "None"      }    },    {      "key": "follow_device",      "name": "Follow the phone's light and dark",      "type": "bool"    },    {      "key": "pdf_fit",      "name": "PDF fit",      "type": "choice",      "choices": [        "width",        "page"      ],      "labels": {        "width": "Width",        "page": "Whole page"      }    },    {      "key": "year_goal",      "name": "Books this year",      "type": "number"    },    {      "key": "crossfade_seconds",      "name": "Crossfade",      "type": "number",      "units": {        "one": "{n} second",        "other": "{n} seconds"      }    },    {      "key": "gapless",      "name": "Gapless",      "type": "bool"    },    {      "key": "loudness",      "name": "Even loudness",      "type": "choice",      "choices": [        "off",        "track",        "album"      ],      "labels": {        "off": "Off",        "track": "By song",        "album": "By album"      }    },    {      "key": "speed",      "name": "Speed",      "type": "number"    },    {      "key": "sleep_timer_minutes",      "name": "Sleep timer",      "type": "number",      "units": {        "one": "{n} minute",        "other": "{n} minutes"      }    },    {      "key": "lyrics_shown",      "name": "Show lyrics",      "type": "bool"    },    {      "key": "subtitles_on",      "name": "Subtitles",      "type": "bool"    },    {      "key": "audio_language",      "name": "Audio language",      "type": "text",      "placeholder": "The film's own"    },    {      "key": "subtitle_language",      "name": "Subtitle language",      "type": "text",      "placeholder": "The phone's language"    },    {      "key": "autoplay_next",      "name": "Play the next episode",      "type": "bool"    },    {      "key": "paragraph_spacing",      "name": "Paragraph spacing",      "type": "number"    },    {      "key": "hide_marks",      "name": "Hide marks",      "type": "bool"    },    {      "key": "pinned_tags",      "name": "Pinned tags",      "type": "text"    },    {      "key": "tag_icons",      "name": "Tag icons",      "type": "text"    },    {      "key": "ink",      "name": "Ink",      "type": "text"    },    {      "key": "type_face",      "name": "Typeface",      "type": "text"    }  ],  "instructions": "One choice per table. The table id is the row id. The face must be one the table offers; chosen_at is when the object accepted the choice. The row keyed reader is the book reader's: its face is the reading face (paper, sepia or night), and its other columns are the reader's settings, shared by every phone: font_size (1.0 is the book's size, 0.75 to 2.5), line_height (1.0 to 2.0), margins (0.5 to 2.5), font, weight, justify, publisher_styles, layout, page_turn, follow_device and pdf_fit; year_goal is how many books the owner means to finish this year. The row keyed player is the music player's: its face is the player's (hifi, turntable, amp, party, tray or cassette, hifi when none is chosen), and its other columns are the player's settings, shared by every phone: crossfade_seconds (0 is off, up to 12), gapless (on when empty), loudness (off, track or album: ReplayGain by song or by album), speed (1.0 is the song's own, 0.5 to 2.0), sleep_timer_minutes (the sleep timer's default) and lyrics_shown. The other rows leave them empty. The row keyed cinema is the film player's: its face is the player's (apple, Apple's own player), and its other columns are the player's settings, shared by every phone: subtitles_on (on when empty), audio_language and subtitle_language (BCP 47 codes such as en or hi; empty is the film's own audio and the phone's language), and autoplay_next (on when empty: the next episode plays after a ten-second count). The row keyed notes is Cotton Notes' look and type, shared by every phone: its face is the theme in light mode (chalk, graphite, contrast or cotton), font (sans, serif, mono or system), font_size (13 to 28 points), line_height (1.2 to 2.0) and margins the line width (the characters a line holds: 56, 64, 72 or 84, 0 the whole width); the row keyed notes_dark holds only its face, the theme in dark mode. The notes row's ink is the colour Words writes and marks in, whatever the theme: blue (the default when empty), red, green or black. Look (23 Nov 2026): every app's paper, ink and type. The notes row's type_face is Words' typeface (own is Figtree, serif, typewriter, hyperlegible or dyslexic; when empty, font says it). The rows keyed days_look, story_look and comms_look are Days', Story's and Comms' look: face the paper in light mode, ink, type_face (own is the app's own face) and font_size a scale of the app's own size (0.9, 1.0, 1.15 or 1.3); days_look_dark, story_look_dark and comms_look_dark hold only their face, the paper in dark mode. The rows keyed keys_look and keys_look_dark are Secrets' look in the same way (25 Nov 2026): paper lilac, paper, night or coal; ink plum, jade, garnet, indigo or graphite; own is Red Hat Text. The rows keyed mail_look and mail_look_dark are Post's (25 Nov 2026): paper sage, paper, night or coal; ink franking, teal, oxblood, ink_blue or graphite; own is Instrument Sans. The rows keyed sites_look and sites_look_dark are Sites' (25 Nov 2026): paper rose, paper, night or black; ink cranberry, petrol, indigo, ochre or graphite; own is Instrument Sans.",  "row_key": "table",  "face_choices": true,  "seal": {    "clear": [      "table",      "face",      "chosen_at"    ]  }}