added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
21
nyx/homes/notashelf/services/wayland/ags/js/utils/appIcon.js
Normal file
21
nyx/homes/notashelf/services/wayland/ags/js/utils/appIcon.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { Widget } from "../imports.js";
|
||||
import { queryExact } from "./global.js";
|
||||
const { Button, Icon } = Widget;
|
||||
|
||||
export default ({
|
||||
appName,
|
||||
onClicked = () => queryExact(appName).launch(),
|
||||
icon = queryExact(appName).iconName,
|
||||
size = 36,
|
||||
...props
|
||||
}) => {
|
||||
const appIcon = Button({
|
||||
onClicked,
|
||||
child: Icon({
|
||||
icon,
|
||||
size,
|
||||
...props,
|
||||
}),
|
||||
});
|
||||
return appIcon;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue