Skip to content

Instantly share code, notes, and snippets.

@johnlindquist
Created January 9, 2024 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlindquist/667ee2584a61c5c84c2278baa4925d24 to your computer and use it in GitHub Desktop.
Save johnlindquist/667ee2584a61c5c84c2278baa4925d24 to your computer and use it in GitHub Desktop.
// 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