Use Big.Box for search entry to get rounded corners
http://bugzilla.gnome.org/show_bug.cgi?id=562923 svn path=/trunk/; revision=104
This commit is contained in:
parent
25116779f9
commit
a4763b38bf
@ -11,6 +11,7 @@ const Main = imports.ui.main;
|
|||||||
const Panel = imports.ui.panel;
|
const Panel = imports.ui.panel;
|
||||||
const Meta = imports.gi.Meta;
|
const Meta = imports.gi.Meta;
|
||||||
const Shell = imports.gi.Shell;
|
const Shell = imports.gi.Shell;
|
||||||
|
const Big = imports.gi.Big;
|
||||||
const AppDisplay = imports.ui.appdisplay;
|
const AppDisplay = imports.ui.appdisplay;
|
||||||
|
|
||||||
const OVERLAY_BACKGROUND_COLOR = new Clutter.Color();
|
const OVERLAY_BACKGROUND_COLOR = new Clutter.Color();
|
||||||
@ -59,11 +60,12 @@ Sideshow.prototype = {
|
|||||||
this.actor.hide();
|
this.actor.hide();
|
||||||
global.stage.add_actor(this.actor);
|
global.stage.add_actor(this.actor);
|
||||||
let icontheme = Gtk.IconTheme.get_default();
|
let icontheme = Gtk.IconTheme.get_default();
|
||||||
let rect = new Clutter.Rectangle({ color: SIDESHOW_SEARCH_BG_COLOR,
|
let rect = new Big.Box({ background_color: SIDESHOW_SEARCH_BG_COLOR,
|
||||||
x: SIDESHOW_PAD,
|
corner_radius: 4,
|
||||||
y: Panel.PANEL_HEIGHT + SIDESHOW_PAD,
|
x: SIDESHOW_PAD,
|
||||||
width: width,
|
y: Panel.PANEL_HEIGHT + SIDESHOW_PAD,
|
||||||
height: 24});
|
width: width,
|
||||||
|
height: 24});
|
||||||
this.actor.add_actor(rect);
|
this.actor.add_actor(rect);
|
||||||
|
|
||||||
let searchIconTexture = new Clutter.Texture({ x: SIDESHOW_PAD + 2,
|
let searchIconTexture = new Clutter.Texture({ x: SIDESHOW_PAD + 2,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user