Skip to content

Commit 74c0b21

Browse files
committed
fix: added theme for user tutorial too
1 parent e808e8b commit 74c0b21

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pages/index.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,16 @@ export default Vue.extend({
6969
layout: 'main',
7070
data() {
7171
return {
72+
isDarkMode: this.$isDarkMode,
7273
isSkipTutorial: this.$isSkipTutorial,
7374
}
7475
},
7576
async mounted() {
7677
const { default: Driver } = await import('driver.js')
7778
const driver = new Driver({
7879
closeBtnText: 'Skip',
80+
className: 'dark:filter invert',
81+
stageBackground: this.isDarkMode ? 'hsl(221deg 30% 70%)' : '#ffffff',
7982
onReset: () => {
8083
document.cookie = 'isSkipTutorial=true; max-age=31536000; path=/;'
8184
},
@@ -86,14 +89,14 @@ export default Vue.extend({
8689
{
8790
element: '#lhsLabel',
8891
popover: {
89-
title: 'Labels',
92+
title: 'New feature',
9093
description: 'Now you can add labels to text blocks',
9194
},
9295
},
9396
{
9497
element: '#rhsLabel',
9598
popover: {
96-
title: 'Labels',
99+
title: 'New feature',
97100
description: 'Now you can add labels to text blocks',
98101
},
99102
},

0 commit comments

Comments
 (0)