blob: 785ecf5e8068f50398c78418ee82a93f0c5c4fb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { staticClasses } from "@decky/ui";
import { definePlugin } from "@decky/api";
import { GiPlasticDuck } from "react-icons/gi";
import { Content } from "./components";
export default definePlugin(() => {
console.log("Lossless Scaling plugin initializing");
return {
// The name shown in various decky menus
name: "Lossless Scaling",
// The element displayed at the top of your plugin's menu
titleView: <div className={staticClasses.Title}>Lossless Scaling</div>,
// Always render to retain state when panel is toggled
alwaysRender: true,
// The content of your plugin's menu
content: <Content />,
// The icon displayed in the plugin list
icon: <GiPlasticDuck />,
// The function triggered when your plugin unloads
onDismount() {
console.log("Lossless Scaling unloading");
}
};
});
|