mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-11 06:59:59 +00:00
68 lines
1.7 KiB
TypeScript
68 lines
1.7 KiB
TypeScript
import { Injectable } from '@angular/core'
|
|
import { TerminalColorScheme } from './api/interfaces'
|
|
import { TerminalColorSchemeProvider } from './api/colorSchemeProvider'
|
|
|
|
@Injectable({ providedIn: 'root' })
|
|
export class DefaultColorSchemes extends TerminalColorSchemeProvider {
|
|
static defaultColorScheme: TerminalColorScheme = {
|
|
name: 'Tabby Default',
|
|
foreground: '#cacaca',
|
|
background: '#171717',
|
|
cursor: '#bbbbbb',
|
|
colors: [
|
|
'#000000',
|
|
'#ff615a',
|
|
'#b1e969',
|
|
'#ebd99c',
|
|
'#5da9f6',
|
|
'#e86aff',
|
|
'#82fff7',
|
|
'#dedacf',
|
|
'#313131',
|
|
'#f58c80',
|
|
'#ddf88f',
|
|
'#eee5b2',
|
|
'#a5c7ff',
|
|
'#ddaaff',
|
|
'#b7fff9',
|
|
'#ffffff',
|
|
],
|
|
selection: undefined,
|
|
cursorAccent: undefined,
|
|
}
|
|
|
|
static defaultLightColorScheme: TerminalColorScheme = {
|
|
name: 'Tabby Default Light',
|
|
foreground: '#4d4d4c',
|
|
background: '#ffffff',
|
|
cursor: '#4d4d4c',
|
|
colors: [
|
|
'#000000',
|
|
'#c82829',
|
|
'#718c00',
|
|
'#eab700',
|
|
'#4271ae',
|
|
'#8959a8',
|
|
'#3e999f',
|
|
'#ffffff',
|
|
'#000000',
|
|
'#c82829',
|
|
'#718c00',
|
|
'#eab700',
|
|
'#4271ae',
|
|
'#8959a8',
|
|
'#3e999f',
|
|
'#ffffff',
|
|
],
|
|
selection: undefined,
|
|
cursorAccent: undefined,
|
|
}
|
|
|
|
async getSchemes (): Promise<TerminalColorScheme[]> {
|
|
return [
|
|
DefaultColorSchemes.defaultColorScheme,
|
|
DefaultColorSchemes.defaultLightColorScheme,
|
|
]
|
|
}
|
|
}
|