polish.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. /**
  2. * The polish.css files contains all
  3. * design information about a project.
  4. * It can be adjusted for specific devices
  5. * or device groups by putting it in the
  6. * appropriate sub-folder.
  7. * If you want to adjust a design for all
  8. * Nokia devices, define it in "resources/Nokia/polish.css"
  9. * and so on. Only new and different settings
  10. * need to be specified in such polish.css files.
  11. */
  12. /**
  13. * the colors which are defined in
  14. * the colors section can later be referenced.
  15. * This makes changes easy, since the color
  16. * just needs to be changed in one position.
  17. * Even default colors (like blue, green, lime, etc)
  18. * can be changed here.
  19. */
  20. colors {
  21. screenColorTop1: #fff;
  22. screenColorBottom1: #fff;
  23. screenColorTop2: #ff0;
  24. screenColorBottom2: #ff0;
  25. bgColor: white;
  26. contextBgColor: #aff;
  27. focusedBgColor: #bbf;
  28. focusedBgColor2: #ddf;
  29. rangeBarColor: #66f;
  30. fontColor: #222;
  31. fontShadowColor: #fff;
  32. focusedFontColor: #111;
  33. focusedBackgroundColor: #63c931;
  34. /* focusedBackgroundColor: #eee; */
  35. focusedBorderColor: #444;
  36. titleBackgroundColor: #4f4f34;
  37. }
  38. //#include ${dir.include}/xforms.css
  39. /**
  40. * Default style for labels.
  41. * Set an explicit style with "label-style: name;" in the appropriate style.
  42. */
  43. /**
  44. * Default style for labels.
  45. * Set an explicit style with "label-style: name;" in the appropriate style.
  46. */
  47. label {
  48. font-color: blue;
  49. font-size: small;
  50. margin: 2;
  51. margin-left: 5;
  52. layout: left | newline-after;
  53. }
  54. /**
  55. * You could style the screen info element here, which is used to display information
  56. * over several screens. Since we use only two images, however, this style is not
  57. * really needed.
  58. */
  59. screeninfo {
  60. font-size: small;
  61. margin-top: -24;
  62. margin-left: 10;
  63. }
  64. /**
  65. * The element that displays the current input mode, e.g. "abc" or "Abc" or "123"
  66. */
  67. info {
  68. font-size: small;
  69. layout: right|shrink;
  70. margin-right: 10;
  71. margin-top: -24;
  72. background-color: argb( 170, 255, 255, 255 );
  73. }
  74. /************* SCROLL BAR *************/
  75. scrollbar {
  76. scrollbar-slider-color: focusedBackgroundColor;
  77. scrollbar-slider-width: 3;
  78. }
  79. /**
  80. * The title style is a predefined style which is used
  81. * for all screen-titles.
  82. */
  83. title {
  84. padding: 2;
  85. font-face: proportional;
  86. font-size: small;
  87. font-style: bold;
  88. font-color: white;
  89. background-color: titleBackgroundColor;
  90. /*
  91. background {
  92. type: vertical-gradient;
  93. top-color: #fff;
  94. bottom-color: #ccc;
  95. start: 2%;
  96. end: 90%;
  97. }
  98. */
  99. border: none;
  100. layout: horizontal-center | horizontal-expand;
  101. /*
  102. text-effect: vertical-gradient;
  103. text-vertical-gradient-start-color: #eee;
  104. text-vertical-gradient-end-color: #000;
  105. */
  106. text-effect: shadow;
  107. text-shadow-color: gray;
  108. }
  109. /************* MENU BAR *************/
  110. menubar
  111. {
  112. font-color:white;
  113. margin: 0;
  114. /* padding-top: 3; */
  115. padding: 2;
  116. background {
  117. /* type: vertical-gradient;
  118. top-color: #ccc;
  119. bottom-color: #fff;
  120. start: 10%;
  121. end: 90%;
  122. */
  123. color: titleBackgroundColor;
  124. }
  125. }
  126. /**
  127. * Commands within the menubar on the left side
  128. */
  129. leftcommand
  130. {
  131. margin: 0;
  132. /* margin-left: 10;
  133. margin-right: 10; */
  134. margin-left: 3;
  135. margin-right: 3;
  136. /* padding-top: 3; */
  137. padding-top: 0;
  138. padding-bottom: 0;
  139. font-color: white;
  140. font-style: bold;
  141. font-size: small;
  142. }
  143. /**
  144. * Commands within the menubar on the right side
  145. */
  146. rightcommand extends leftcommand
  147. {
  148. layout: right;
  149. }
  150. centercommand extends leftcommand
  151. {
  152. layout: center;
  153. }
  154. menu {
  155. margin-left: 4;
  156. margin-right: 4;
  157. margin-bottom: -4;
  158. min-width: 100;
  159. padding: 2;
  160. font-color: EagleDarkGrey;
  161. font-size: small;
  162. /* view-type: slide-up; */
  163. border {
  164. type: drop-shadow;
  165. width: 4;
  166. inner-color: EagleWhite;
  167. outer-color: titleBackgroundColor;
  168. orientation: top-right;
  169. }
  170. background {
  171. color: EagleWhite;
  172. }
  173. /*
  174. background {
  175. type: round-rect;
  176. color: focusedBgColor;
  177. border-width: 2;
  178. border-color: bgColor;
  179. }
  180. */
  181. /* When the extended menubar is not used, the font-section will
  182. apply to the menubar as well:
  183. font-color: fontColor;
  184. font-style: bold;
  185. menubar-color: yellow;
  186. */
  187. }
  188. /** Style for the first layer of subcommands.
  189. menu1 extends menu {
  190. background-color: argb(75%, 100%, 100%, 0 );
  191. background-type: simple;
  192. background-border-width: 0;
  193. layout: right;
  194. margin-bottom: 4;
  195. margin-right: 4;
  196. }
  197. */
  198. /**
  199. * The menuItem style is a predefined style
  200. * for the actual commands in a fullscreen-menu.
  201. * When the menuItem style is not defined,
  202. * the menu style will be used instead.
  203. */
  204. menuItem {
  205. padding: 3;
  206. padding-left: 10;
  207. padding-right: 10;
  208. font {
  209. color: black;
  210. size: small;
  211. style: bold;
  212. }
  213. background: none;
  214. layout: left;
  215. /**
  216. * Yes, it's possible to use preprocessing within CSS files. Use any preprocessing
  217. * variables like polish.midp2 or polish.api.nokia-ui. You can also access resource
  218. * information using these property functions:
  219. * - exists( resourcename ): checks whether a resource is defined for the current target device
  220. * - imagewidth( imagename ): retrieves the width of the given image
  221. * - imageheight( imagename ): retrieves the height of the given image
  222. */
  223. //#if ${ exists( arrowRight.png ) }
  224. command-child-indicator: url(arrowRight.png);
  225. //#else
  226. command-child-indicator-color: white;
  227. command-child-indicator-width: 8;
  228. command-child-indicator-height: 10;
  229. //#endif
  230. }
  231. /**
  232. * This is a custom style for selected
  233. * menu items. It is used, because it has
  234. * been defined in the menu style.
  235. */
  236. menuItem:hover extends menuItem {
  237. background: EagleFocusedBg;
  238. font-color: black;
  239. layout: left | horizontal-expand;
  240. }
  241. /*
  242. focused {
  243. background-color: focusedBgColor;
  244. }
  245. */