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

Commit 8c5e80f

Browse files
Merge pull request #777 from deckgo/remove-default-palette
feat: remove random color and background when creating a new deck
2 parents 8f0330f + 419fe25 commit 8c5e80f

File tree

2 files changed

+0
-126
lines changed

2 files changed

+0
-126
lines changed

studio/src/app/pages/editor/app-editor/app-editor.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import {debounce, isFullscreen, isIOS, isMobile} from '@deckdeckgo/utils';
1111

1212
import {convertStyle} from '@deckdeckgo/deck-utils';
1313

14-
import {generateRandomStyleColors} from '../../../utils/editor/random-palette';
15-
1614
import {AuthUser} from '../../../models/auth/auth.user';
1715
import {SlideTemplate} from '../../../models/data/slide';
1816

@@ -242,8 +240,6 @@ export class AppEditor {
242240

243241
await this.concatSlide(slide);
244242

245-
await this.initRandomDeckStyle();
246-
247243
resolve();
248244
});
249245
}
@@ -267,10 +263,6 @@ export class AppEditor {
267263
});
268264
}
269265

270-
private async initRandomDeckStyle() {
271-
this.style = await generateRandomStyleColors();
272-
}
273-
274266
private async initDeckStyle() {
275267
if (deckStore.state.deck && deckStore.state.deck.data && deckStore.state.deck.data.attributes && deckStore.state.deck.data.attributes.style) {
276268
this.style = await convertStyle(deckStore.state.deck.data.attributes.style);

studio/src/app/utils/editor/random-palette.tsx

Lines changed: 0 additions & 118 deletions
This file was deleted.

0 commit comments

Comments
 (0)