[gnome-shell-extensions] window-list: Fix spacing in app buttons
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] window-list: Fix spacing in app buttons
- Date: Tue, 7 Oct 2014 18:03:02 +0000 (UTC)
commit 614d1c9697e2f9470bb6110cec1a9f248833f1ea
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Oct 7 19:58:20 2014 +0200
window-list: Fix spacing in app buttons
extensions/window-list/extension.js | 5 +++--
extensions/window-list/stylesheet.css | 5 ++++-
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index f84248c..390d4fd 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -140,7 +140,7 @@ const WindowTitle = new Lang.Class({
_init: function(metaWindow) {
this._metaWindow = metaWindow;
- this.actor = new St.BoxLayout();
+ this.actor = new St.BoxLayout({ style_class: 'window-button-box' });
let app = Shell.WindowTracker.get_default().get_window_app(metaWindow);
this._icon = new St.Bin({ style_class: 'window-button-icon',
@@ -392,7 +392,8 @@ const AppButton = new Lang.Class({
x_align: St.Align.START });
stack.add_actor(this._singleWindowTitle);
- this._multiWindowTitle = new St.BoxLayout({ x_expand: true });
+ this._multiWindowTitle = new St.BoxLayout({ style_class: 'window-button-box',
+ x_expand: true });
stack.add_actor(this._multiWindowTitle);
this._icon = new St.Bin({ style_class: 'window-button-icon',
diff --git a/extensions/window-list/stylesheet.css b/extensions/window-list/stylesheet.css
index 5bb7f35..2b6be8d 100644
--- a/extensions/window-list/stylesheet.css
+++ b/extensions/window-list/stylesheet.css
@@ -22,6 +22,10 @@
padding-right: 2px;
}
+.window-button-box {
+ spacing: 4px;
+}
+
.window-button > StWidget {
-st-natural-width: 250px;
max-width: 250px;
@@ -31,7 +35,6 @@
padding: 3px 6px 1px;
box-shadow: inset 1px 1px 4px rgba(255,255,255,0.5);
text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
- spacing: 4px;
}
.window-button:hover > StWidget {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]