- Add compositor/shell/backlight.mbt for backlight control in the shell - Update wit/capabilities.wit and wit/host/plasmoids.wit, then regenerate the component and interface ffi.mbt bindings (mostly export reordering) - Add world/launcher-widget/README.md
This commit is contained in:
1 parent
2e00009c79
commit
74235cb0ca
84 files changed
+1525
-864
No files matched your search
@@ -253,6 +253,7 @@ fn request_val(r : @wasm.HostRequest) -> @wt.Val {
|
||||
Screenshot(n) => Variant("screenshot", Some(S32(n)))
|
||||
SetScreenOff(n) => Variant("set-screen-off", Some(S32(n)))
|
||||
SetSuspendAfter(n) => Variant("set-suspend-after", Some(S32(n)))
|
||||
SetBrightness(n) => Variant("set-brightness", Some(S32(n)))
|
||||
PowerAction(n) => Variant("power-action", Some(S32(n)))
|
||||
Network(action, ssid, password) =>
|
||||
Variant(
|
||||
@@ -466,6 +467,13 @@ fn plasmoid_funcs() -> Array[(String, (Array[@wt.Val]) -> Array[@wt.Val])] {
|
||||
none
|
||||
},
|
||||
),
|
||||
(
|
||||
"publish-brightness",
|
||||
a => {
|
||||
@wasm.publish_brightness(a[0].to_int())
|
||||
none
|
||||
},
|
||||
),
|
||||
(
|
||||
"publish-battery",
|
||||
a => {
|
||||
|
||||
Reference in new issue
Block a user