Add QR Code Encoder plugin (#226)
* 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
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user