mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 00:56:06 +00:00
fixed #8878 - default back to dark mode
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
.container.mt-5.mb-5
|
.container.mt-3.mb-3
|
||||||
.mb-4
|
.mb-3
|
||||||
.tabby-logo
|
.tabby-logo
|
||||||
h1.tabby-title Tabby
|
h1.tabby-title Tabby
|
||||||
sup α
|
sup α
|
||||||
|
|
||||||
.text-center.mb-5(translate) Thank you for downloading Tabby!
|
.text-center.mb-3(translate) Thank you for downloading Tabby!
|
||||||
|
|
||||||
.form-line
|
.form-line
|
||||||
.header
|
.header
|
||||||
@@ -16,13 +16,54 @@
|
|||||||
*ngFor='let lang of allLanguages'
|
*ngFor='let lang of allLanguages'
|
||||||
) {{lang.name}}
|
) {{lang.name}}
|
||||||
|
|
||||||
|
.form-line
|
||||||
|
.header
|
||||||
|
.title(translate) Switch color scheme
|
||||||
|
|
||||||
|
.btn-group(role='group')
|
||||||
|
input.btn-check(
|
||||||
|
type='radio',
|
||||||
|
name='colorSchemeMode',
|
||||||
|
[(ngModel)]='config.store.appearance.colorSchemeMode',
|
||||||
|
(ngModelChange)='config.save()',
|
||||||
|
id='colorSchemeModeAuto',
|
||||||
|
[value]='"auto"'
|
||||||
|
)
|
||||||
|
label.btn.btn-secondary(
|
||||||
|
for='colorSchemeModeAuto'
|
||||||
|
)
|
||||||
|
span(translate) From system
|
||||||
|
input.btn-check(
|
||||||
|
type='radio',
|
||||||
|
name='colorSchemeMode',
|
||||||
|
[(ngModel)]='config.store.appearance.colorSchemeMode',
|
||||||
|
(ngModelChange)='config.save()',
|
||||||
|
id='colorSchemeModeDark',
|
||||||
|
[value]='"dark"'
|
||||||
|
)
|
||||||
|
label.btn.btn-secondary(
|
||||||
|
for='colorSchemeModeDark'
|
||||||
|
)
|
||||||
|
span(translate) Always dark
|
||||||
|
input.btn-check(
|
||||||
|
type='radio',
|
||||||
|
name='colorSchemeMode',
|
||||||
|
[(ngModel)]='config.store.appearance.colorSchemeMode',
|
||||||
|
(ngModelChange)='config.save()',
|
||||||
|
id='colorSchemeModeLight',
|
||||||
|
[value]='"light"'
|
||||||
|
)
|
||||||
|
label.btn.btn-secondary(
|
||||||
|
for='colorSchemeModeLight'
|
||||||
|
)
|
||||||
|
span(translate) Always light
|
||||||
|
|
||||||
.form-line
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title(translate) Enable analytics
|
.title(translate) Enable analytics
|
||||||
.description(translate) Help track the number of Tabby installs across the world!
|
.description(translate) Help track the number of Tabby installs across the world!
|
||||||
toggle([(ngModel)]='config.store.enableAnalytics')
|
toggle([(ngModel)]='config.store.enableAnalytics')
|
||||||
|
|
||||||
|
|
||||||
.form-line
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title(translate) Enable global hotkey (Ctrl-Space)
|
.title(translate) Enable global hotkey (Ctrl-Space)
|
||||||
|
@@ -6,3 +6,8 @@
|
|||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tabby-logo {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
}
|
||||||
|
@@ -96,5 +96,3 @@ hotkeys:
|
|||||||
- '⌘-Shift-E'
|
- '⌘-Shift-E'
|
||||||
command-selector:
|
command-selector:
|
||||||
- '⌘-Shift-P'
|
- '⌘-Shift-P'
|
||||||
appearance:
|
|
||||||
vibrancy: true
|
|
||||||
|
@@ -19,6 +19,7 @@ appearance:
|
|||||||
vibrancyType: 'blur'
|
vibrancyType: 'blur'
|
||||||
lastTabClosesWindow: false
|
lastTabClosesWindow: false
|
||||||
spaciness: 1
|
spaciness: 1
|
||||||
|
colorSchemeMode: 'dark'
|
||||||
terminal:
|
terminal:
|
||||||
showBuiltinProfiles: true
|
showBuiltinProfiles: true
|
||||||
showRecentProfiles: 3
|
showRecentProfiles: 3
|
||||||
|
@@ -3,7 +3,7 @@ import { Subject, Observable } from 'rxjs'
|
|||||||
import * as Color from 'color'
|
import * as Color from 'color'
|
||||||
import { ConfigService } from '../services/config.service'
|
import { ConfigService } from '../services/config.service'
|
||||||
import { Theme } from '../api/theme'
|
import { Theme } from '../api/theme'
|
||||||
import { PlatformService } from '../api/platform'
|
import { PlatformService, PlatformTheme } from '../api/platform'
|
||||||
import { NewTheme } from '../theme'
|
import { NewTheme } from '../theme'
|
||||||
|
|
||||||
@Injectable({ providedIn: 'root' })
|
@Injectable({ providedIn: 'root' })
|
||||||
@@ -194,7 +194,14 @@ export class ThemesService {
|
|||||||
|
|
||||||
/// @hidden
|
/// @hidden
|
||||||
_getActiveColorScheme (): any {
|
_getActiveColorScheme (): any {
|
||||||
if (this.platform.getTheme() === 'light') {
|
let theme: PlatformTheme = 'dark'
|
||||||
|
if (this.config.store.appearance.colorSchemeMode === 'light') {
|
||||||
|
theme = 'light'
|
||||||
|
} else if (this.config.store.appearance.colorSchemeMode === 'auto') {
|
||||||
|
theme = this.platform.getTheme()
|
||||||
|
}
|
||||||
|
|
||||||
|
if (theme === 'light') {
|
||||||
return this.config.store.terminal.lightColorScheme
|
return this.config.store.terminal.lightColorScheme
|
||||||
} else {
|
} else {
|
||||||
return this.config.store.terminal.colorScheme
|
return this.config.store.terminal.colorScheme
|
||||||
|
@@ -1,5 +1,47 @@
|
|||||||
h3.mb-3(translate) Color schemes
|
h3.mb-3(translate) Color schemes
|
||||||
|
|
||||||
|
.form-line
|
||||||
|
.header
|
||||||
|
.title(translate) Switch color scheme
|
||||||
|
|
||||||
|
.btn-group(role='group')
|
||||||
|
input.btn-check(
|
||||||
|
type='radio',
|
||||||
|
name='colorSchemeMode',
|
||||||
|
[(ngModel)]='config.store.appearance.colorSchemeMode',
|
||||||
|
(ngModelChange)='config.save()',
|
||||||
|
id='colorSchemeModeAuto',
|
||||||
|
[value]='"auto"'
|
||||||
|
)
|
||||||
|
label.btn.btn-secondary(
|
||||||
|
for='colorSchemeModeAuto'
|
||||||
|
)
|
||||||
|
span(translate) From system
|
||||||
|
input.btn-check(
|
||||||
|
type='radio',
|
||||||
|
name='colorSchemeMode',
|
||||||
|
[(ngModel)]='config.store.appearance.colorSchemeMode',
|
||||||
|
(ngModelChange)='config.save()',
|
||||||
|
id='colorSchemeModeDark',
|
||||||
|
[value]='"dark"'
|
||||||
|
)
|
||||||
|
label.btn.btn-secondary(
|
||||||
|
for='colorSchemeModeDark'
|
||||||
|
)
|
||||||
|
span(translate) Always dark
|
||||||
|
input.btn-check(
|
||||||
|
type='radio',
|
||||||
|
name='colorSchemeMode',
|
||||||
|
[(ngModel)]='config.store.appearance.colorSchemeMode',
|
||||||
|
(ngModelChange)='config.save()',
|
||||||
|
id='colorSchemeModeLight',
|
||||||
|
[value]='"light"'
|
||||||
|
)
|
||||||
|
label.btn.btn-secondary(
|
||||||
|
for='colorSchemeModeLight'
|
||||||
|
)
|
||||||
|
span(translate) Always light
|
||||||
|
|
||||||
ul.nav-tabs(ngbNav, #nav='ngbNav', [activeId]='defaultTab')
|
ul.nav-tabs(ngbNav, #nav='ngbNav', [activeId]='defaultTab')
|
||||||
li(ngbNavItem='dark')
|
li(ngbNavItem='dark')
|
||||||
a(ngbNavLink, translate) Dark mode
|
a(ngbNavLink, translate) Dark mode
|
||||||
|
Reference in New Issue
Block a user