Module ui.widget.iconwidget

A subclass of ImageWidget to show icons, so its fields can be used here

See also:

Usage:

    local IconWidget = require("ui/widget/iconwidget")
    local icon_widget = IconWidget:new{
        icon = "check", -- Which corresponds to resources/icons/mdlight/check.svg
        dim = true,
        alpha = true
    }
    UIManager:show(icon_widget)
    

Tables

IconWidget


Tables

IconWidget

Fields:

  • alpha A boolean on whether to enable transparency on the icon (defaults to false)
  • icon The name (excluding the file extension) of any SVG or PNG in resources/icons
generated by LDoc 1.5.0 Last updated 2026-09-28 21:14:57