[gnome-shell] lookingGlass: Remove ugly hack
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] lookingGlass: Remove ugly hack
- Date: Sat, 14 Feb 2015 17:26:12 +0000 (UTC)
commit b4c8a00e38f1a459067267cd89332a553424f180
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Feb 14 16:51:20 2015 +0100
lookingGlass: Remove ugly hack
We don't need to hard-code any magic offsets to hide the top corners
and border, we can just not add them in the first place.
data/theme/gnome-shell.css | 3 ++-
js/ui/lookingGlass.js | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index dc9a006..09b692a 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1199,7 +1199,8 @@ StScrollBar StButton#vhandle:active {
spacing: 4px;
padding: 4px;
border: 2px solid grey;
- border-radius: 4px;
+ border-top-width: 0;
+ border-radius: 0 0 4px 4px;
}
#LookingGlassDialog > #Toolbar {
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index 93747ec..7dd8bd1 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -1040,7 +1040,7 @@ const LookingGlass = new Lang.Class({
let availableHeight = primary.height - Main.layoutManager.keyboardBox.height;
let myHeight = Math.min(primary.height * 0.7, availableHeight * 0.9);
this.actor.x = primary.x + (primary.width - myWidth) / 2;
- this._hiddenY = primary.y + Main.layoutManager.panelBox.height - myHeight - 4; // -4 to hide the top
corners
+ this._hiddenY = primary.y + Main.layoutManager.panelBox.height - myHeight;
this._targetY = this._hiddenY + myHeight;
this.actor.y = this._hiddenY;
this.actor.width = myWidth;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]