Giter VIP home page Giter VIP logo

lightsheets's Introduction

Lightsheets

A desktop widget engine to easily add HTML/JS widgets to your desktop. Programmed with Glide.

image

Add new widgets by adding .html files to the apps directory. image

Press shift_right to toggle widget visibility.



Resources

Lightsheets is precompiled with resources like Bootstrap, these resources can be used in widgets.

Resource Type
Bootstrap 4.1.1 CSS/JS https://getbootstrap.com/docs/4.1/getting-started/introduction/
JQuery 3.5.1 JS https://jquery.com/
Daemonite's Material 4.1.1 CSS https://daemonite.github.io/material/
Material Icons Font https://fonts.google.com/icons?selected=Material+Icons
Popper 1.14.3 JS https://popper.js.org/
Roboto Font https://fonts.google.com/specimen/Roboto



Examples

Lightsheets comes with 4 example widgets that can be found here.



Javascript API

You can call several functions from the default API to activate scripts.

openUrl(url)

To open a webpage url in your default browser.
pywebview.api.openUrl("https://dontdalon.com")

startApp(path)

To open/start a local file.
pywebview.api.startApp("C:\Users\storm\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Discord Inc\Discord.lnk")

doCommand(command)

pywebview.api.doCommand("Rundll32.exe user32.dll,LockWorkStation")

openChild(url)

To open a webpage url in a new lightsheet window.
pywebview.api.openChild("https://www.google.nl/maps")

show()

To show all widgets.
pywebview.api.show()

hide()

To hide all widgets.
pywebview.api.hide()

minimize()

To minimize all widgets.
pywebview.api.minimize()

close()

To turn lightsheets off.
pywebview.api.close()

reload()

To reload lightsheets. Useful to quickly restart lightsheets after adding new widgets.
pywebview.api.reload()

lightsheets's People

Contributors

stormtersteeg avatar

Stargazers

Cindy avatar  avatar Wouter van der Velde avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.