Skip to content

Commit

Permalink
set markup
Browse files Browse the repository at this point in the history
  • Loading branch information
Xertis authored Dec 9, 2024
1 parent ee147ec commit 4133e6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions res/layouts/pages/content_menu.xml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,19 @@ end
local function create_label(id, text, color)
if id then
document.configs:add(string.format(
"<label id='%s' color='%s'>%s</label>",
"<label markup='md' id='%s' color='%s'>%s</label>",
id, color, text
))
else
document.configs:add(string.format(
"<label color='%s'>%s</label>",
"<label markup='md' color='%s'>%s</label>",
color, text
))
end
end

local function create_config(i, config, name, path)
create_label(name, ('[' .. name .. ']'):upper(), "#FFFFFF")
create_label(name, ('**[' .. name .. ']**'):upper(), "#FFFFFF")
pack_open[2][i] = {elements = {}, path = path}
for _, a in ipairs(config.checkboxes) do
create_checkbox(i .. '_' .. a[1], a[1], a[2])
Expand Down

0 comments on commit 4133e6f

Please sign in to comment.