[gnome-shell] dash: Adjust placeholder size to icon size
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dash: Adjust placeholder size to icon size
- Date: Tue, 20 Sep 2011 20:04:30 +0000 (UTC)
commit 3f61f39ae3335f05d3bba2afb45fef4eecc2e70c
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Sep 16 03:29:10 2011 +0100
dash: Adjust placeholder size to icon size
The placeholder looks odd near small icons and causes the dash to get wider
when visible and narrower when hidden.
https://bugzilla.gnome.org/show_bug.cgi?id=659210
data/theme/gnome-shell.css | 2 --
js/ui/dash.js | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index dac6f63..ca39e49 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -511,8 +511,6 @@ StTooltip StLabel {
.dash-placeholder {
background-image: url("dash-placeholder.svg");
- height: 27px;
- width: 48px;
}
#viewSelector {
diff --git a/js/ui/dash.js b/js/ui/dash.js
index e96ae9e..7f23cc6 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -684,6 +684,8 @@ Dash.prototype = {
}
this._dragPlaceholder = new DragPlaceholderItem();
+ this._dragPlaceholder.child.set_width (this.iconSize);
+ this._dragPlaceholder.child.set_height (this.iconSize / 2);
this._box.insert_actor(this._dragPlaceholder.actor,
this._dragPlaceholderPos);
if (fadeIn)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]