theme: rename color scheme to theme (#3991)
cc @MitjaBezensek ### Change Type <!-- ❗ Please select a 'Scope' label ❗️ --> - [x] `sdk` — Changes the tldraw SDK - [ ] `dotcom` — Changes the tldraw.com web app - [ ] `docs` — Changes to the documentation, examples, or templates. - [ ] `vs code` — Changes to the vscode plugin - [ ] `internal` — Does not affect user-facing stuff <!-- ❗ Please select a 'Type' label ❗️ --> - [ ] `bugfix` — Bug fix - [ ] `feature` — New feature - [x] `improvement` — Improving existing features - [ ] `chore` — Updating dependencies, other boring stuff - [ ] `galaxy brain` — Architectural changes - [ ] `tests` — Changes to any test code - [ ] `tools` — Changes to infrastructure, CI, internal scripts, debugging tools, etc. - [ ] `dunno` — I don't know
This commit is contained in:
parent
05c827dab7
commit
6137d4e375
5 changed files with 17 additions and 17 deletions
|
@ -115,9 +115,9 @@
|
||||||
"action.zoom-to-selection": "Zoom to selection",
|
"action.zoom-to-selection": "Zoom to selection",
|
||||||
"assets.files.upload-failed": "Upload failed",
|
"assets.files.upload-failed": "Upload failed",
|
||||||
"assets.url.failed": "Couldn't load URL preview",
|
"assets.url.failed": "Couldn't load URL preview",
|
||||||
"color-scheme.dark": "Dark",
|
"theme.dark": "Dark",
|
||||||
"color-scheme.light": "Light",
|
"theme.light": "Light",
|
||||||
"color-scheme.system": "System",
|
"theme.system": "System",
|
||||||
"color-style.white": "White",
|
"color-style.white": "White",
|
||||||
"color-style.black": "Black",
|
"color-style.black": "Black",
|
||||||
"color-style.blue": "Blue",
|
"color-style.blue": "Blue",
|
||||||
|
@ -232,7 +232,7 @@
|
||||||
"tool.embed": "Embed",
|
"tool.embed": "Embed",
|
||||||
"tool.text": "Text",
|
"tool.text": "Text",
|
||||||
"menu.title": "Menu",
|
"menu.title": "Menu",
|
||||||
"menu.color-scheme": "Color scheme",
|
"menu.theme": "Theme",
|
||||||
"menu.copy-as": "Copy as",
|
"menu.copy-as": "Copy as",
|
||||||
"menu.edit": "Edit",
|
"menu.edit": "Edit",
|
||||||
"menu.export-as": "Export as",
|
"menu.export-as": "Export as",
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,9 +5,9 @@ import { TldrawUiMenuGroup } from './primitives/menus/TldrawUiMenuGroup'
|
||||||
import { TldrawUiMenuSubmenu } from './primitives/menus/TldrawUiMenuSubmenu'
|
import { TldrawUiMenuSubmenu } from './primitives/menus/TldrawUiMenuSubmenu'
|
||||||
|
|
||||||
const COLOR_SCHEMES = [
|
const COLOR_SCHEMES = [
|
||||||
{ colorScheme: 'light' as const, label: 'color-scheme.light' },
|
{ colorScheme: 'light' as const, label: 'theme.light' },
|
||||||
{ colorScheme: 'dark' as const, label: 'color-scheme.dark' },
|
{ colorScheme: 'dark' as const, label: 'theme.dark' },
|
||||||
{ colorScheme: 'system' as const, label: 'color-scheme.system' },
|
{ colorScheme: 'system' as const, label: 'theme.system' },
|
||||||
]
|
]
|
||||||
|
|
||||||
/** @public @react */
|
/** @public @react */
|
||||||
|
@ -21,7 +21,7 @@ export function ColorSchemeMenu() {
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TldrawUiMenuSubmenu id="help menu color-scheme" label="menu.color-scheme">
|
<TldrawUiMenuSubmenu id="help menu color-scheme" label="menu.theme">
|
||||||
<TldrawUiMenuGroup id="languages">
|
<TldrawUiMenuGroup id="languages">
|
||||||
{COLOR_SCHEMES.map(({ colorScheme, label }) => (
|
{COLOR_SCHEMES.map(({ colorScheme, label }) => (
|
||||||
<TldrawUiMenuCheckboxItem
|
<TldrawUiMenuCheckboxItem
|
||||||
|
|
|
@ -119,9 +119,9 @@ export type TLUiTranslationKey =
|
||||||
| 'action.zoom-to-selection'
|
| 'action.zoom-to-selection'
|
||||||
| 'assets.files.upload-failed'
|
| 'assets.files.upload-failed'
|
||||||
| 'assets.url.failed'
|
| 'assets.url.failed'
|
||||||
| 'color-scheme.dark'
|
| 'theme.dark'
|
||||||
| 'color-scheme.light'
|
| 'theme.light'
|
||||||
| 'color-scheme.system'
|
| 'theme.system'
|
||||||
| 'color-style.white'
|
| 'color-style.white'
|
||||||
| 'color-style.black'
|
| 'color-style.black'
|
||||||
| 'color-style.blue'
|
| 'color-style.blue'
|
||||||
|
@ -236,7 +236,7 @@ export type TLUiTranslationKey =
|
||||||
| 'tool.embed'
|
| 'tool.embed'
|
||||||
| 'tool.text'
|
| 'tool.text'
|
||||||
| 'menu.title'
|
| 'menu.title'
|
||||||
| 'menu.color-scheme'
|
| 'menu.theme'
|
||||||
| 'menu.copy-as'
|
| 'menu.copy-as'
|
||||||
| 'menu.edit'
|
| 'menu.edit'
|
||||||
| 'menu.export-as'
|
| 'menu.export-as'
|
||||||
|
|
|
@ -119,9 +119,9 @@ export const DEFAULT_TRANSLATION = {
|
||||||
'action.zoom-to-selection': 'Zoom to selection',
|
'action.zoom-to-selection': 'Zoom to selection',
|
||||||
'assets.files.upload-failed': 'Upload failed',
|
'assets.files.upload-failed': 'Upload failed',
|
||||||
'assets.url.failed': "Couldn't load URL preview",
|
'assets.url.failed': "Couldn't load URL preview",
|
||||||
'color-scheme.dark': 'Dark',
|
'theme.dark': 'Dark',
|
||||||
'color-scheme.light': 'Light',
|
'theme.light': 'Light',
|
||||||
'color-scheme.system': 'System',
|
'theme.system': 'System',
|
||||||
'color-style.white': 'White',
|
'color-style.white': 'White',
|
||||||
'color-style.black': 'Black',
|
'color-style.black': 'Black',
|
||||||
'color-style.blue': 'Blue',
|
'color-style.blue': 'Blue',
|
||||||
|
@ -236,7 +236,7 @@ export const DEFAULT_TRANSLATION = {
|
||||||
'tool.embed': 'Embed',
|
'tool.embed': 'Embed',
|
||||||
'tool.text': 'Text',
|
'tool.text': 'Text',
|
||||||
'menu.title': 'Menu',
|
'menu.title': 'Menu',
|
||||||
'menu.color-scheme': 'Color scheme',
|
'menu.theme': 'Theme',
|
||||||
'menu.copy-as': 'Copy as',
|
'menu.copy-as': 'Copy as',
|
||||||
'menu.edit': 'Edit',
|
'menu.edit': 'Edit',
|
||||||
'menu.export-as': 'Export as',
|
'menu.export-as': 'Export as',
|
||||||
|
|
Loading…
Reference in a new issue