[gnome-shell] [Overview] Make background color stylable
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [Overview] Make background color stylable
- Date: Mon, 15 Feb 2010 21:53:49 +0000 (UTC)
commit 2a2b597e098432f52ee86a47bc648e4c39a424f7
Author: Florian Müllner <fmuellner src gnome org>
Date: Tue Feb 9 07:28:08 2010 +0100
[Overview] Make background color stylable
https://bugzilla.gnome.org/show_bug.cgi?id=609401
data/theme/gnome-shell.css | 5 ++++-
js/ui/overview.js | 7 ++-----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 73ab69e..661691e 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -140,6 +140,10 @@ StTooltip {
/* Overlay */
+.overview {
+ background-color: #000;
+}
+
.info-bar {
color: #cccccc;
font-size: 14px;
@@ -263,7 +267,6 @@ StTooltip {
#dash {
color: #5f5f5f;
font-size: 12px;
- background-color: rgba(0,0,0,0.75);
padding: 0px 14px;
}
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 8771a13..488ddd8 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -21,9 +21,6 @@ const Dash = imports.ui.dash;
const Tweener = imports.ui.tweener;
const WorkspacesView = imports.ui.workspacesView;
-const ROOT_OVERVIEW_COLOR = new Clutter.Color();
-ROOT_OVERVIEW_COLOR.from_pixel(0x000000ff);
-
// Time for initial animation going into Overview mode
const ANIMATION_TIME = 0.25;
@@ -194,7 +191,7 @@ function Overview() {
Overview.prototype = {
_init : function() {
- this._group = new Clutter.Group();
+ this._group = new St.BoxLayout({ style_class: 'overview' });
this._group._delegate = this;
this.infoBar = new InfoBar();
@@ -226,7 +223,7 @@ Overview.prototype = {
this._group.add_actor(this._transparentBackground);
// Background color for the Overview
- this._backOver = new Clutter.Rectangle({ color: ROOT_OVERVIEW_COLOR });
+ this._backOver = new St.Label();
this._group.add_actor(this._backOver);
this._group.hide();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]