Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 0819fa4

Browse files
feat: rename "Text" to "Font"
Signed-off-by: peterpeterparker <[email protected]>
1 parent afd7eab commit 0819fa4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

studio/src/app/components/editor/app-select-target-element/app-select-target-element.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class AppSelectTargetElement {
118118
if (this.slide) {
119119
return (
120120
<ion-segment-button value={TargetElement.SLIDE} mode="md">
121-
<ion-label>Text</ion-label>
121+
<ion-label>Font</ion-label>
122122
</ion-segment-button>
123123
);
124124
} else {
@@ -130,7 +130,7 @@ export class AppSelectTargetElement {
130130
if (this.textTarget) {
131131
return (
132132
<ion-segment-button value={TargetElement.TEXT} mode="md">
133-
<ion-label>Text</ion-label>
133+
<ion-label>Font</ion-label>
134134
</ion-segment-button>
135135
);
136136
} else {

studio/src/app/components/editor/color/app-color-chart/app-color-chart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {ChartUtils} from '../../../../utils/editor/chart.utils';
99
enum ApplyColorType {
1010
FILL,
1111
STROKE,
12-
TEXT,
12+
FONT,
1313
AXIS,
1414
GRID,
1515
}
@@ -241,7 +241,7 @@ export class AppColorDeckSlide {
241241
const options = [
242242
<ion-select-option value={ApplyColorType.FILL}>Fill</ion-select-option>,
243243
<ion-select-option value={ApplyColorType.STROKE}>Stroke</ion-select-option>,
244-
<ion-select-option value={ApplyColorType.TEXT}>Text</ion-select-option>,
244+
<ion-select-option value={ApplyColorType.FONT}>Font</ion-select-option>,
245245
];
246246

247247
if (this.chartType != SlideChartType.PIE) {

studio/src/app/components/editor/color/app-color-sides/app-color-sides.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {RangeChangeEventDetail} from '@ionic/core';
44
import {ColorUtils, InitStyleColor} from '../../../../utils/editor/color.utils';
55

66
enum ApplyColorType {
7-
TEXT,
7+
FONT,
88
BACKGROUND,
99
}
1010

@@ -30,7 +30,7 @@ export class AppColorSides {
3030
private colorOpacity: number = 100;
3131

3232
@State()
33-
private applyColorType: ApplyColorType = ApplyColorType.TEXT;
33+
private applyColorType: ApplyColorType = ApplyColorType.FONT;
3434

3535
@Event() colorChange: EventEmitter<void>;
3636

@@ -177,7 +177,7 @@ export class AppColorSides {
177177
interface="popover"
178178
mode="md"
179179
class="ion-padding-start ion-padding-end">
180-
<ion-select-option value={ApplyColorType.TEXT}>Text</ion-select-option>,
180+
<ion-select-option value={ApplyColorType.FONT}>Font</ion-select-option>,
181181
<ion-select-option value={ApplyColorType.BACKGROUND}>Background</ion-select-option>,
182182
</ion-select>
183183
</ion-item>
@@ -214,7 +214,7 @@ export class AppColorSides {
214214
}
215215

216216
private resetLabelContent() {
217-
if (this.applyColorType === ApplyColorType.TEXT) {
217+
if (this.applyColorType === ApplyColorType.FONT) {
218218
return 'Reset text color';
219219
} else {
220220
return 'Reset background';

0 commit comments

Comments
 (0)