Giter VIP home page Giter VIP logo

splash's Introduction

Splash

PayPal Flattr this

Template options:

As basic splash template with loader bar looks like this:

[{
	"name": "progress",
	"type" : "shape",
	"shape": "rectangle",
	"x": 265,
	"y": 175,
	"width": 272,
	"height": 149,
	"filled": 1,
	"z-index": 1,
	"color": [ 21, 49, 60 ]
}, {
	"name": "progress",
	"type" : "shape",
	"shape": "rectangle",
	"x": 235,
	"y": 146,
	"width": 330,
	"height": 207,
	"border": 26,
	"z-index": 1,
	"color": [ 249, 149, 29 ]
}, {
	"name": "logo",
	"type": "image",
	"y": -195,
	"z-index": 2,
	"image": "images/splash/new/logo.png"
}, {
	"name": "text",
	"type": "text",
	"x": 204,
	"y": 148,
	"size": 28,
	"align": "right",
	"decoration": "none",
	"spacing": 2,
	"font": "fonts/splash/Comfortaa-Light.ttf",
	"text": "loading...",
	"z-index": 2,
	"color": [ 150, 150, 155 ]
}, {
	"name": "progress",
	"type": "progress",
	"y": 110,
	"percentage": 0,
	"z-index": 2,
	"image": "images/splash/new/progressbar.png",
	"inactive": [ "images/splash/new/empty.png", "images/splash/new/empty.png", "images/splash/new/empty.png" ],
	"active": [ "images/splash/new/full.png", "images/splash/new/full.png", "images/splash/new/full.png" ]
}, {
	"name": "progress",
	"type" : "shape",
	"shape": "rectangle",
	"x": 192,
	"y": 402,
	"width": 415,
	"height": 33,
	"border": 3,
	"z-index": 2,
	"color": [ 150, 150, 155 ]
}]

A template can draw elements of different type and each type can have different options:

shape

rectangle

  • name
  • x
  • y
  • width
  • height
  • z-index
  • color (array with r,g,b)
  • filled
  • fullscreen
  • border

line

  • name
  • x1
  • y1
  • x2
  • y2
  • z-index
  • thickness
  • color (array with r,g,b)

circle

  • name
  • x
  • y
  • radius
  • border
  • z-index
  • fullscreen
  • filled
  • color (array with r,g,b)

image

  • name
  • x
  • y
  • z-index
  • image (both png and jpg are supported)

text

  • name
  • x
  • y
  • size
  • align (left, center, right)
  • decoration (none, italic)
  • spacing
  • font (ttf)
  • text
  • z-index
  • color (array with r,g,b)

progress

  • x
  • y
  • percentage
  • z-index
  • image (both png and jpg are supported)
  • inactive (array with a start, middle, and end image)
  • active (array with a start, middle, and end image)

splash's People

Contributors

curlymoo avatar mk01 avatar

Watchers

 avatar  avatar  avatar

Forkers

mk01

splash's Issues

show / hide splash - or quit on keyboard press

could you please udpate splash in the way that pressing ESC will either restore the working tty / go back to splash, or kill it or at least blank?

while something goes during booting without it is possible to work with initramfs shell, with splash running I can't go to console (ctrl+alt+f[1-7]), esc nothing (usually it switches betwenn splash and console).

without it you need to remove card, update cmdline.txt, then try again ...

spash.dat or splash.pid preventing remounting root partition as read-only for fsck

Everything in the title.
I have spent a lot of time trying to find why my Xbian (1.0 alpha5) distribution wasn't able to fix a corrupted root partition.
I finally found, thanks to lsof, the guilty process and it was splash.
Apparently it's opening 2 file splash.dat and splash.pid on the root partition during boot thus preventing checkroot.sh script to remount the partition as read-only.

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.