Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 30th, 2012  |  syntax: None  |  size: 5.32 KB  |  hits: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # THEME       : cabbiev2
  2. # TARGET(S)   : Rockbox as an Application 240x320 Portrait
  3. # AUTHOR      : Hayden Pearce
  4. # DATE        : © Hayden Pearce 31/01/12 Tuesday 31st - January - 2012
  5. #
  6. # DISABLE STATUSBAR
  7. #
  8. %wd
  9. #
  10. # BACKDROP
  11. #
  12. %X(cabbiev2-backdrop-240x320x24.bmp)
  13. #
  14. # PRELOAD FONTS
  15. #
  16. %Fl(2,16-cabbiev2-[bold].fnt)
  17. %Fl(3,16-cabbiev2-[regular].fnt)
  18. %Fl(4,18-cabbiev2-[bold].fnt)
  19. %Fl(5,18-cabbiev2-[regular].fnt)
  20. #
  21. # PRELOAD IMAGES
  22. #
  23. %xl(albumart_backdrop,  cabbiev2-albumart-backdrop-240x320x24.bmp,0,0)
  24. %xl(fastforward,        cabbiev2-fastforward-240x320x24.bmp,6,5,2)
  25. %xl(playmode,           cabbiev2-playmode-240x320x24.bmp,6,5,5)
  26. %xl(popup,              cabbiev2-popup-240x320x24.bmp,0,0)
  27. %xl(popup_volume,       cabbiev2-volume-popup-240x320x24.bmp,0,0)
  28. %xl(progressbar_backdrop, cabbiev2-progressbar-backdrop-240x320x24.bmp,0,0)
  29. %xl(repeat,             cabbiev2-repeat-240x320x24.bmp,6,5,5)
  30. %xl(rewind,             cabbiev2-rewind-240x320x24.bmp,6,5,2)
  31. %xl(shuffle,            cabbiev2-shuffle-240x320x24.bmp,6,5,2)
  32. %xl(titlebar,           cabbiev2-titlebar-240x320x24.bmp,5,5,25)
  33. %xl(titlebar_locked,    cabbiev2-unlock-notification-240x320x24.bmp,0,0)
  34. %xl(volume_backdrop,    cabbiev2-volume-backdrop-240x320x24.bmp,0,0)
  35. %xl(volumebar_backdrop, cabbiev2-volumebar-backdrop-240x320x24.bmp,0,0)
  36.  
  37.  
  38. #
  39. # VIEWPORT CONDITIONS
  40. #
  41. %?C<
  42.     %Vd(album_art)
  43.     %?vg(variable)<
  44.             %Vd(current_track-aa)%Vd(next_track-aa)|
  45.             %Vd(popup)|
  46.             %Vd(volume_popup)>
  47.     |
  48.     %Vd(current_track-no_aa)
  49.     %?vg(variable)<
  50.                 %Vd(next_track-no_aa)|
  51.                 %Vd(popup)|
  52.                 %Vd(volume_popup)
  53.         >
  54.     >
  55. #
  56. # ALBUM ART
  57. #
  58. %Vl(album_art,56,34,128,128,-)
  59.     %T(launch_popup-aa,3,3,122,122,none)
  60.     %T(3,3,122,122,hotkey,long_press)
  61.     %Cl(3,3,122,122,c,c)
  62.     %xd(albumart_backdrop)
  63.     %Cd
  64.  
  65.  
  66.  
  67.  
  68.  
  69. %?Tl(launch_popup-aa)<%?if(%vg(variable),>,1)<%vs(variable,set,1)|%vs(variable,set,2)>>
  70. #
  71. # CURRENT TRACK INFO - ALBUM ART
  72. #
  73. %ax%Vl(current_track-aa,10,168,220,48,2)
  74.     %s%ac%?it<%it|%fn>
  75.     %s%ac%?ia<%ia|%?d(2)<%d(2)|%(root%)>>
  76.     %s%ac%?id<%id|%?d(1)<%d(1)|%(root%)>>
  77.  
  78. #
  79. # CURRENT TRACK INFO - NO ALBUM ART
  80. #
  81. %ax%Vl(current_track-no_aa,10,44,220,108,4)
  82.     %T(launch_popup-no_aa,0,0,220,108,none)
  83.     %T(0,0,220,108,hotkey,long_press)
  84.     %s%ac%?it<%it|%fn>
  85.     %s%ac%?ia<%ia|%?d(2)<%d(2)|%(root%)>>
  86.     %s%ac%?id<%id|%?d(1)<%d(1)|%(root%)>>
  87.     %ac%?ig<%ig|%?iy<%iy|%?fv<%(VBR%) >%fbKb/s %fc>>
  88.     %ac%?ig<%?iy<%iy|%?fv<%(VBR%) >%fbKb/s %fc>>
  89.     %ac%?iy<%?fv<%(VBR%) >%fbKb/s %fc>
  90.  
  91.  
  92.  
  93.  
  94.  
  95. %?Tl(launch_popup-no_aa)<%?if(%vg(variable),>,1)<%vs(variable,set,1)|%vs(variable,set,2)>>
  96. #
  97. # FASTFORWARD/NEXT
  98. #
  99. %V(203,288,36,32,-)
  100.     %T(0,0,36,32,next)
  101.     %T(0,0,36,32,ffwd,repeat_press)
  102.     %?mp<%xd(fastforward,2)|%xd(fastforward,1)|%xd(fastforward,1)|%xd(fastforward,1)|%xd(fastforward,1)||||>
  103. #
  104. # NEXT TRACK INFO - ALBUM ART
  105. #
  106. %ax%Vl(next_track-aa,10,216,220,32,3)
  107.     %T(0,0,220,32,next,long_press)
  108.     %s%ac%?Fn<%Sx(Next Track:)|%?ig<%ig>>
  109.     %s%ac%?Fn<%t(10.0)%?It<%It|%Fn>;%t(10.0)%?Ia<%Ia|%?D(2)<%D(2)|%(root%)>> - %?Id<%Id|%?D(1)<%D(1)|%(root%)>>|%?iy<%iy>>
  110. #
  111. # NEXT TRACK INFO - NO ALBUM ART
  112. #
  113. %ax%Vl(next_track-no_aa,10,181,220,54,5)
  114.     %T(0,0,220,54,next,long_press)
  115.     %s%ac%?Fn<%Sx(Next Track:)>
  116.     %s%ac%?Fn<%?It<%It|%Fn>>
  117.     %s%ac%?Fn<%?Ia<%Ia|%?D(2)<%D(2)|%(root%)>>>
  118.     %s%ac%?Fn<%?Id<%Id|%?D(1)<%D(1)|%(root%)>>>
  119. #
  120. # PLAYMODE
  121. #
  122. %V(166,288,36,32,-)
  123.     %T(0,0,36,32,play)
  124.     %T(0,0,36,32,stop,long_press)
  125.     %?mp<%xd(playmode,1)|%xd(playmode,3)|%xd(playmode,2)|%xd(playmode,4)|%xd(playmode,5)||||>
  126. #
  127. # POPUP
  128. #
  129. %Vl(popup_main,21,166,198,80,-)
  130.     %T(5,5,70,70,browse)
  131.     %T(75,5,57,70,quickscreen)
  132.     %T(132,5,60,70,contextmenu)
  133.     %xd(popup)
  134. #
  135. # PROGRESSBAR
  136. #
  137. %V(16,248,208,24,-)
  138.     %T(0,0,208,24,progressbar)
  139.     %pb(5,5,198,14,cabbiev2-progressbar-240x320x24.bmp,backdrop,progressbar_backdrop)
  140. #
  141. # REPEAT
  142. #
  143. %V(48,288,30,32,-)
  144.     %T(0,0,30,32,repmode)
  145.     %T(0,0,30,32,setting_set,repeat,off,long_press)
  146.     %?mm<%xd(repeat,1)|%xd(repeat,2)|%xd(repeat,3)|%xd(repeat,4)|%xd(Fe)>
  147. #
  148. # REWIND/PREVIOUS
  149. #
  150. %V(129,288,36,32,-)
  151.     %T(0,0,36,32,prev)
  152.     %T(0,0,36,32,rwd,repeat_press)
  153.     %?mp<%xd(rewind,2)|%xd(rewind,1)|%xd(rewind,1)|%xd(rewind,1)|%xd(rewind,1)||||>
  154. #
  155. # SHUFFLE
  156. #
  157. %V(79,288,49,32,-)
  158.     %T(0,0,49,32,shuffle)
  159.     %T(0,0,49,32,setting_set,shuffle,off,long_press)
  160.     %?ps<%xd(shuffle,1)|%xd(shuffle,2)>
  161. #
  162. # TITLEBAR
  163. #
  164. %V(16,3,208,26,-)
  165.     %T(0,0,208,26,menu)
  166.     %T(0,0,208,26,lock,long_press)
  167.     %?if(%mh,=,t)<%?Tl(2.0)<%xd(titlebar_locked)|%xd(titlebar,1)>|%?mp<|%xd(titlebar,5)|%xd(titlebar,6)|%xd(titlebar,7)|%xd(titlebar,8)||||>>
  168. #
  169. # TIME ELAPSED/REMAINING
  170. #
  171. %V(20,272,200,16,3)
  172.     %al%pc%ac%?mv(2.0)<%?Sr<dB%pv :%Sx(Volume)|%Sx(Volume): %pvdB>|%?Sr<%pe %Sx(of) %pp|%pp %Sx(of) %pe>>%ar-%pr
  173. #
  174. # VOLUME
  175. #
  176. %V(1,288,46,32,-)
  177.     %T(launch_volume_popup,0,0,46,32,none)
  178.     %T(0,0,46,32,mute,long_press)
  179.     %pv(6,5,34,23,cabbiev2-volume-240x320x24.bmp,backdrop,volume_backdrop)
  180.  
  181.  
  182.  
  183.  
  184.  
  185. %?Tl(launch_volume_popup,4.0)<%vs(variable,set,3)|%?mv<%vs(variable,set,3)|%vs(variable,set,1)>>
  186. #
  187. # VOLUME POPUP
  188. #
  189. %Vl(volume_popup,21,166,198,80,-)
  190.     %T(5,5,188,70,volume)
  191.     %xd(volume_backdrop)
  192.     %pv(10,31,178,18,cabbiev2-volumebar-240x320x24.bmp,backdrop,volumebar_backdrop)