nixos-configs/devices/wim/config/ags/js/misc/separator.js

16 lines
324 B
JavaScript
Raw Normal View History

import { Box } from 'resource:///com/github/Aylur/ags/widget.js';
export default (size, { vertical = false } = {}) => {
if (vertical) {
return Box({
style: `min-height: ${size}px;`,
});
}
else {
return Box({
style: `min-width: ${size}px;`,
});
}
};