Skip to content

Commit 80bbdf4

Browse files
aidanczstefanhaller
authored andcommitted
add bold style for border
1 parent fb2c5ea commit 80bbdf4

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

docs/Config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ gui:
248248
screenMode: normal
249249

250250
# Window border style.
251-
# One of 'rounded' (default) | 'single' | 'double' | 'hidden'
251+
# One of 'rounded' (default) | 'single' | 'double' | 'hidden' | 'bold'
252252
border: rounded
253253

254254
# If true, show a seriously epic explosion animation when nuking the working tree.

pkg/config/app_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ gui:
560560
screenMode: normal
561561
562562
# Window border style.
563-
# One of 'rounded' (default) | 'single' | 'double' | 'hidden'
563+
# One of 'rounded' (default) | 'single' | 'double' | 'hidden' | 'bold'
564564
border: rounded
565565
566566
# If true, show a seriously epic explosion animation when nuking the working tree.

pkg/config/user_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ type GuiConfig struct {
166166
// One of: 'normal' (default) | 'half' | 'full'
167167
ScreenMode string `yaml:"screenMode" jsonschema:"enum=normal,enum=half,enum=full"`
168168
// Window border style.
169-
// One of 'rounded' (default) | 'single' | 'double' | 'hidden'
170-
Border string `yaml:"border" jsonschema:"enum=single,enum=double,enum=rounded,enum=hidden"`
169+
// One of 'rounded' (default) | 'single' | 'double' | 'hidden' | 'bold'
170+
Border string `yaml:"border" jsonschema:"enum=single,enum=double,enum=rounded,enum=hidden,enum=bold"`
171171
// If true, show a seriously epic explosion animation when nuking the working tree.
172172
AnimateExplosion bool `yaml:"animateExplosion"`
173173
// Whether to stack UI components on top of each other.

pkg/gui/views.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ func (gui *Gui) configureViewProperties() {
159159
frameRunes = []rune{'─', '│', '╭', '╮', '╰', '╯'}
160160
case "hidden":
161161
frameRunes = []rune{' ', ' ', ' ', ' ', ' ', ' '}
162+
case "bold":
163+
frameRunes = []rune{'━', '┃', '┏', '┓', '┗', '┛'}
162164
}
163165

164166
for _, mapping := range gui.orderedViewNameMappings() {

schema/config.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,10 @@
685685
"single",
686686
"double",
687687
"rounded",
688-
"hidden"
688+
"hidden",
689+
"bold"
689690
],
690-
"description": "Window border style.\nOne of 'rounded' (default) | 'single' | 'double' | 'hidden'",
691+
"description": "Window border style.\nOne of 'rounded' (default) | 'single' | 'double' | 'hidden' | 'bold'",
691692
"default": "rounded"
692693
},
693694
"animateExplosion": {

0 commit comments

Comments
 (0)