Use Big.Box for highlight box as well to get rounded corners
svn path=/trunk/; revision=108
This commit is contained in:
parent
78bb9fd286
commit
b4dd21bde1
@ -7,6 +7,7 @@ const Pango = imports.gi.Pango;
|
|||||||
const Gtk = imports.gi.Gtk;
|
const Gtk = imports.gi.Gtk;
|
||||||
|
|
||||||
const Tidy = imports.gi.Tidy;
|
const Tidy = imports.gi.Tidy;
|
||||||
|
const Big = imports.gi.Big;
|
||||||
const Meta = imports.gi.Meta;
|
const Meta = imports.gi.Meta;
|
||||||
const Shell = imports.gi.Shell;
|
const Shell = imports.gi.Shell;
|
||||||
|
|
||||||
@ -68,9 +69,10 @@ AppDisplayItem.prototype = {
|
|||||||
me.emit('activate');
|
me.emit('activate');
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
this._bg = new Clutter.Rectangle({ color: APPDISPLAY_BACKGROUND_COLOR,
|
this._bg = new Big.Box({ background_color: APPDISPLAY_BACKGROUND_COLOR,
|
||||||
x: 0, y: 0,
|
corner_radius: 4,
|
||||||
width: width, height: APPDISPLAY_HEIGHT });
|
x: 0, y: 0,
|
||||||
|
width: width, height: APPDISPLAY_HEIGHT });
|
||||||
this._group.add_actor(this._bg);
|
this._group.add_actor(this._bg);
|
||||||
|
|
||||||
this._icon = new Clutter.Texture({ width: 48, height: 48, x: 0, y: 0 });
|
this._icon = new Clutter.Texture({ width: 48, height: 48, x: 0, y: 0 });
|
||||||
@ -118,7 +120,7 @@ AppDisplayItem.prototype = {
|
|||||||
color = APPDISPLAY_SELECTED_BACKGROUND_COLOR;
|
color = APPDISPLAY_SELECTED_BACKGROUND_COLOR;
|
||||||
else
|
else
|
||||||
color = APPDISPLAY_BACKGROUND_COLOR;
|
color = APPDISPLAY_BACKGROUND_COLOR;
|
||||||
this._bg.color = color;
|
this._bg.background_color = color;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user