Upload
javier-eguiluz
View
3.448
Download
4
Tags:
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
Wallpaper notifierby Javier Eguiluz [email protected]
notifies build results via wallpaper⤵
Features
it scales from one project to lots of projects
simple. unobtrusive. minimalistic.
How to use it
$notifier = new Sismo\Contrib\WallpaperNotifier();
$projects[] = new Sismo\GithubProject( '...', '...', $notifier);
from now on, your wallpaper will be automatically updated with the
latest build results
Requirements
; php.iniextension=gd.so
1. Use a Mac
2. Enable PHP GD extension
Configuration
Match image size with your desktop
resolution
$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'image_width' => 1024, 'image_height' => 768));
Replace dark background with
your own color
$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'background_color' => '#FFF'));
Customize every color
$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'background_color' => '#FFCC29', 'text_color' => '#222', 'success_color' => '#00A859', 'failure_color' => '#3E4095'));
Fade success bars to highlight
failures
$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'success_color' => '#333'));
Customize sizes and gutters
$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'vertical_gutter' => 0));
Customize sizes and gutters
$notifier = new Sismo\Contrib\WallpaperNotifier(array( 'bar_width' => 50, 'bar_height' => 50, 'horizontal_gutter' => 25, 'vertical_gutter' => 25));
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