Skip to content

Commit

Permalink
feat: Add high contrast mode API
Browse files Browse the repository at this point in the history
  • Loading branch information
alkalinecoffee committed Nov 15, 2024
1 parent 9ad3187 commit a54bb88
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 9 deletions.
42 changes: 37 additions & 5 deletions src/openrpc/accessibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"preferredLanguages": [
"eng",
"spa"
]
]
}
}
}
Expand Down Expand Up @@ -114,6 +114,36 @@
}
]
},
{
"name": "highContrastMode",
"summary": "Get whether high-contrast UI mode is enabled on the device",
"params": [],
"tags": [
{
"name": "capabilities",
"x-uses": [
"xrn:firebolt:capability:accessibility:highcontrastmode"
]
}
],
"result": {
"name": "highContrastMode",
"summary": "Whether high-contrast mode is enabled",
"schema": {
"type": "boolean"
}
},
"examples": [
{
"name": "High-contrast mode is enabled",
"params": [],
"result": {
"name": "Default Result",
"value": true
}
}
]
},
{
"name": "voiceGuidance",
"summary": "Get the user's preferred voice guidance settings",
Expand Down Expand Up @@ -222,21 +252,23 @@
}
}
]
}
}
],
"components": {
"schemas": {
"AudioDescriptionSettings": {
"title": "AudioDescriptionSettings",
"type": "object",
"required": ["enabled"],
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether or not audio descriptions should be enabled by default"
}
}
}
}
}
}
}
}
9 changes: 5 additions & 4 deletions src/sdks/core/sdk.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
{
"module": "Accessibility",
"use": [
"xrn:firebolt:capability:accessibility:audiodescriptions",
"xrn:firebolt:capability:accessibility:closedcaptions",
"xrn:firebolt:capability:accessibility:voiceguidance",
"xrn:firebolt:capability:accessibility:audiodescriptions"
"xrn:firebolt:capability:accessibility:highcontrastmode",
"xrn:firebolt:capability:accessibility:voiceguidance"
]
},
{
Expand Down Expand Up @@ -76,7 +77,7 @@
{
"module": "Internal",
"use": [
"xrn:firebolt:capability:lifecycle:initialize"
"xrn:firebolt:capability:lifecycle:initialize"
]
},
{
Expand Down Expand Up @@ -139,4 +140,4 @@
]
}
]
}
}

0 comments on commit a54bb88

Please sign in to comment.