Update more-docs to look more like more-apps

Disable horizontal scrolling and remove the close button. Update
the CSS to match more-apps.

https://bugzilla.gnome.org/show_bug.cgi?id=612452
This commit is contained in:
Florian Müllner 2010-03-10 16:54:58 +01:00
parent c02b57efc3
commit 9f68786547
3 changed files with 10 additions and 18 deletions

View File

@ -373,16 +373,11 @@ StTooltip {
} }
.dash-pane { .dash-pane {
background-color: rgba(0,0,0,0.95); border-radius: 10px;
border: 1px solid #262626; background-color: #111111;
padding: 4px; border: 2px solid #868686;
spacing: 4px; color: #ffffff;
} padding: 30px 10px 10px 20px;
.dash-pane-close {
background-image: url("close.svg");
width: 16px;
height: 16px;
} }
.dash-search-section-header { .dash-search-section-header {

View File

@ -67,13 +67,8 @@ Pane.prototype = {
let chromeTop = new St.BoxLayout(); let chromeTop = new St.BoxLayout();
let closeIcon = new St.Button({ style_class: "dash-pane-close" });
closeIcon.connect('clicked', Lang.bind(this, function (b, e) {
this.close();
}));
let dummy = new St.Bin(); let dummy = new St.Bin();
chromeTop.add(dummy, { expand: true }); chromeTop.add(dummy, { expand: true });
chromeTop.add(closeIcon, { x_align: St.Align.END });
this.actor.add(chromeTop); this.actor.add(chromeTop);
this.content = new St.BoxLayout({ vertical: true }); this.content = new St.BoxLayout({ vertical: true });

View File

@ -257,13 +257,15 @@ GenericDisplay.prototype = {
if (disableVScrolling) { if (disableVScrolling) {
this.actor = this._list = new Shell.OverflowList({ spacing: 6, this.actor = this._list = new Shell.OverflowList({ spacing: 6,
item_height: 50 }); item_height: 50 });
} else { } else {
this.actor = new St.ScrollView({ x_fill: true, y_fill: true }); this.actor = new St.ScrollView({ x_fill: true,
this.actor.get_hscroll_bar().hide(); y_fill: false,
vshadows: true });
this._list = new St.BoxLayout({ style_class: 'generic-display-container', this._list = new St.BoxLayout({ style_class: 'generic-display-container',
vertical: true }); vertical: true });
this.actor.add_actor(this._list); this.actor.add_actor(this._list);
this.actor.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
} }
this._pendingRedisplay = RedisplayFlags.NONE; this._pendingRedisplay = RedisplayFlags.NONE;