|
ZT from http://forums.precentral.net/web ... addons-1-3-1-a.html7 u1 p. N( W" S& ^7 K
# e$ g) B; p" x. T( ? K APalm在1.3.1更改了全局搜索设置,使之更加容易添加新的搜索。2 u7 V/ o c; W; |0 q5 j
这里以增加 IMDB 搜索为例.- --- .orig/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
/ [) s$ L, ~( c% A# t, U/ T, x# E r- p - +++ /usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js8 T' }0 g% g7 a% i3 z. E: R7 V1 J! E
- @@ -46,6 +46,7 @@( p1 M& E! ^; O# \% @5 {
- this.limit=40;% s) t3 Y) K8 l4 C+ C8 T, T, u( `
- this.URLs = {& Z1 x4 s( ?! R0 Q
- 'google':$L("www.google.com/m/search?client=ms-palm-webOS&channel=iss&q="),- C8 _" B a. q: k# R# `# }5 a- g
- + 'imdb':$L("http://www.imdb.com/find?s=all&q="),1 Q5 f8 t# @. _0 P4 ]
- 'wikipedia':$L("http://en.m.wikipedia.org/wiki/Special:Search?search="),8 l! s$ x. ?3 B9 |& D
- 'twitter': $L("http://search.twitter.com/search?q="),
5 `. A1 {& c/ u2 p, i/ q' E - 'yahoo': $L("http://search.yahoo.com/search?p="),
/ f4 Z5 J1 M% X7 E, a9 C: o) v - @@ -130,6 +131,7 @@# J4 q( O& D! ~' X4 @. {" ]) R5 N* K9 b
-
6 m* n- O$ Q6 k/ E6 v - this.searchEngineList = [{id:"google",title:"Google",imgFile:"images/search-google.png", showImage:"block", showName:"none"},
3 ]+ F ~) h# T3 A - {id:"map",title:"Google Maps",imgFile:"images/search-maps.png", showImage:"block", showName:"none"},/ F, r; W) U, u* [) \' v
- + {id:"imdb",title:"IMDB",imgFile:"images/search-imdb.png", showImage:"block", showName:"none"},9 J* Z! b) y1 R) ]' B, @$ L3 _
- {id:"wikipedia",title:"Wikipedia",imgFile:"images/search-wikipedia.png", showImage:"block", showName:"none"},5 v$ y4 [- x* ?
- {id:"twitter",title:"Twitter",imgFile:"images/search-twitter.png", showImage:"block", showName:"none"}
& _: c4 b4 j4 ~: x2 C. D7 Z* f - ];" ~1 W$ [9 ~5 c# s
9 Y# l& d/ K( m) R# Y' v& E4 J X- --- .orig/usr/lib/luna/system/luna-applauncher/stylesheets/global-search.css
5 [. i9 f9 x( q3 H - +++ /usr/lib/luna/system/luna-applauncher/stylesheets/global-search.css* i# W" P0 t N& N
- @@ -139,6 +139,12 @@ B- O6 H/ W- s7 q% u
- background: url(../images/search-google.png) center center no-repeat;
+ O ~: S' M* I c/ R - }1 _4 B2 U g6 O
-
6 |% K- N0 P4 X( N1 D - +.palm-group.search .search-imdb {
; b9 w( Y5 ]" `! \ - + width: 100%;
" t. F8 [# ?" D- S" \, C - + height: 52px;
0 m3 V' m' ^- v+ A) E- d2 p/ G; b - + background: url(../images/search-imdb.png) center center no-repeat;4 K M g; [1 z- X9 Z2 ]# Y
- +}
8 g6 o, W8 C' H* [3 D. R: S - +5 i3 G" b7 J& n. B1 [0 T0 A7 [
- .palm-group.search .search-maps {
X' y, {4 U: i2 k2 W- s/ d - width: 100%;' R. V1 F" b+ G
- height: 52px;
复制代码 |
评分
-
查看全部评分
|