fix(plugin): Feed text encoding fix and panel UI improvements V1.0.2 (#271)
* fix(plugin): Feed text encoding fix and panel UI improvements V1.0.2 * fix(plugin): Feed text encoding fix and panel UI improvements V1.0.2 * Add xdg-open dependency to plugin.toml Added 'xdg-open' as a dependency for the plugin.
This commit is contained in:
@@ -22,7 +22,7 @@ local function render()
|
||||
}))
|
||||
end
|
||||
|
||||
table.insert(children, ui.glyph({ name = "rss", size = 14 }))
|
||||
table.insert(children, ui.glyph({ name = noctalia.getConfig("glyph") or "rss", size = 14 }))
|
||||
|
||||
local container = barWidget.isVertical() and ui.column or ui.row
|
||||
barWidget.render(container({ gap = 4, align = "center" }, children))
|
||||
@@ -41,6 +41,10 @@ function update()
|
||||
noctalia.setUpdateInterval(5000) -- so mantem o widget "vivo"; os dados reais vem do state
|
||||
end
|
||||
|
||||
function onConfigChanged()
|
||||
render() -- pega o novo glyph quando o usuario troca o icone nas settings do widget
|
||||
end
|
||||
|
||||
function onClick()
|
||||
-- abre/fecha a janelinha com a lista de itens; o proprio painel marca
|
||||
-- como lido (zera o badge) quando e aberto, via IPC pro service
|
||||
|
||||
Reference in New Issue
Block a user