diff --git a/README.md b/README.md index 0af6990..715aad0 100644 --- a/README.md +++ b/README.md @@ -5,19 +5,20 @@ Supports custom button layouts and css theming! - + - +
ScreenshotScreenshot
Current (14/Aug/2012) themes, top-to-bottom: default, Ambiance, Radiance, Zukwito, Zukwito-DarkCurrent (31/Aug/2012) themes, top-to-bottom: default, Ambiance, Ambiance-Blue, Radiance, Zukwito, Zukwito-Dark
Configure with `gnome-shell-extension-prefs` (GNOME 3.4) or by editing `extension.js` (GNOME 3.2). Author: biox (Josiah Messiah) -Maintainer: mathematical.coffee +Maintainers: mathematical.coffee + arkan duthrey -Note - the [mathematicalcoffee fork](https://github.com/mathematicalcoffee/Gnome-Shell-Window-Buttons-Extension) of this extension is where development happens, and it all then gets pushed to the original [biox repository](https://github.com/biox/Gnome-Shell-Window-Buttons-Extension). +Note - This is a fork of the original repository, hopefully later on I'll push my changes to [biox repository](https://github.com/biox/Gnome-Shell-Window-Buttons-Extension) Installation ------------ diff --git a/screenshot.png b/screenshot.png index c578c03..0c01eba 100644 Binary files a/screenshot.png and b/screenshot.png differ diff --git a/window_buttons@biox.github.com/extension.js b/window_buttons@biox.github.com/extension.js index 511f1e9..96c9b34 100644 --- a/window_buttons@biox.github.com/extension.js +++ b/window_buttons@biox.github.com/extension.js @@ -362,6 +362,11 @@ WindowButtons.prototype = { break; } + // if overview is active won't show the buttons + if(Main.overview.visible){ + show = false; + } + // if the actors already match `show` don't do anything. if (show === this.leftActor.visible && show === this.rightActor.visible) { @@ -530,6 +535,9 @@ WindowButtons.prototype = { _connectSignals: function () { let showbuttons = this._settings.get_enum(WA_SHOWBUTTONS); + this.overviewShowing = Main.overview.connect('shown', Lang.bind(this, this._windowChanged)); + this.overviewHiding = Main.overview.connect('hidden', Lang.bind(this, this._windowChanged)); + // if we are always showing the buttons then we don't have to listen // to window events if (showbuttons === ShowButtonsWhen.ALWAYS) { @@ -582,6 +590,9 @@ WindowButtons.prototype = { }, _disconnectSignals: function () { + Main.overview.disconnect(this.overviewShowing); + Main.overview.disconnect(this.overviewHiding); + if (this._windowTrackerSignal) { Shell.WindowTracker.get_default().disconnect(this._windowTrackerSignal); } diff --git a/window_buttons@biox.github.com/themes/Ambiance-Blue/close_focused_normal.png b/window_buttons@biox.github.com/themes/Ambiance-Blue/close_focused_normal.png new file mode 100644 index 0000000..8406ccc Binary files /dev/null and b/window_buttons@biox.github.com/themes/Ambiance-Blue/close_focused_normal.png differ diff --git a/window_buttons@biox.github.com/themes/Ambiance-Blue/close_focused_prelight.png b/window_buttons@biox.github.com/themes/Ambiance-Blue/close_focused_prelight.png new file mode 100644 index 0000000..ff9a966 Binary files /dev/null and b/window_buttons@biox.github.com/themes/Ambiance-Blue/close_focused_prelight.png differ diff --git a/window_buttons@biox.github.com/themes/Ambiance-Blue/close_focused_pressed.png b/window_buttons@biox.github.com/themes/Ambiance-Blue/close_focused_pressed.png new file mode 100644 index 0000000..b57d5ac Binary files /dev/null and b/window_buttons@biox.github.com/themes/Ambiance-Blue/close_focused_pressed.png differ diff --git a/window_buttons@biox.github.com/themes/Ambiance-Blue/maximize_focused_normal.png b/window_buttons@biox.github.com/themes/Ambiance-Blue/maximize_focused_normal.png new file mode 100644 index 0000000..d383311 Binary files /dev/null and b/window_buttons@biox.github.com/themes/Ambiance-Blue/maximize_focused_normal.png differ diff --git a/window_buttons@biox.github.com/themes/Ambiance-Blue/maximize_focused_prelight.png b/window_buttons@biox.github.com/themes/Ambiance-Blue/maximize_focused_prelight.png new file mode 100644 index 0000000..fc97526 Binary files /dev/null and b/window_buttons@biox.github.com/themes/Ambiance-Blue/maximize_focused_prelight.png differ diff --git a/window_buttons@biox.github.com/themes/Ambiance-Blue/maximize_focused_pressed.png b/window_buttons@biox.github.com/themes/Ambiance-Blue/maximize_focused_pressed.png new file mode 100644 index 0000000..2e667f2 Binary files /dev/null and b/window_buttons@biox.github.com/themes/Ambiance-Blue/maximize_focused_pressed.png differ diff --git a/window_buttons@biox.github.com/themes/Ambiance-Blue/minimize_focused_normal.png b/window_buttons@biox.github.com/themes/Ambiance-Blue/minimize_focused_normal.png new file mode 100644 index 0000000..c15844e Binary files /dev/null and b/window_buttons@biox.github.com/themes/Ambiance-Blue/minimize_focused_normal.png differ diff --git a/window_buttons@biox.github.com/themes/Ambiance-Blue/minimize_focused_prelight.png b/window_buttons@biox.github.com/themes/Ambiance-Blue/minimize_focused_prelight.png new file mode 100644 index 0000000..96c0492 Binary files /dev/null and b/window_buttons@biox.github.com/themes/Ambiance-Blue/minimize_focused_prelight.png differ diff --git a/window_buttons@biox.github.com/themes/Ambiance-Blue/minimize_focused_pressed.png b/window_buttons@biox.github.com/themes/Ambiance-Blue/minimize_focused_pressed.png new file mode 100644 index 0000000..c8b69ee Binary files /dev/null and b/window_buttons@biox.github.com/themes/Ambiance-Blue/minimize_focused_pressed.png differ diff --git a/window_buttons@biox.github.com/themes/Ambiance-Blue/screenshot.png b/window_buttons@biox.github.com/themes/Ambiance-Blue/screenshot.png new file mode 100644 index 0000000..6f520c1 Binary files /dev/null and b/window_buttons@biox.github.com/themes/Ambiance-Blue/screenshot.png differ diff --git a/window_buttons@biox.github.com/themes/Ambiance-Blue/style.css b/window_buttons@biox.github.com/themes/Ambiance-Blue/style.css new file mode 100644 index 0000000..3abdbe0 --- /dev/null +++ b/window_buttons@biox.github.com/themes/Ambiance-Blue/style.css @@ -0,0 +1,46 @@ +.box-bin { } + +.button-box { + spacing: 2px; +} + +.window-button { + width: 19px; + height: 24px; +} + +.minimize { + background-image: url("minimize_focused_normal.png"); +} + +.minimize:hover { + background-image: url("minimize_focused_prelight.png"); +} + +.minimize:active { + background-image: url("minimize_focused_pressed.png"); +} + +.maximize { + background-image: url("maximize_focused_normal.png"); +} + +.maximize:hover { + background-image: url("maximize_focused_prelight.png"); +} + +.maximize:active { + background-image: url("maximize_focused_pressed.png"); +} + +.close { + background-image: url("close_focused_normal.png"); +} + +.close:hover { + background-image: url("close_focused_prelight.png"); +} + +.close:active { + background-image: url("close_focused_pressed.png"); +}