|
ZT from http://forums.precentral.net/web ... addons-1-3-1-a.html) I) w" \! f8 ]# H* _
# l; u( X6 r. Y. B& T% LPalm在1.3.1更改了全局搜索设置,使之更加容易添加新的搜索。2 G( D) Z O7 c+ z O9 f2 W
这里以增加 IMDB 搜索为例.- --- .orig/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js2 |! \. Z. V! f
- +++ /usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
, B( i- Z; v$ f& q5 F) u# H - @@ -46,6 +46,7 @@
) X$ r6 V) f. ~: v3 m: k! N - this.limit=40;! j0 A+ x$ J5 i7 ` O2 }
- this.URLs = {9 c7 G4 g% x+ s: C* N
- 'google':$L("www.google.com/m/search?client=ms-palm-webOS&channel=iss&q="),. O2 ~" D5 v% ]! |9 y
- + 'imdb':$L("http://www.imdb.com/find?s=all&q="),
2 z- f& P6 d8 n' p - 'wikipedia':$L("http://en.m.wikipedia.org/wiki/Special:Search?search="),0 u3 n- P" Z4 d9 F, p) K! a2 [- _6 E
- 'twitter': $L("http://search.twitter.com/search?q="),
! J; d4 C! X% w/ o - 'yahoo': $L("http://search.yahoo.com/search?p="),
7 }( @' _7 N* i8 [, e* |2 h2 ] - @@ -130,6 +131,7 @@/ I4 ^/ ]7 J+ y" C, {
-
9 v3 j! N3 f6 d& j - this.searchEngineList = [{id:"google",title:"Google",imgFile:"images/search-google.png", showImage:"block", showName:"none"},- i0 f1 q) g; l5 t0 [8 c0 h
- {id:"map",title:"Google Maps",imgFile:"images/search-maps.png", showImage:"block", showName:"none"},
2 j( ]+ Y0 C4 h3 I! f. j - + {id:"imdb",title:"IMDB",imgFile:"images/search-imdb.png", showImage:"block", showName:"none"},: X9 z' Y7 k; y1 C: p
- {id:"wikipedia",title:"Wikipedia",imgFile:"images/search-wikipedia.png", showImage:"block", showName:"none"},
6 _. E- I4 K; M+ T& | - {id:"twitter",title:"Twitter",imgFile:"images/search-twitter.png", showImage:"block", showName:"none"}
5 }- M( M) g# A5 N2 p# ^ - ];% o' z7 C) `7 D5 I# z! Q7 s
! T0 _: |2 _( r, L3 o0 f8 x- --- .orig/usr/lib/luna/system/luna-applauncher/stylesheets/global-search.css
! o* T3 X- Z9 D; z& `% ^9 y2 ` - +++ /usr/lib/luna/system/luna-applauncher/stylesheets/global-search.css
9 r+ U7 G# m! N- q2 P, z' W - @@ -139,6 +139,12 @@
/ Y R$ P8 o8 q - background: url(../images/search-google.png) center center no-repeat;
( W" t: O8 p+ h/ }$ ` - }% F, i+ F% ^8 Y% h# x
- 6 C/ x' J- j. j+ ]
- +.palm-group.search .search-imdb {
2 r3 S1 h' R3 y$ A/ H% S5 L - + width: 100%;9 T8 @- b8 ?% N- _
- + height: 52px;
) Y% O, l4 \4 F0 P- L6 B - + background: url(../images/search-imdb.png) center center no-repeat;9 q8 C# u" C+ y8 h2 k
- +}
4 J: N& D3 N2 _5 i; W- ` - +
# [) c; _5 h( ~, z - .palm-group.search .search-maps {
# s$ S) {. O, ^, Y0 Y* M - width: 100%;
! Y: E/ D+ c8 B y+ Z7 n. g - height: 52px;
复制代码 |
评分
-
查看全部评分
|