* init * feat: notify options; all, minimal and none * update: plugin.toml * update: add README * feat: add button toggle * feat: add configurable glyph * fix: valid image radius * fix: shell escape entry * feat: add settings * update: add thumbnail.webp * feat: add titlebar and titlebar toggle * feat: add custom image widget setting, reorder keys * fix: auto-size image with titlebar * update: README (new settings) * fix: lowercase correction_level label keys * fix: file type and move shellEscape to the cmd
14 lines
304 B
Luau
14 lines
304 B
Luau
local image = noctalia.getConfig("custom_image")
|
|
|
|
if image ~= "" and image ~= nil then
|
|
barWidget.setImage(image)
|
|
else
|
|
barWidget.setGlyph(noctalia.getConfig("glyph"))
|
|
end
|
|
|
|
barWidget.setTooltip(noctalia.tr("widget.tooltip"))
|
|
|
|
function onClick()
|
|
noctalia.togglePanel("yocraft/qrcode:panel")
|
|
end
|