Merge pull request #1006 from omnivore-app/fix/command-bar-order

Reduce command bar priority on theme items so they display at the bottom
This commit is contained in:
Jackson Harper
2022-07-22 14:39:53 -07:00
committed by GitHub

View File

@ -14,6 +14,7 @@ import {
KBarPositioner, KBarPositioner,
KBarAnimator, KBarAnimator,
KBarSearch, KBarSearch,
Priority,
} from 'kbar' } from 'kbar'
import { animatorStyle, KBarResultsComponents, searchStyle } from '../components/elements/KBar' import { animatorStyle, KBarResultsComponents, searchStyle } from '../components/elements/KBar'
import { darkenTheme, lightenTheme } from '../lib/themeUpdater' import { darkenTheme, lightenTheme } from '../lib/themeUpdater'
@ -43,6 +44,7 @@ const generateActions = (router: NextRouter) => {
name: 'Change theme (light) ', name: 'Change theme (light) ',
shortcut: ['v', 'l'], shortcut: ['v', 'l'],
keywords: 'light theme', keywords: 'light theme',
priority: Priority.LOW,
perform: () => lightenTheme(), perform: () => lightenTheme(),
}, },
{ {
@ -51,6 +53,7 @@ const generateActions = (router: NextRouter) => {
name: 'Change theme (dark) ', name: 'Change theme (dark) ',
shortcut: ['v', 'd'], shortcut: ['v', 'd'],
keywords: 'dark theme', keywords: 'dark theme',
priority: Priority.LOW,
perform: () => darkenTheme(), perform: () => darkenTheme(),
}, },
] ]