Progressbar.themed read/write property


Controls whether the Progressbar uses the default Windows theming (when set to true), or if it uses custom colors (when set to false).

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Progressbar.themed sample", 320, 200) -- create a Progressbar local pb = ui.Progressbar(win, 130, 80) -- disable default Windows theming pb.themed = false pb:center() pb.bgcolor = 0xFFFFFF pb.fgcolor = 0xFF0000 -- Spawn a Task to advance the Progressbar async(function() while true do sleep(1) pb:advance(1) end end) -- update the user interface until the user closes the Window ui.run(win):wait()