136 lines
2.7 KiB
TypeScript
136 lines
2.7 KiB
TypeScript
import { name, version } from '../info.toml'
|
|
import { license, url } from '../../../package.json'
|
|
import {
|
|
pit,
|
|
depths,
|
|
stope,
|
|
text,
|
|
orange,
|
|
teal,
|
|
red,
|
|
yellow,
|
|
green,
|
|
blue,
|
|
purple,
|
|
} from '../../../src/palette'
|
|
|
|
export function headerInfo(): string {
|
|
return `#########################
|
|
# ${name} for kitty
|
|
# ${version}
|
|
# ${license}
|
|
# ${url}
|
|
####################
|
|
|
|
`
|
|
}
|
|
|
|
export function colorsBasic(): string {
|
|
return `#########################
|
|
# The basic colors
|
|
foreground ${text.toHex()}
|
|
background ${pit.toHex()}
|
|
selection_foreground ${depths.toHex()}
|
|
selection_background ${text.toHex()}
|
|
####################
|
|
|
|
`
|
|
}
|
|
|
|
export function colorsCursor(): string {
|
|
return `#########################
|
|
# Cursor colors
|
|
cursor ${text.toHex()}
|
|
cursor_text_color ${depths.toHex()}
|
|
cursor_trail_color ${yellow.toHex()}
|
|
####################
|
|
|
|
`
|
|
}
|
|
|
|
export function colorsURLs(): string {
|
|
return `#########################
|
|
# URL colors
|
|
url_color ${blue.toHex()}
|
|
####################
|
|
|
|
`
|
|
}
|
|
|
|
export function colorsBordersAndAlerts(): string {
|
|
return `#########################
|
|
# window border colors and terminal bell colors
|
|
active_border_color ${teal.toHex()}
|
|
inactive_border_color ${stope.toHex()}
|
|
bell_border_color ${orange.toHex()}
|
|
# visual_bell_color none
|
|
####################
|
|
|
|
`
|
|
}
|
|
|
|
export function colorsTabBar(): string {
|
|
return `#########################
|
|
# Tab bar colors
|
|
active_tab_foreground ${text.toHex()}
|
|
active_tab_background ${depths.toHex()}
|
|
inactive_tab_foreground ${text.toHex()}
|
|
inactive_tab_background ${stope.toHex()}
|
|
# tab_bar_background #{pit.toHex()}
|
|
# tab_bar_margin_color none
|
|
####################
|
|
|
|
`
|
|
}
|
|
|
|
export function colorsMarks(): string {
|
|
return `#########################
|
|
# Marks colors
|
|
# mark1_foreground black
|
|
# mark1_background #98d3cb
|
|
# mark2_foreground black
|
|
# mark2_background #f2dcd3
|
|
# mark3_foreground black
|
|
# mark3_background #f274bc
|
|
####################
|
|
|
|
`
|
|
}
|
|
|
|
export function colorsBasic16(): string {
|
|
return `#########################
|
|
# The basic 16 colors
|
|
#: black
|
|
color0 ${pit.toHex()}
|
|
color8 ${stope.toHex()}
|
|
|
|
#: red
|
|
color1 ${red.toHex()}
|
|
color9 ${red.toHex()}
|
|
|
|
#: green
|
|
color2 ${green.toHex()}
|
|
color10 ${green.toHex()}
|
|
|
|
#: yellow
|
|
color3 ${yellow.toHex()}
|
|
color11 ${yellow.toHex()}
|
|
|
|
#: blue
|
|
color4 ${blue.toHex()}
|
|
color12 ${blue.toHex()}
|
|
|
|
#: magenta
|
|
color5 ${purple.toHex()}
|
|
color13 ${purple.toHex()}
|
|
|
|
#: cyan
|
|
color6 ${teal.toHex()}
|
|
color14 ${teal.toHex()}
|
|
|
|
#: white
|
|
color7 ${text.toHex()}
|
|
color15 ${text.toHex()}
|
|
####################`
|
|
}
|
|
|