Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling of "palette" #112

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/docs/input/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
| ------------------------------------------------- | ------------------- |
| <kbd>Ctrl</kbd>\* + <kbd>L</kbd> | Toggle Layout |
| <kbd>Ctrl</kbd>\* + <kbd>M</kbd> | Toggle Map |
| <kbd>Ctrl</kbd>\* + <kbd>P</kbd> | Toggle Pallete |
| <kbd>Ctrl</kbd>\* + <kbd>P</kbd> | Toggle Palette |
| <kbd>Ctrl</kbd>\* + <kbd>A</kbd> | Toggle Select All |
| <kbd>Ctrl</kbd>\* + <kbd>;</kbd> | Toggle Search |
| <kbd>Ctrl</kbd>\* + <kbd>\</kbd> | Toggle Microphone |
Expand Down
16 changes: 8 additions & 8 deletions src/system/platform/component/app/Editor/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18395,10 +18395,10 @@ export class Editor_ extends Element<HTMLDivElement, _Props> {
this._cabinet.setActive('minimap', !this._minimap_hidden)
}

if (this._pallete_hidden === undefined) {
this._pallete_hidden = !this._cabinet.isActive('color')
if (this._palette_hidden === undefined) {
this._palette_hidden = !this._cabinet.isActive('color')
} else {
this._cabinet.setActive('color', !this._pallete_hidden)
this._cabinet.setActive('color', !this._palette_hidden)
}
}
}
Expand All @@ -18409,7 +18409,7 @@ export class Editor_ extends Element<HTMLDivElement, _Props> {
if (drawer_id === 'minimap') {
this._minimap_hidden = false
} else if (drawer_id === 'color') {
this._pallete_hidden = false
this._palette_hidden = false
}
}

Expand All @@ -18418,7 +18418,7 @@ export class Editor_ extends Element<HTMLDivElement, _Props> {
if (drawer_id === 'minimap') {
this._minimap_hidden = true
} else if (drawer_id === 'color') {
this._pallete_hidden = true
this._palette_hidden = true
}
}

Expand Down Expand Up @@ -44628,9 +44628,9 @@ export class Editor_ extends Element<HTMLDivElement, _Props> {
}
}

private _pallete_hidden: boolean
private _palette_hidden: boolean

private _toggle_pallete = (): void => {
private _toggle_palette = (): void => {
// TODO
}

Expand Down Expand Up @@ -52857,7 +52857,7 @@ export class Editor_ extends Element<HTMLDivElement, _Props> {
}

private _on_ctrl_p_keydown = (key: string): void => {
this._toggle_pallete()
this._toggle_palette()
}

private _force_finish_last_action: Unlisten
Expand Down
14 changes: 7 additions & 7 deletions src/system/platform/component/app/GUI/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class GUI extends Element<HTMLDivElement, Props> {
public _cabinet: Cabinet
public _minimap: Minimap
public _color_picker: Color
public _color_pallete: Div
public _color_palette: Div
public _share: Div
public _import: IconButton
public _folder: IconButton
Expand Down Expand Up @@ -204,20 +204,20 @@ export default class GUI extends Element<HTMLDivElement, Props> {
)
this._color_picker = color_picker

const color_pallete = new Div(
const color_palette = new Div(
{
style: {
className: 'gui-color-pallete',
className: 'gui-color-palette',
samuelmtimbo marked this conversation as resolved.
Show resolved Hide resolved
position: 'relative',
display: 'flex',
flexDirection: 'column',
},
},
this.$system
)
color_pallete.appendChild(color_theme)
color_pallete.appendChild(color_picker)
this._color_pallete = color_pallete
color_palette.appendChild(color_theme)
color_palette.appendChild(color_picker)
this._color_palette = color_palette

const folder_button = new IconButton(
{
Expand Down Expand Up @@ -610,7 +610,7 @@ export default class GUI extends Element<HTMLDivElement, Props> {
color: {
icon: 'palette',
title: 'color',
component: this._color_pallete,
component: this._color_palette,
active: false,
width: 60,
height: 72,
Expand Down