tabby/terminus-terminal/src/settings.ts

40 lines
1.1 KiB
TypeScript
Raw Normal View History

2017-03-26 20:39:10 +00:00
import { Injectable } from '@angular/core'
import { SettingsTabProvider } from 'terminus-settings'
2017-04-11 00:22:48 +00:00
import { AppearanceSettingsTabComponent } from './components/appearanceSettingsTab.component'
import { ShellSettingsTabComponent } from './components/shellSettingsTab.component'
2017-04-16 18:38:42 +00:00
import { TerminalSettingsTabComponent } from './components/terminalSettingsTab.component'
2017-03-26 20:39:10 +00:00
@Injectable()
export class AppearanceSettingsTabProvider extends SettingsTabProvider {
id = 'terminal-appearance'
2019-01-03 14:19:50 +00:00
icon = 'palette'
title = 'Appearance'
getComponentType (): any {
return AppearanceSettingsTabComponent
}
}
@Injectable()
export class ShellSettingsTabProvider extends SettingsTabProvider {
id = 'terminal-shell'
2019-01-03 14:19:50 +00:00
icon = 'list-ul'
title = 'Shell'
getComponentType (): any {
return ShellSettingsTabComponent
}
}
2017-03-26 20:39:10 +00:00
@Injectable()
2017-04-14 13:30:19 +00:00
export class TerminalSettingsTabProvider extends SettingsTabProvider {
2017-11-04 18:06:58 +00:00
id = 'terminal'
2019-01-03 14:19:50 +00:00
icon = 'terminal'
2017-03-26 20:39:10 +00:00
title = 'Terminal'
getComponentType (): any {
2017-04-14 13:30:19 +00:00
return TerminalSettingsTabComponent
2017-03-26 20:39:10 +00:00
}
}