From 3c1c452fbe8d2b96b8ef93447e30fdb4961783c2 Mon Sep 17 00:00:00 2001 From: Squibid Date: Mon, 30 Dec 2024 11:45:58 -0500 Subject: [PATCH] Revert "allow specifying a different icon for checkboxes" This reverts commit 14fd2874dc8627ca0b05b3a070c3cea3eaaa53c0. --- lua/volt/ui/components.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/volt/ui/components.lua b/lua/volt/ui/components.lua index 7148f4c..5ab5906 100644 --- a/lua/volt/ui/components.lua +++ b/lua/volt/ui/components.lua @@ -3,8 +3,6 @@ local M = {} --- @class CheckboxOptions --- @field active boolean Indicates if the checkbox is active. --- @field txt string The text to display next to the checkbox. ---- @field check string|nil Replace the default check icon with a custom one. ---- @field uncheck string|nil Replace the deafult unchecked icon with a custom one. --- @field hlon? string|nil Highlight for the active state (optional). --- @field hloff? string|nil Highlight for the inactive state (optional). --- @field actions table|nil Actions associated with the checkbox (optional). @@ -13,7 +11,7 @@ local M = {} --- @return string[] A table containing the checkbox representation. M.checkbox = function(o) return { - (o.active and (o.check or "") or (o.uncheck or "")).. " " .. o.txt, + (o.active and " " or " ") .. o.txt, o.active and (o.hlon or "String") or (o.hloff or "ExInactive"), o.actions, }