1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-21 00:30:00 +02:00

Add bold style for border (#4644)

- **PR Description**

bold border looks great and makes it easy to notice the color change
This commit is contained in:
Stefan Haller
2025-06-15 18:23:47 +02:00
committed by GitHub
5 changed files with 9 additions and 6 deletions

View File

@ -248,7 +248,7 @@ gui:
screenMode: normal
# Window border style.
# One of 'rounded' (default) | 'single' | 'double' | 'hidden'
# One of 'rounded' (default) | 'single' | 'double' | 'hidden' | 'bold'
border: rounded
# If true, show a seriously epic explosion animation when nuking the working tree.

View File

@ -560,7 +560,7 @@ gui:
screenMode: normal
# Window border style.
# One of 'rounded' (default) | 'single' | 'double' | 'hidden'
# One of 'rounded' (default) | 'single' | 'double' | 'hidden' | 'bold'
border: rounded
# If true, show a seriously epic explosion animation when nuking the working tree.

View File

@ -166,8 +166,8 @@ type GuiConfig struct {
// One of: 'normal' (default) | 'half' | 'full'
ScreenMode string `yaml:"screenMode" jsonschema:"enum=normal,enum=half,enum=full"`
// Window border style.
// One of 'rounded' (default) | 'single' | 'double' | 'hidden'
Border string `yaml:"border" jsonschema:"enum=single,enum=double,enum=rounded,enum=hidden"`
// One of 'rounded' (default) | 'single' | 'double' | 'hidden' | 'bold'
Border string `yaml:"border" jsonschema:"enum=single,enum=double,enum=rounded,enum=hidden,enum=bold"`
// If true, show a seriously epic explosion animation when nuking the working tree.
AnimateExplosion bool `yaml:"animateExplosion"`
// Whether to stack UI components on top of each other.

View File

@ -159,6 +159,8 @@ func (gui *Gui) configureViewProperties() {
frameRunes = []rune{'─', '│', '╭', '╮', '╰', '╯'}
case "hidden":
frameRunes = []rune{' ', ' ', ' ', ' ', ' ', ' '}
case "bold":
frameRunes = []rune{'━', '┃', '┏', '┓', '┗', '┛'}
}
for _, mapping := range gui.orderedViewNameMappings() {

View File

@ -685,9 +685,10 @@
"single",
"double",
"rounded",
"hidden"
"hidden",
"bold"
],
"description": "Window border style.\nOne of 'rounded' (default) | 'single' | 'double' | 'hidden'",
"description": "Window border style.\nOne of 'rounded' (default) | 'single' | 'double' | 'hidden' | 'bold'",
"default": "rounded"
},
"animateExplosion": {