@@ -12,56 +12,8 @@ Welcome to the Storybook for **CodeQL for Visual Studio Code**! This Storybook c
1212
1313### Switching themes
1414
15- To switch between VSCode Dark+ and Light+ themes, you can make the following changes:
16-
17- ``` diff
18- diff --git a/extensions/ql-vscode/.storybook/manager.ts b/extensions/ql-vscode/.storybook/manager.ts
19- --- a/extensions/ql-vscode/.storybook/manager.ts
20- +++ b/extensions/ql-vscode/.storybook/manager.ts
21- @@ -2,6 +2,6 @@ import { addons } from '@storybook/addons';
22- import { themes } from '@storybook/theming';
23-
24- addons.setConfig({
25- - theme: themes.dark,
26- + theme: themes.light,
27- enableShortcuts: false,
28- });
29- diff --git a/extensions/ql-vscode/.storybook/preview.ts b/extensions/ql-vscode/.storybook/preview.ts
30- --- a/extensions/ql-vscode/.storybook/preview.ts
31- +++ b/extensions/ql-vscode/.storybook/preview.ts
32- @@ -4,7 +4,7 @@ import { action } from '@storybook/addon-actions';
33- // Allow all stories/components to use Codicons
34- import '@vscode/codicons/dist/codicon.css';
35-
36- - import '../src/stories/vscode-theme-dark.css';
37- + import '../src/stories/vscode-theme-light.css';
38-
39- // https://storybook.js.org/docs/react/configure/overview#configure-story-rendering
40- export const parameters = {
41- @@ -19,14 +19,14 @@ export const parameters = {
42- },
43- - // Use a dark theme to be aligned with VSCode
44- + // Use a light theme to be aligned with VSCode
45- docs: {
46- - theme: themes.dark,
47- + theme: themes.light,
48- },
49- backgrounds: {
50- - default: 'dark',
51- + default: 'light',
52- values: [
53- {
54- - name: 'dark',
55- - value: '#1e1e1e',
56- + name: 'light',
57- + value: '#ffffff',
58- },
59- ],
60- }
61- ```
62-
63- You will need to restart Storybook to apply the theme change to the Storybook UI. The preview frame should update
64- automatically.
15+ To switch between VSCode Dark+ and Light+ themes, use the button in the toolbar. This will not work on this document, so you'll only see
16+ the changes applied to a different story.
6517
6618### Writing stories
6719
0 commit comments