23 lines
698 B
JavaScript
23 lines
698 B
JavaScript
import Widget from 'resource:///com/github/Aylur/ags/widget.js';
|
|
import { enableClickthrough } from "../.widgetutils/clickthrough.js";
|
|
import { RoundedCorner } from "../.commonwidgets/cairo_roundedcorner.js";
|
|
|
|
export default (monitor = 0, ) => {
|
|
return Widget.Window({
|
|
monitor,
|
|
name: `crosshair${monitor}`,
|
|
layer: 'overlay',
|
|
exclusivity: 'ignore',
|
|
visible: false,
|
|
child: Widget.Icon({
|
|
icon: 'crosshair-symbolic',
|
|
css: `
|
|
font-size: ${userOptions.gaming.crosshair.size}px;
|
|
color: ${userOptions.gaming.crosshair.color};
|
|
`,
|
|
}),
|
|
setup: enableClickthrough,
|
|
});
|
|
}
|
|
|