[lightbox] Add lightbox.js and use it in overview, alt-tab, and run dialog

https://bugzilla.gnome.org/show_bug.cgi?id=596000
This commit is contained in:
Dan Winship
2009-09-22 15:24:14 -04:00
parent 6cae94edcc
commit 3734479cbd
5 changed files with 176 additions and 85 deletions

View File

@ -11,11 +11,9 @@ const Signals = imports.signals;
const Gettext = imports.gettext.domain('gnome-shell');
const _ = Gettext.gettext;
const Lightbox = imports.ui.lightbox;
const Main = imports.ui.main;
const OVERLAY_COLOR = new Clutter.Color();
OVERLAY_COLOR.from_pixel(0x00000044);
const BOX_BACKGROUND_COLOR = new Clutter.Color();
BOX_BACKGROUND_COLOR.from_pixel(0x000000cc);
@ -66,12 +64,7 @@ RunDialog.prototype = {
this._group = new Clutter.Group({ visible: false });
global.stage.add_actor(this._group);
this._overlay = new Clutter.Rectangle({ color: OVERLAY_COLOR,
width: global.screen_width,
height: global.screen_height,
border_width: 0,
reactive: true });
this._group.add_actor(this._overlay);
this._lightbox = new Lightbox.Lightbox(this._group);
let boxH = new Big.Box({ orientation: Big.BoxOrientation.HORIZONTAL,
x_align: Big.BoxAlignment.CENTER,
@ -80,6 +73,7 @@ RunDialog.prototype = {
height: global.screen_height });
this._group.add_actor(boxH);
this._lightbox.highlight(boxH);
let boxV = new Big.Box({ orientation: Big.BoxOrientation.VERTICAL,
y_align: Big.BoxAlignment.CENTER });