19
Wallpaper notifier by Javier Eguiluz [email protected]

Wallpaper Notifier

Embed Size (px)

DESCRIPTION

This is the winner proposal of the Sismo Challenge programming contest organized by ibuildings. Reference: http://techportal.ibuildings.com/2012/04/17/sismo-challenge-results/

Citation preview

Page 1: Wallpaper Notifier

Wallpaper notifierby Javier Eguiluz [email protected]

Page 2: Wallpaper Notifier

notifies build results via wallpaper⤵

Page 3: Wallpaper Notifier
Page 4: Wallpaper Notifier

Features

Page 5: Wallpaper Notifier

it scales from one project to lots of projects

Page 6: Wallpaper Notifier

simple. unobtrusive. minimalistic.

Page 7: Wallpaper Notifier

How to use it

Page 8: Wallpaper Notifier

$notifier = new Sismo\Contrib\WallpaperNotifier();

$projects[] = new Sismo\GithubProject( '...', '...', $notifier);

from now on, your wallpaper will be automatically updated with the

latest build results

Page 9: Wallpaper Notifier

Requirements

Page 10: Wallpaper Notifier

; php.iniextension=gd.so

1. Use a Mac

2. Enable PHP GD extension

Page 11: Wallpaper Notifier

Configuration

Page 12: Wallpaper Notifier

Match image size with your desktop

resolution

$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'image_width' => 1024, 'image_height' => 768));

Page 13: Wallpaper Notifier

Replace dark background with

your own color

$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'background_color' => '#FFF'));

Page 14: Wallpaper Notifier

Customize every color

$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'background_color' => '#FFCC29', 'text_color' => '#222', 'success_color' => '#00A859', 'failure_color' => '#3E4095'));

Page 15: Wallpaper Notifier

Fade success bars to highlight

failures

$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'success_color' => '#333'));

Page 16: Wallpaper Notifier

Customize sizes and gutters

$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'vertical_gutter' => 0));

Page 17: Wallpaper Notifier

Customize sizes and gutters

$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'bar_width' => 50, 'bar_height' => 50, 'horizontal_gutter' => 25, 'vertical_gutter' => 25));

Page 18: Wallpaper Notifier

Available options and default values'bar_width' => 80'bar_height' => 10'horizontal_gutter' => 20'vertical_gutter' => 10'horizontal_padding' => 20'vertical_padding' => 50'image_width' => 1920'image_height' => 1080'background_color' => '#161616''text_color' => '#CCCCCC''success_color' => '#267326''failure_color' => '#B30F00''font_size' => 10