Browse Source

fixed #8886 - crash on the color schemes settings tab

Eugene 2 years ago
parent
commit
dc9a7d8fac

+ 1 - 1
tabby-terminal/src/components/colorSchemeSettingsTab.component.pug

@@ -1,6 +1,6 @@
 h3.mb-3(translate) Color schemes
 
-.form-line
+.form-line.mb-4
     .header
         .title(translate) Switch color scheme
 

+ 2 - 1
tabby-terminal/src/components/colorSchemeSettingsTab.component.ts

@@ -1,5 +1,5 @@
 import { Component } from '@angular/core'
-import { PlatformService } from 'tabby-core'
+import { ConfigService, PlatformService } from 'tabby-core'
 
 /** @hidden */
 @Component({
@@ -10,6 +10,7 @@ export class ColorSchemeSettingsTabComponent {
 
     constructor (
         platform: PlatformService,
+        public config: ConfigService,
     ) {
         this.defaultTab = platform.getTheme()
     }