Skip to content

Commit

Permalink
feat: added the shell's theme color for Tab completions suggestions' …
Browse files Browse the repository at this point in the history
…list

FossilOrigin-Name: b1f33302beebbe18f3cea8ef89a5a076ac5dd28a98ed25092c2aa530b80aef36
  • Loading branch information
thindil committed Dec 11, 2023
1 parent c58f26c commit 0f71833
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/theme.nim
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type
helpUsage, helpCommand, helpReqParam, helpOptParam, helpUnderline,
helpCode, highlightValid, highlightInvalid, highlightVariable,
highlightText, suggestInvalid, suggestCommand, suggestYes, suggestNext,
suggestAbort, promptColor, promptError
suggestAbort, promptColor, promptError, completionList
Color {.tableName: "theme".} = ref object of Model
## Data structure for the shell's color
##
Expand Down Expand Up @@ -155,7 +155,7 @@ proc newColor*(name: ThemeColor = errors; cValue: ColorName = default;
Color(name: name, cValue: cValue, description: description, bold: bold,
underline: underline, italic: italic)

let colors: array[25, Color] = [newColor(name = errors, cValue = red,
let colors: array[26, Color] = [newColor(name = errors, cValue = red,
description = "Used to show error messages"), newColor(name = default,
cValue = default, description = "The default color of the shell's output"),
newColor(name = headers, cValue = yellow,
Expand Down Expand Up @@ -202,7 +202,9 @@ let colors: array[25, Color] = [newColor(name = errors, cValue = red,
newColor(name = promptColor, cValue = blue,
description = "Used to show the shell's prompt"), newColor(
name = promptError, cValue = red,
description = "Used to show the last command's error code in the shell's prompt")]
description = "Used to show the last command's error code in the shell's prompt"),
newColor(name = completionList, cValue = default,
description = "Used to show Tab completion's suggestions")]
## The list of available the shell's theme's colors

proc showThemeError*(message: string; e: ref Exception) {.sideEffect, raises: [
Expand Down

0 comments on commit 0f71833

Please sign in to comment.