Add compact table and update themes

This commit is contained in:
Geomitron
2023-12-25 11:23:50 -06:00
parent f931a1b221
commit 0abf801c7e
9 changed files with 99 additions and 68 deletions

View File

@@ -3,12 +3,14 @@ import { Difficulty, Instrument } from 'scan-chart'
export const themes = [
'business',
'dark',
'halloween',
'dim',
'night',
'sunset',
'synthwave',
'aqua',
'emerald',
'lemonade',
'nord',
'valentine',
'winter',
'aren',
@@ -23,6 +25,7 @@ export interface Settings {
theme: typeof themes[number] // The name of the currently enabled UI theme
libraryPath: string | undefined // The path to the user's library
isSng: boolean // If the chart should be downloaded as a .sng file or as a chart folder
isCompactTable: boolean // If the search result table should have reduced padding
instrument: Instrument | null // The instrument selected by default, or `null` for "Any Instrument"
difficulty: Difficulty | null // The difficulty selected by default, or `null` for "Any Difficulty"
}
@@ -35,6 +38,7 @@ export const defaultSettings: Settings = {
theme: 'dark',
libraryPath: undefined,
isSng: false,
isCompactTable: false,
instrument: 'guitar',
difficulty: null,
}