Child pages
  • Primary Schema for Preferences Framework

This documentation is currently being moved to our new documentation site.

Please view or edit the documentation there, instead.

If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

Preferences Schema

Schema for preferences that already exist in UIO

Text Size

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/fontSize": {
            "type": "number",
            "default": 1,
            "minimum": 1,
            "maximum": 2,
            "divisibleBy": 0.1
        }
    }
}

Line Spacing

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/lineSpacing": {
            "type": "number",
            "default": 1,
            "minimum": 1,
            "maximum": 2,
            "divisibleBy": 0.1
        }
    }
}

Text Font

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/textFont": {
            "type": "string",
            "default": "",
            "enum": ["", "Times New Roman", "Comic Sans", "Arial", "Verdana"]
        }
    }
}

Background Color

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/backgroundColor": {
            "type": "string",
            "default": "",
            "enum": ["", "white", "black", "yellow"]
        }
    }
}

Foreground Color

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/foregroundColour": {
            "type": "string",
            "default": "",
            "enum": ["", "white", "black", "yellow"]
        }
    }
}

Colour & Contrast

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/colourContrast": {
            "type": "object",
            "default": {
                "foregroundColour": "",
                "backgroundColor": ""
            },
            "properties": {
                "foregroundColour": {
                    "$ref": "http://gpii.net/common/foregroundColour"
                },
                "backgroundColor": {
                    "$ref": "http://gpii.net/common/backgroundColor"
                }
            },
            "enum": [{
                "foregroundColour": "",
                "backgroundColor": ""
            }, {
                "foregroundColour": "black",
                "backgroundColor": "white"
            }, {
                "foregroundColour": "white",
                "backgroundColor": "black"
            }, {
                "foregroundColour": "black",
                "backgroundColor": "yellow"
            }, {
                "foregroundColour": "yellow",
                "backgroundColor": "black"
            }]
        }
    }
}

Table of Contents

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/tableOfContents": {
            "type": "boolean",
            "default": false
        }
    }
}
{
    "type": "object",
    "properties": {
        "http://gpii.net/common/links": {
            "type": "boolean",
            "default": false
        }
    }
}

Make Inputs Larger

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/inputsLarger": {
            "type": "boolean",
            "default": false
        }
    }
}

Schema for preferences that are new in the latest UIO wireframes

Simplify

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/simplify": {
            "type": "boolean",
            "default": false
        }
    }
}

Captions

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/textToSpeech": {
            "type": "boolean",
            "default": false
        }
    }
}

Captions

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/captions": {
            "type": "boolean",
            "default": false
        }
    }
}

Captions Language

{
    "type": "object",
    "properties": {
        "http://gpii.net/common/captionsLanguage": {
            "type": "string",
            "default": "",
            "format": "http://tools.ietf.org/html/bcp47",
            "enum": ["", "en-US", "fr-CA"]
        }
    }
}

  • No labels