Small changes to backlight
parent
7ce340c4bb
commit
71e36b3f1b
|
@ -31,7 +31,7 @@ function P:_update_widget()
|
|||
end
|
||||
|
||||
self.widget:set_value(self.brightness);
|
||||
self.widget:set_tooltip("Backlight " .. self.brightness .. "u");
|
||||
self.widget:set_tooltip("Backlight " .. math.floor(self.brightness) .. "%");
|
||||
self.widget:set_state("ready")
|
||||
end
|
||||
|
||||
|
@ -90,7 +90,7 @@ function P:new(args)
|
|||
-- Arguments
|
||||
b = {
|
||||
update_interval = args.update_interal or 5,
|
||||
min_value = args.min_value or 0,
|
||||
min_value = args.min_value or 1,
|
||||
max_value = args.max_value or 100,
|
||||
widget_type = args.widget_type or "arc",
|
||||
|
||||
|
|
Loading…
Reference in New Issue