Changed workspace indicator to use less panel space by displaying only high-lighted workspace number on panel.

Signed-off-by: Norman L. Smith <nls1729@gmail.com>
This commit is contained in:
Norman L. Smith
2011-12-14 00:08:29 +01:00
committed by Giovanni Campagna
parent 48d2d8789d
commit ca19f18c8f
2 changed files with 7 additions and 0 deletions
@@ -37,6 +37,7 @@ WorkspaceIndicator.prototype = {
//styling
this.menu.actor.add_style_class_name('workspace-indicator-shorter');
this.statusLabel.add_style_class_name('panel-workspace-indicator');
},
_updateIndicator: function() {
@@ -50,6 +51,7 @@ WorkspaceIndicator.prototype = {
_labelText : function(workspaceIndex) {
if(workspaceIndex == undefined) {
workspaceIndex = this._currentWorkspace;
return (workspaceIndex + 1).toString();
}
return Meta.prefs_get_workspace_name(workspaceIndex);
},
@@ -2,3 +2,8 @@
min-width: 25px;
font-size: 10pt;
}
.panel-workspace-indicator {
padding: 0 8px;
background-color: rgba(200, 200, 200, .5);
border: 1px solid #cccccc;
}