From 0f718338556ca736db9b6631fe71591c5f8924f7 Mon Sep 17 00:00:00 2001 From: thindil Date: Mon, 11 Dec 2023 05:33:39 +0000 Subject: [PATCH] feat: added the shell's theme color for Tab completions suggestions' list FossilOrigin-Name: b1f33302beebbe18f3cea8ef89a5a076ac5dd28a98ed25092c2aa530b80aef36 --- src/theme.nim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/theme.nim b/src/theme.nim index 8286d23a..9342d08a 100644 --- a/src/theme.nim +++ b/src/theme.nim @@ -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 ## @@ -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, @@ -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: [