Created
January 9, 2024 18:55
-
-
Save johnlindquist/667ee2584a61c5c84c2278baa4925d24 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: Widget Info | |
import "@johnlindquist/kit" | |
// converting video | |
let fullPath = await drop() | |
let css = ` | |
h1{ | |
font-size: 2rem; | |
color: purple; | |
pointer-events: all; | |
} | |
` | |
let w = await widget(`<h1>{{title}}</h1>`, { | |
css, | |
center: true, | |
width: 800, | |
height: 600, | |
transparent: true, | |
state: { | |
title: fullPath, | |
}, | |
}) | |
w.onClick(() => { | |
revealInFinder(fullPath) | |
exit() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment