diff --git a/studio/src/app/components/editor/app-select-target-element/app-select-target-element.tsx b/studio/src/app/components/editor/app-select-target-element/app-select-target-element.tsx
index baded3f67..7673e587d 100644
--- a/studio/src/app/components/editor/app-select-target-element/app-select-target-element.tsx
+++ b/studio/src/app/components/editor/app-select-target-element/app-select-target-element.tsx
@@ -118,7 +118,7 @@ export class AppSelectTargetElement {
if (this.slide) {
return (
- Text
+ Font
);
} else {
@@ -130,7 +130,7 @@ export class AppSelectTargetElement {
if (this.textTarget) {
return (
- Text
+ Font
);
} else {
diff --git a/studio/src/app/components/editor/color/app-color-text-background/app-color-text-background.tsx b/studio/src/app/components/editor/styles/app-color-text-background/app-color-text-background.tsx
similarity index 100%
rename from studio/src/app/components/editor/color/app-color-text-background/app-color-text-background.tsx
rename to studio/src/app/components/editor/styles/app-color-text-background/app-color-text-background.tsx
diff --git a/studio/src/app/components/editor/styles/app-expansion-panel/app-expansion-panel.tsx b/studio/src/app/components/editor/styles/app-expansion-panel/app-expansion-panel.tsx
index 50161d8de..173e53bf8 100644
--- a/studio/src/app/components/editor/styles/app-expansion-panel/app-expansion-panel.tsx
+++ b/studio/src/app/components/editor/styles/app-expansion-panel/app-expansion-panel.tsx
@@ -1,4 +1,4 @@
-import {Component, h, State, Prop} from '@stencil/core';
+import {Component, h, Prop} from '@stencil/core';
@Component({
tag: 'app-expansion-panel',
@@ -10,11 +10,17 @@ export class AppExpansionPanel {
@Prop()
expander: boolean = true;
- @State()
- private expanded: 'open' | 'close' = 'open';
+ @Prop({mutable: true})
+ expanded: 'open' | 'close' = 'open';
// Source animation: https://css-tricks.com/using-css-transitions-auto-dimensions/
+ componentDidLoad() {
+ if (this.expanded === 'close') {
+ this.container.style.height = 0 + 'px';
+ }
+ }
+
private toggle() {
if (this.expanded === 'close') {
this.expand();
diff --git a/studio/src/app/components/editor/styles/element/app-align/app-align.scss b/studio/src/app/components/editor/styles/element/app-align/app-align.scss
index e9b383bc7..ef1e8400c 100644
--- a/studio/src/app/components/editor/styles/element/app-align/app-align.scss
+++ b/studio/src/app/components/editor/styles/element/app-align/app-align.scss
@@ -1,21 +1,7 @@
app-align {
- ion-item.align {
- --background-activated: transparent;
- --background-focused: transparent;
- --background-hover: transparent;
-
- --color: rgba(0, 0, 0, 0.6);
- font-size: var(--font-size-normal);
-
- cursor: pointer;
-
- &:hover,
- &.active {
- --color: black;
-
- ion-icon {
- color: black;
- }
+ ion-list {
+ ion-item {
+ margin-bottom: 4px;
}
}
}
diff --git a/studio/src/app/components/editor/styles/element/app-align/app-align.tsx b/studio/src/app/components/editor/styles/element/app-align/app-align.tsx
index 641b9c823..bd47b00cd 100644
--- a/studio/src/app/components/editor/styles/element/app-align/app-align.tsx
+++ b/studio/src/app/components/editor/styles/element/app-align/app-align.tsx
@@ -19,13 +19,13 @@ export class AppAlign {
this.align = await AlignUtils.getAlignment(this.selectedElement);
}
- private async updateAlign(align: TextAlign): Promise {
- if (!this.selectedElement) {
+ private async updateAlign($event: CustomEvent): Promise {
+ if (!this.selectedElement || !$event || !$event.detail) {
return;
}
- this.selectedElement.style.textAlign = align;
- this.align = align;
+ this.selectedElement.style.textAlign = $event.detail.value;
+ this.align = $event.detail.value;
this.alignChange.emit();
}
@@ -39,20 +39,23 @@ export class AppAlign {
Alignment
- {this.renderAlign(TextAlign.LEFT, 'Align left')}
- {this.renderAlign(TextAlign.CENTER, 'Align center')}
- {this.renderAlign(TextAlign.RIGHT, 'Align right')}
+
+ Alignment
+
+ this.updateAlign($event)}
+ interface="popover"
+ mode="md"
+ class="ion-padding-start ion-padding-end">
+ Left
+ Center
+ Right
+
+
);
}
-
- private renderAlign(align: TextAlign, text: string) {
- return (
- this.updateAlign(align)} class={`align ${this.align == align ? 'active' : undefined}`}>
-
- {text}
-
- );
- }
}
diff --git a/studio/src/app/components/editor/color/app-color-code/app-color-code.scss b/studio/src/app/components/editor/styles/element/app-color-code/app-color-code.scss
similarity index 60%
rename from studio/src/app/components/editor/color/app-color-code/app-color-code.scss
rename to studio/src/app/components/editor/styles/element/app-color-code/app-color-code.scss
index 83cea7cfd..021aaec46 100644
--- a/studio/src/app/components/editor/color/app-color-code/app-color-code.scss
+++ b/studio/src/app/components/editor/styles/element/app-color-code/app-color-code.scss
@@ -8,4 +8,13 @@ app-color-code {
ion-item.action-button {
padding-bottom: 8px;
}
+
+ ion-list {
+ &.terminal,
+ &.theme {
+ ion-item {
+ margin-bottom: 4px;
+ }
+ }
+ }
}
diff --git a/studio/src/app/components/editor/color/app-color-code/app-color-code.tsx b/studio/src/app/components/editor/styles/element/app-color-code/app-color-code.tsx
similarity index 77%
rename from studio/src/app/components/editor/color/app-color-code/app-color-code.tsx
rename to studio/src/app/components/editor/styles/element/app-color-code/app-color-code.tsx
index fc82794f3..6ada81355 100644
--- a/studio/src/app/components/editor/color/app-color-code/app-color-code.tsx
+++ b/studio/src/app/components/editor/styles/element/app-color-code/app-color-code.tsx
@@ -1,6 +1,10 @@
-import {Component, Element, Event, EventEmitter, h, Prop, State} from '@stencil/core';
+import {Component, Event, EventEmitter, h, Prop, State} from '@stencil/core';
+
import {alertController, RangeChangeEventDetail} from '@ionic/core';
-import {ColorUtils, InitStyleColor} from '../../../../utils/editor/color.utils';
+
+import {DeckdeckgoHighlightCodeCarbonTheme, DeckdeckgoHighlightCodeTerminal} from '@deckdeckgo/highlight-code';
+
+import {ColorUtils, InitStyleColor} from '../../../../../utils/editor/color.utils';
enum CodeColorType {
COMMENTS,
@@ -19,8 +23,6 @@ enum CodeColorType {
styleUrl: 'app-color-code.scss',
})
export class AppColorCode {
- @Element() el: HTMLElement;
-
@Prop()
selectedElement: HTMLElement;
@@ -45,11 +47,18 @@ export class AppColorCode {
@State()
private highlightColorOpacity: number = 100;
- @Event() colorChange: EventEmitter;
+ @State()
+ private terminal: DeckdeckgoHighlightCodeTerminal = DeckdeckgoHighlightCodeTerminal.CARBON;
+
+ @State()
+ private theme: DeckdeckgoHighlightCodeCarbonTheme = DeckdeckgoHighlightCodeCarbonTheme.DRACULA;
+
+ @Event() codeDidChange: EventEmitter;
async componentWillLoad() {
- await this.initColor();
- await this.initCurrentHiglight();
+ const promises: Promise[] = [this.initColor(), this.initCurrentHiglight(), this.initTerminal()];
+
+ await Promise.all(promises);
}
// prettier-ignore
@@ -68,6 +77,18 @@ export class AppColorCode {
});
}
+ private async initTerminal() {
+ this.terminal =
+ this.selectedElement && this.selectedElement.hasAttribute('terminal')
+ ? (this.selectedElement.getAttribute('terminal') as DeckdeckgoHighlightCodeTerminal)
+ : DeckdeckgoHighlightCodeTerminal.CARBON;
+
+ this.theme =
+ this.selectedElement && this.selectedElement.hasAttribute('theme')
+ ? (this.selectedElement.getAttribute('theme') as DeckdeckgoHighlightCodeCarbonTheme)
+ : DeckdeckgoHighlightCodeCarbonTheme.DRACULA;
+ }
+
private selectColor($event: CustomEvent, colorFunction: Function): Promise {
return new Promise(async (resolve) => {
if (!this.selectedElement || !this.selectedElement.parentElement) {
@@ -165,13 +186,13 @@ export class AppColorCode {
}
// prettier-ignore
- private initColor(): Promise {
- return new Promise(async (resolve) => {
+ private initColor(): Promise {
+ return new Promise(async (resolve) => {
if (!this.selectedElement || !this.selectedElement.style) {
this.codeColor = undefined;
this.codeColorOpacity = 100;
- resolve(null);
+ resolve();
return;
}
@@ -248,7 +269,7 @@ export class AppColorCode {
}
private emitColorChange() {
- this.colorChange.emit();
+ this.codeDidChange.emit();
}
private updateOpacity($event: CustomEvent, opacityFunction: Function): Promise {
@@ -297,14 +318,40 @@ export class AppColorCode {
});
}
+ private toggle($event: CustomEvent, attribute: 'terminal' | 'theme'): Promise {
+ return new Promise(async (resolve) => {
+ if (!$event || !$event.detail) {
+ resolve();
+ return;
+ }
+
+ if (!this.selectedElement) {
+ resolve();
+ return;
+ }
+
+ if (attribute === 'terminal') {
+ this.terminal = $event.detail.value;
+ } else if (attribute === 'theme') {
+ this.theme = $event.detail.value;
+ }
+
+ this.selectedElement.setAttribute(attribute, $event.detail.value);
+
+ this.codeDidChange.emit();
+
+ resolve();
+ });
+ }
+
render() {
- return [this.renderCategoryColor(), this.renderHighlightLinesColor()];
+ return [this.renderTerminal(), this.renderTheme(), this.renderCategoryColor(), this.renderHighlightLinesColor()];
}
private renderCategoryColor() {
return (
-
- Colors
+
+ More colors
Apply a color to
@@ -365,9 +412,70 @@ export class AppColorCode {
);
}
- private renderHighlightLinesColor() {
+ private renderTerminal() {
+ return (
+
+ Terminal
+
+
+
+ Terminal
+
+ this.toggle($event, 'terminal')}
+ interface="popover"
+ mode="md"
+ class="ion-padding-start ion-padding-end ion-text-capitalize">
+ {Object.keys(DeckdeckgoHighlightCodeTerminal).map((key: string) => {
+ return (
+
+ {DeckdeckgoHighlightCodeTerminal[key].replace(/^\w/, (c) => c.toUpperCase())}
+
+ );
+ })}
+
+
+
+
+ );
+ }
+
+ private renderTheme() {
return (
+ Theme
+
+
+
+ Theme
+
+ this.toggle($event, 'theme')}
+ interface="popover"
+ mode="md"
+ class="ion-padding-start ion-padding-end ion-text-capitalize">
+ {Object.keys(DeckdeckgoHighlightCodeCarbonTheme).map((key: string) => {
+ return (
+
+ {DeckdeckgoHighlightCodeCarbonTheme[key].replace(/^\w/, (c) => c.toUpperCase())}
+
+ );
+ })}
+
+
+
+
+ );
+ }
+
+ private renderHighlightLinesColor() {
+ return (
+
Highlight lines
@@ -214,7 +214,7 @@ export class AppColorSides {
}
private resetLabelContent() {
- if (this.applyColorType === ApplyColorType.TEXT) {
+ if (this.applyColorType === ApplyColorType.FONT) {
return 'Reset text color';
} else {
return 'Reset background';
diff --git a/studio/src/app/popovers/editor/app-code/app-code.tsx b/studio/src/app/popovers/editor/app-code/app-code.tsx
index f1c9d28f8..8dc23bfa3 100644
--- a/studio/src/app/popovers/editor/app-code/app-code.tsx
+++ b/studio/src/app/popovers/editor/app-code/app-code.tsx
@@ -2,18 +2,8 @@ import {Component, Element, EventEmitter, Prop, State, h} from '@stencil/core';
import {modalController, OverlayEventDetail} from '@ionic/core';
-import {DeckdeckgoHighlightCodeTerminal, DeckdeckgoHighlightCodeCarbonTheme} from '@deckdeckgo/highlight-code';
-
import {PrismLanguage, PrismService} from '../../../services/editor/prism/prism.service';
-enum CodeFontSize {
- VERY_SMALL,
- SMALL,
- NORMAL,
- BIG,
- VERY_BIG,
-}
-
@Component({
tag: 'app-code',
styleUrl: 'app-code.scss',
@@ -30,18 +20,9 @@ export class AppCode {
@State()
private currentLanguage: PrismLanguage | undefined;
- @State()
- private currentFontSize: CodeFontSize = undefined;
-
@State()
private lineNumbers: boolean = false;
- @State()
- private terminal: DeckdeckgoHighlightCodeTerminal = DeckdeckgoHighlightCodeTerminal.CARBON;
-
- @State()
- private theme: DeckdeckgoHighlightCodeCarbonTheme = DeckdeckgoHighlightCodeCarbonTheme.DRACULA;
-
private prismService: PrismService;
constructor() {
@@ -60,17 +41,7 @@ export class AppCode {
return new Promise(async (resolve) => {
await this.initCurrentLanguage();
- this.currentFontSize = await this.initFontSize();
this.lineNumbers = this.selectedElement && this.selectedElement.hasAttribute('line-numbers');
- this.terminal =
- this.selectedElement && this.selectedElement.hasAttribute('terminal')
- ? (this.selectedElement.getAttribute('terminal') as DeckdeckgoHighlightCodeTerminal)
- : DeckdeckgoHighlightCodeTerminal.CARBON;
-
- this.theme =
- this.selectedElement && this.selectedElement.hasAttribute('theme')
- ? (this.selectedElement.getAttribute('theme') as DeckdeckgoHighlightCodeCarbonTheme)
- : DeckdeckgoHighlightCodeCarbonTheme.DRACULA;
resolve();
});
@@ -86,87 +57,6 @@ export class AppCode {
this.codeDidChange.emit(this.selectedElement);
}
- private initFontSize(): Promise {
- return new Promise((resolve) => {
- if (!this.selectedElement || !this.selectedElement.style) {
- resolve(null);
- return;
- }
-
- const property: string = this.selectedElement.style.getPropertyValue('--deckgo-highlight-code-font-size');
-
- if (property === '50%') {
- resolve(CodeFontSize.VERY_SMALL);
- } else if (property === '75%') {
- resolve(CodeFontSize.SMALL);
- } else if (property === '150%') {
- resolve(CodeFontSize.BIG);
- } else if (property === '200%') {
- resolve(CodeFontSize.VERY_BIG);
- } else {
- resolve(CodeFontSize.NORMAL);
- }
- });
- }
-
- private toggleFontSize($event: CustomEvent): Promise {
- return new Promise(async (resolve) => {
- if (!$event || !$event.detail) {
- resolve();
- return;
- }
-
- this.currentFontSize = $event.detail.value;
-
- if (!this.selectedElement) {
- resolve();
- return;
- }
-
- this.selectedElement.style.removeProperty('--deckgo-highlight-code-font-size');
-
- if (this.currentFontSize === CodeFontSize.VERY_SMALL) {
- this.selectedElement.style.setProperty('--deckgo-highlight-code-font-size', '50%');
- } else if (this.currentFontSize === CodeFontSize.SMALL) {
- this.selectedElement.style.setProperty('--deckgo-highlight-code-font-size', '75%');
- } else if (this.currentFontSize === CodeFontSize.BIG) {
- this.selectedElement.style.setProperty('--deckgo-highlight-code-font-size', '150%');
- } else if (this.currentFontSize === CodeFontSize.VERY_BIG) {
- this.selectedElement.style.setProperty('--deckgo-highlight-code-font-size', '200%');
- }
-
- this.emitCodeDidChange();
-
- resolve();
- });
- }
-
- private toggle($event: CustomEvent, attribute: 'terminal' | 'theme'): Promise {
- return new Promise(async (resolve) => {
- if (!$event || !$event.detail) {
- resolve();
- return;
- }
-
- if (!this.selectedElement) {
- resolve();
- return;
- }
-
- if (attribute === 'terminal') {
- this.terminal = $event.detail.value;
- } else if (attribute === 'theme') {
- this.theme = $event.detail.value;
- }
-
- this.selectedElement.setAttribute(attribute, $event.detail.value);
-
- this.emitCodeDidChange();
-
- resolve();
- });
- }
-
private toggleLineNumbers($event: CustomEvent): Promise {
return new Promise(async (resolve) => {
if (!this.selectedElement) {
@@ -229,77 +119,6 @@ export class AppCode {
-
- Font size
-
-
-
- Size
-
- this.toggleFontSize($event)}
- interface="popover"
- mode="md"
- class="ion-padding-start ion-padding-end">
- Very small
- Small
- Normal
- Big
- Very big
-
-
-
-
- Terminal
-
-
-
- Terminal
-
- this.toggle($event, 'terminal')}
- interface="popover"
- mode="md"
- class="ion-padding-start ion-padding-end ion-text-capitalize">
- {Object.keys(DeckdeckgoHighlightCodeTerminal).map((key: string) => {
- return (
-
- {DeckdeckgoHighlightCodeTerminal[key].replace(/^\w/, (c) => c.toUpperCase())}
-
- );
- })}
-
-
-
-
- Theme
-
-
-
- Theme
-
- this.toggle($event, 'theme')}
- interface="popover"
- mode="md"
- class="ion-padding-start ion-padding-end ion-text-capitalize">
- {Object.keys(DeckdeckgoHighlightCodeCarbonTheme).map((key: string) => {
- return (
-
- {DeckdeckgoHighlightCodeCarbonTheme[key].replace(/^\w/, (c) => c.toUpperCase())}
-
- );
- })}
-
-
-
Display line numbers
this.toggleLineNumbers($event)}>
diff --git a/studio/src/app/popovers/editor/app-math/app-math.tsx b/studio/src/app/popovers/editor/app-math/app-math.tsx
index d0c8d1ce6..937a1134c 100644
--- a/studio/src/app/popovers/editor/app-math/app-math.tsx
+++ b/studio/src/app/popovers/editor/app-math/app-math.tsx
@@ -1,13 +1,5 @@
import {Component, Element, EventEmitter, Prop, State, h} from '@stencil/core';
-enum MathFontSize {
- VERY_SMALL,
- SMALL,
- NORMAL,
- BIG,
- VERY_BIG,
-}
-
@Component({
tag: 'app-math',
styleUrl: 'app-math.scss',
@@ -21,9 +13,6 @@ export class AppMath {
@Prop()
mathDidChange: EventEmitter;
- @State()
- private currentFontSize: MathFontSize = undefined;
-
@State()
private macros: string | undefined;
@@ -38,7 +27,6 @@ export class AppMath {
}
private async initCurrent(): Promise {
- this.currentFontSize = await this.initFontSize();
this.macros = this.selectedElement ? this.selectedElement.getAttribute('macros') : undefined;
}
@@ -46,61 +34,6 @@ export class AppMath {
this.mathDidChange.emit(this.selectedElement);
}
- private initFontSize(): Promise {
- return new Promise((resolve) => {
- if (!this.selectedElement || !this.selectedElement.style) {
- resolve(null);
- return;
- }
-
- const property: string = this.selectedElement.style.getPropertyValue('--deckgo-math-font-size');
-
- if (property === '50%') {
- resolve(MathFontSize.VERY_SMALL);
- } else if (property === '75%') {
- resolve(MathFontSize.SMALL);
- } else if (property === '150%') {
- resolve(MathFontSize.BIG);
- } else if (property === '200%') {
- resolve(MathFontSize.VERY_BIG);
- } else {
- resolve(MathFontSize.NORMAL);
- }
- });
- }
-
- private toggleFontSize($event: CustomEvent): Promise {
- return new Promise(async (resolve) => {
- if (!$event || !$event.detail) {
- resolve();
- return;
- }
-
- this.currentFontSize = $event.detail.value;
-
- if (!this.selectedElement) {
- resolve();
- return;
- }
-
- this.selectedElement.style.removeProperty('--deckgo-math-font-size');
-
- if (this.currentFontSize === MathFontSize.VERY_SMALL) {
- this.selectedElement.style.setProperty('--deckgo-math-font-size', '50%');
- } else if (this.currentFontSize === MathFontSize.SMALL) {
- this.selectedElement.style.setProperty('--deckgo-math-font-size', '75%');
- } else if (this.currentFontSize === MathFontSize.BIG) {
- this.selectedElement.style.setProperty('--deckgo-math-font-size', '150%');
- } else if (this.currentFontSize === MathFontSize.VERY_BIG) {
- this.selectedElement.style.setProperty('--deckgo-math-font-size', '200%');
- }
-
- this.emitMathDidChange();
-
- resolve();
- });
- }
-
private handleMacrosInput($event: CustomEvent) {
this.macros = ($event.target as InputTargetEvent).value;
}
@@ -128,28 +61,6 @@ export class AppMath {
,
-
- Font size
-
-
-
- Size
-
- this.toggleFontSize($event)}
- interface="popover"
- mode="md"
- class="ion-padding-start ion-padding-end">
- Very small
- Small
- Normal
- Big
- Very big
-
-
-
Macros
diff --git a/studio/src/app/popovers/editor/style/app-element-style/app-element-style.tsx b/studio/src/app/popovers/editor/style/app-element-style/app-element-style.tsx
index bfb2aa61b..6a1cd1860 100644
--- a/studio/src/app/popovers/editor/style/app-element-style/app-element-style.tsx
+++ b/studio/src/app/popovers/editor/style/app-element-style/app-element-style.tsx
@@ -192,7 +192,9 @@ export class AppElementStyle {
this.emitStyleChange()} moreColors={this.moreColors}>
);
} else if (this.applyToTargetElement === TargetElement.CODE) {
- return this.emitStyleChange()} moreColors={this.moreColors}>;
+ return (
+ this.emitStyleChange()} moreColors={this.moreColors}>
+ );
} else if (this.applyToTargetElement === TargetElement.SIDES) {
return (
this.emitStyleChange()}>,
+ this.renderList(),
this.emitStyleChange()}>,
- this.emitStyleChange()}>,
- this.renderList(),
];
}
}
@@ -251,4 +254,17 @@ export class AppElementStyle {
return this.closePopover()}>;
}
+
+ private renderFontSize() {
+ if (!this.code && !this.math) {
+ return undefined;
+ }
+
+ return (
+ this.emitStyleChange()}>
+ );
+ }
}
diff --git a/studio/src/assets/assets.json b/studio/src/assets/assets.json
index 3deb9ee5d..c4e3ff935 100644
--- a/studio/src/assets/assets.json
+++ b/studio/src/assets/assets.json
@@ -215,7 +215,6 @@
{"src": "/icons/ionicons/arrow-back.svg", "ariaLabel": "Back"},
{"src": "/icons/ionicons/md-list.svg", "ariaLabel": "List"},
{"src": "/icons/ionicons/list.svg", "ariaLabel": "List"},
- {"src": "/icons/list-ol.svg", "ariaLabel": "List"},
{"src": "/icons/ionicons/brush.svg", "ariaLabel": "Brush"},
{"src": "/icons/ionicons/phone-portrait.svg", "ariaLabel": "Phone"},
{"src": "/icons/ionicons/share.svg", "ariaLabel": "Share"},
@@ -234,9 +233,6 @@
{"src": "/icons/ionicons/code.svg", "ariaLabel": "Code"},
{"src": "/icons/ionicons/images.svg", "ariaLabel": "Images"},
{"src": "/icons/ionicons/checkmark.svg", "ariaLabel": "Check"},
- {"src": "/icons/align-center.svg", "ariaLabel": "Align center"},
- {"src": "/icons/align-left.svg", "ariaLabel": "Align left"},
- {"src": "/icons/align-right.svg", "ariaLabel": "Align right"},
{"src": "/icons/math.svg", "ariaLabel": "Math"},
{"src": "/icons/ionicons/color-wand.svg", "ariaLabel": "Transform element"},
{"src": "/icons/ionicons/chevron-down.svg", "ariaLabel": "Chevron down"},
diff --git a/studio/src/assets/icons/align-center.svg b/studio/src/assets/icons/align-center.svg
deleted file mode 100644
index 7227625f7..000000000
--- a/studio/src/assets/icons/align-center.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/studio/src/assets/icons/align-left.svg b/studio/src/assets/icons/align-left.svg
deleted file mode 100644
index 7095ef373..000000000
--- a/studio/src/assets/icons/align-left.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/studio/src/assets/icons/align-right.svg b/studio/src/assets/icons/align-right.svg
deleted file mode 100644
index d409e956b..000000000
--- a/studio/src/assets/icons/align-right.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/studio/src/components.d.ts b/studio/src/components.d.ts
index cdfd3e787..96501dac1 100644
--- a/studio/src/components.d.ts
+++ b/studio/src/components.d.ts
@@ -198,6 +198,7 @@ export namespace Components {
}
interface AppEmbed {}
interface AppExpansionPanel {
+ 'expanded': 'open' | 'close';
'expander': boolean;
}
interface AppFaq {}
@@ -211,6 +212,10 @@ export namespace Components {
'editable': boolean;
'tags': string[];
}
+ interface AppFontSize {
+ 'selectedElement': HTMLElement;
+ 'selector': '--deckgo-highlight-code-font-size' | '--deckgo-math-font-size';
+ }
interface AppFooter {
'display': 'menu' | 'landing';
}
@@ -619,6 +624,12 @@ declare global {
new (): HTMLAppFeedCardTagsElement;
};
+ interface HTMLAppFontSizeElement extends Components.AppFontSize, HTMLStencilElement {}
+ var HTMLAppFontSizeElement: {
+ prototype: HTMLAppFontSizeElement;
+ new (): HTMLAppFontSizeElement;
+ };
+
interface HTMLAppFooterElement extends Components.AppFooter, HTMLStencilElement {}
var HTMLAppFooterElement: {
prototype: HTMLAppFooterElement;
@@ -1022,6 +1033,7 @@ declare global {
'app-feed': HTMLAppFeedElement;
'app-feed-card': HTMLAppFeedCardElement;
'app-feed-card-tags': HTMLAppFeedCardTagsElement;
+ 'app-font-size': HTMLAppFontSizeElement;
'app-footer': HTMLAppFooterElement;
'app-fullscreen-info': HTMLAppFullscreenInfoElement;
'app-get-help': HTMLAppGetHelpElement;
@@ -1171,7 +1183,7 @@ declare namespace LocalJSX {
}
interface AppColorCode {
'moreColors'?: boolean;
- 'onColorChange'?: (event: CustomEvent) => void;
+ 'onCodeDidChange'?: (event: CustomEvent) => void;
'selectedElement'?: HTMLElement;
}
interface AppColorQrcode {
@@ -1267,6 +1279,7 @@ declare namespace LocalJSX {
}
interface AppEmbed {}
interface AppExpansionPanel {
+ 'expanded'?: 'open' | 'close';
'expander'?: boolean;
}
interface AppFaq {}
@@ -1281,6 +1294,11 @@ declare namespace LocalJSX {
'onRemoveTag'?: (event: CustomEvent) => void;
'tags'?: string[];
}
+ interface AppFontSize {
+ 'onCodeDidChange'?: (event: CustomEvent) => void;
+ 'selectedElement'?: HTMLElement;
+ 'selector'?: '--deckgo-highlight-code-font-size' | '--deckgo-math-font-size';
+ }
interface AppFooter {
'display'?: 'menu' | 'landing';
}
@@ -1491,6 +1509,7 @@ declare namespace LocalJSX {
'app-feed': AppFeed;
'app-feed-card': AppFeedCard;
'app-feed-card-tags': AppFeedCardTags;
+ 'app-font-size': AppFontSize;
'app-footer': AppFooter;
'app-fullscreen-info': AppFullscreenInfo;
'app-get-help': AppGetHelp;
@@ -1603,6 +1622,7 @@ declare module "@stencil/core" {
'app-feed': LocalJSX.AppFeed & JSXBase.HTMLAttributes;
'app-feed-card': LocalJSX.AppFeedCard & JSXBase.HTMLAttributes;
'app-feed-card-tags': LocalJSX.AppFeedCardTags & JSXBase.HTMLAttributes;
+ 'app-font-size': LocalJSX.AppFontSize & JSXBase.HTMLAttributes;
'app-footer': LocalJSX.AppFooter & JSXBase.HTMLAttributes;
'app-fullscreen-info': LocalJSX.AppFullscreenInfo & JSXBase.HTMLAttributes;
'app-get-help': LocalJSX.AppGetHelp & JSXBase.HTMLAttributes;