mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-19 19:09:54 +00:00
allow customizing selection foreground color
This commit is contained in:
parent
1fb67e1730
commit
12aa28e766
@ -398,7 +398,7 @@ ngx-colors-panel .opened {
|
|||||||
background: $body-bg !important;
|
background: $body-bg !important;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
color: $body-color;
|
color: $body-color !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button svg {
|
.button svg {
|
||||||
|
@ -9,4 +9,6 @@ export interface TerminalColorScheme {
|
|||||||
background: string
|
background: string
|
||||||
cursor: string
|
cursor: string
|
||||||
colors: string[]
|
colors: string[]
|
||||||
|
selection?: string
|
||||||
|
selectionForeground?: string
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,18 @@
|
|||||||
title='CA',
|
title='CA',
|
||||||
hint='Block cursor foreground'
|
hint='Block cursor foreground'
|
||||||
)
|
)
|
||||||
|
color-picker(
|
||||||
|
[(model)]='config.store.terminal.colorScheme.selection',
|
||||||
|
(modelChange)='config.save()',
|
||||||
|
title='SB',
|
||||||
|
hint='Selection background'
|
||||||
|
)
|
||||||
|
color-picker(
|
||||||
|
[(model)]='config.store.terminal.colorScheme.selectionForeground',
|
||||||
|
(modelChange)='config.save()',
|
||||||
|
title='SF',
|
||||||
|
hint='Selection foreground'
|
||||||
|
)
|
||||||
color-picker(
|
color-picker(
|
||||||
*ngFor='let _ of config.store.terminal.colorScheme.colors; let idx = index; trackBy: colorsTrackBy',
|
*ngFor='let _ of config.store.terminal.colorScheme.colors; let idx = index; trackBy: colorsTrackBy',
|
||||||
[(model)]='config.store.terminal.colorScheme.colors[idx]',
|
[(model)]='config.store.terminal.colorScheme.colors[idx]',
|
||||||
|
@ -341,6 +341,7 @@ export class XTermFrontend extends Frontend {
|
|||||||
const theme: ITheme = {
|
const theme: ITheme = {
|
||||||
foreground: config.terminal.colorScheme.foreground,
|
foreground: config.terminal.colorScheme.foreground,
|
||||||
selection: config.terminal.colorScheme.selection || '#88888888',
|
selection: config.terminal.colorScheme.selection || '#88888888',
|
||||||
|
selectionForeground: config.terminal.colorScheme.selectionForeground || undefined,
|
||||||
background: config.terminal.background === 'colorScheme' ? config.terminal.colorScheme.background : '#00000000',
|
background: config.terminal.background === 'colorScheme' ? config.terminal.colorScheme.background : '#00000000',
|
||||||
cursor: config.terminal.colorScheme.cursor,
|
cursor: config.terminal.colorScheme.cursor,
|
||||||
cursorAccent: config.terminal.colorScheme.cursorAccent,
|
cursorAccent: config.terminal.colorScheme.cursorAccent,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user