copper

Untitled

Jan 11th, 2014
107
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Theme by Guillaume Cocatre-Zilgien <gcocatre@gmail.com>
  2. # CC-BY-SA
  3.  
  4. # Disable status bar
  5. %wd
  6. # Backdrop
  7. %X(-)
  8.  
  9. # Status bar: emphasize volume when > 0dB, storage activity, and battery level when < 10%
  10. # Rockbox bug/quirk: %?if() evaluates the number that's being tested to (number + 1).
  11. # Example: '14-Nimbus' will return true when tested to be equal to 15.
  12. # So here when I'm testing whether the font is '> 15', I'm really testing if the font size is strictly superior to 14, not 15.
  13.  
  14. # Volume
  15. %?if(%ss(0, 2, %St(font), number), >, 15)<%?if(%pv, >, 0)<%Vd(volumehigh19)|%Vd(volume19)>|%?if(%pv, >, 0)<%Vd(volumehigh14)|%Vd(volume14)>>
  16.  
  17. %Vl(volumehigh14,10,4,102,16,-)
  18. %Vf(ffe60f)
  19. %ac%pv dB
  20.  
  21. %Vl(volume14,10,4,102,16,-)
  22. %Vf(0de2e5)
  23. %ac%pv dB
  24.  
  25. %Vl(volumehigh19,10,1,102,19,-)
  26. %Vf(ffe60f)
  27. %ac%pv dB
  28.  
  29. %Vl(volume19,10,1,102,19,-)
  30. %Vf(0de2e5)
  31. %ac%pv dB
  32.  
  33. # Storage
  34. %V(112,6,15,9,-)
  35. %?if(%lh, =, h)<%x(storageactivity,storageactivity.bmp,0,0)|>
  36.  
  37. # Battery
  38. %?if(%ss(0, 2, %St(font), number), >, 15)<%?if(%bc, =, c)<%Vd(batterycharging19)|%?if(%bp, =, p)<%Vd(batteryac19)|%?if(%bl, <, 10)<%Vd(batterylow19)|%Vd(battery19)>>>|%?if(%bc, =, c)<%Vd(batterycharging14)|%?if(%bp, =, p)<%Vd(batteryac14)|%?if(%bl, <, 10)<%Vd(batterylow14)|%Vd(battery14)>>>>
  39.  
  40. %Vl(batterycharging14,127,4,103,16,-)
  41. %Vf(ffe60f)
  42. %ac+%bl%%
  43.  
  44. %Vl(batteryac14,127,4,103,16,-)
  45. %Vf(ffe60f)
  46. %ac*%bl%%
  47.  
  48. %Vl(batterylow14,127,4,103,16,-)
  49. %Vf(ffe60f)
  50. %ac%bl%%
  51.  
  52. %Vl(battery14,127,4,103,16,-)
  53. %Vf(0de2e5)
  54. %ac%bl%%
  55.  
  56. %Vl(batterycharging19,127,1,103,19,-)
  57. %Vf(ffe60f)
  58. %ac+%bl%%
  59.  
  60. %Vl(batteryac19,127,1,103,19,-)
  61. %Vf(ffe60f)
  62. %ac*%bl%%
  63.  
  64. %Vl(batterylow19,127,1,103,19,-)
  65. %Vf(ffe60f)
  66. %ac%bl%%
  67.  
  68. %Vl(battery19,127,1,103,19,-)
  69. %Vf(0de2e5)
  70. %ac%bl%%
  71.  
  72. # Menu
  73. %Vi(-,10,30,220,252,-)
  74.  
  75. # Progress Bar
  76. %?mp<|%Vd(progressbar)>
  77. %Vl(progressbar,0,288,240,2,-)
  78. %pb(0,0,240,2,progressbar.bmp)
  79.  
  80. # Cover Artwork
  81. %V(4,294,22,22,-)
  82. %Cl(0,0,22,22,c,c)
  83. %Cd
  84.  
  85. # Metadata
  86.  
  87. # Bottom bar: display date, or song metadata, or radio name/frequency
  88. # Playback stopped
  89. %?if(%mp, =, 1)<%?if(%ss(0, 2, %St(font), number), >, 15)<%Vd(date19)|%Vd(date14)>|>
  90. # Playback not stopped, playing music
  91. %?if(%mp, >, 1)<%?if(%mp, <=, 7)<%?if(%ss(0, 2, %St(font), number), >, 15)<%Vd(metadata19)|%Vd(metadata14)>%Vd(play)|>|>
  92. # Playback not stopped, listening to the radio
  93. %?if(%mp, >, 1)<%?if(%mp, >=, 8)<%?if(%ss(0, 2, %St(font), number), >, 15)<%Vd(radio19)|%Vd(radio14)>%Vd(play)|>|>
  94.  
  95. # Song Metadata
  96. %Vl(metadata14,34,298,179,22,-)
  97. %Vf(0de2e5)
  98. %s%al%?it<“%it”|%fn>%?ia<%, by %ia|>
  99.  
  100. %Vl(metadata19,34,295,179,25,-)
  101. %Vf(0de2e5)
  102. %s%al%?it<“%it”|%fn>%?ia<%, by %ia|>
  103.  
  104. # Radio Name or Frequency
  105. %Vl(radio14,34,298,179,22,-)
  106. %Vf(0de2e5)
  107. %s%al%?Tn<%Tn|%?ty<%ty|%tf FM>>
  108.  
  109. %Vl(radio19,34,295,179,25,-)
  110. %Vf(0de2e5)
  111. %s%al%?Tn<%Tn|%?ty<%ty|%tf FM>>
  112.  
  113. # Play Status
  114. %Vl(play,219,296,17,17,-)
  115. %xl(playmode,playmode.bmp,0,0,12)%xd(playmode,%mp,0)
  116.  
  117. # Date
  118. %Vl(date14,34,298,136,22,-)
  119. %Vf(0de2e5)
  120. %s%al%ca, %cb %ce, %cY
  121.  
  122. %Vl(date19,34,295,116,25,-)
  123. %Vf(0de2e5)
  124. %s%al%cY/%cm/%cd
  125.  
  126. # Time
  127. %Vl(date14,170,298,60,22,-)
  128. %Vf(0de2e5)
  129. %s%ar%?cf<%cH:%cM|%cl:%cM %cP>
  130.  
  131. %Vl(date19,150,295,80,25,-)
  132. %Vf(0de2e5)
  133. %s%ar%?cf<%cH:%cM|%cl:%cM %cP>
RAW Paste Data