UiColorDefine.h
上传用户:hjhsjcl
上传日期:2020-09-25
资源大小:11378k
文件大小:10k
源码类别:

压缩解压

开发平台:

C++ Builder

  1. #ifndef _OLED_UI_COLOR_DEF_
  2. #define _OLED_UI_COLOR_DEF
  3. #include "IconDefine.h"
  4. //WHH #8 301_061226
  5. #define UI_FILST_LIGHT_START_ROW 35
  6. #define UI_FILST_LIGHT_START_COL 26
  7. #define UI_FILST_LIGHT_ROW 20
  8. #define UI_FILST_ROOT_ROW 36
  9. #define UI_FILST_ROOT_COL 0
  10. #define UI_FILST_COL 18
  11. #define UI_FILST_ROW 18
  12. #define UI_FILST_STRING_START 33
  13. #define UI_FILST_STRING_END 168
  14. #define UI_FILST_TREE_ROW 20
  15. #define UI_FILST_NUM 5
  16. #define UI_FILST_LIGHT_COLOT 0x3B9B
  17. #define UI_FILST_SELECT_ROW_START  36
  18. #define UI_FILST_SELECT_COL_START 42
  19. #define UI_FILST_SELECT_ROW_DIFF 64
  20. #define UI_FILST_SELECT_TITLE_ROW_START 16
  21. #define UI_FILST_SELECT_TITLE_COL_START 56
  22. #define UI_CLASSLST_SELECT_TITLE_ROW_START 20
  23. #define UI_CLASSLST_SELECT_TITLE_COL_START 56
  24. #define UI_CLASSLST_SELECT_ROW_START  36
  25. #define UI_CLASSLST_SELECT_COL_START 16
  26. #define UI_CLASSLST_SELECT_ROW_DIFF 20
  27. #define UI_CLASSLST_ROOT_ROW 36
  28. #define UI_CLASSLST_ROOT_COL 0
  29. #define UI_CLASSLST_NUM 5
  30. #define UI_CLASSLST_LIGHT_START_ROW 35
  31. #define UI_CLASSLST_LIGHT_START_COL 26
  32. #define UI_CLASSLST_LIGHT_ROW 20
  33. #define UI_CLASSLST_START_ROW 36
  34. #define UI_CLASSLST_LIGHT_ROW 20
  35. #define UI_CLASSLST_STRING_START 33
  36. #define UI_CLASSLST_STRING_END 168
  37. #define UI_CLASSLST_COL 18
  38. #define UI_CLASSLST_ROW 18
  39. #define UI_CLASSLST_TREE_ROW 20
  40. #define UI_TAG_BG_COLOR 0x23 //tne 2007/01/17 #2
  41. // WHH 070129(start)
  42. #define UI_STR_REVERSE( )  
  43. {
  44. gxwFGColor=0x0000; 
  45. gxwBGColor=0xFFFF;
  46. }
  47. #define UI_STR_UNREVERSE( )  
  48. {
  49. gxwFGColor=0xFFFF; 
  50. gxwBGColor=0x0000;
  51. }
  52. // WHH 070129(end)
  53. //WHH #8 301_061226
  54. #if(OLED_COLOR_FIELD_TYPE==OLED_FIELD_BGR565)
  55. #define OLED_RED 0x001F
  56. #define OLED_GREEN 0x07e0
  57. #define OLED_BLUE 0xF800
  58. #define OLED_LIGHT_BLUE 0xFF40
  59.                
  60. #define OLED_R_MASK 0x001f
  61. #define OLED_G_MASK 0x07e0
  62. #define OLED_B_MASK 0XF800
  63. #define OLED_R_BITS 5
  64. #define OLED_G_BITS 6
  65. #define OLED_B_BITS 5
  66. #define OLED_R_OFFSET 0
  67. #define OLED_G_OFFSET 5
  68. #define OLED_B_OFFSET 11
  69. #else //OLED_COLOR_FIELD_TYPE==OLED_FIELD_RGB565
  70. #define OLED_RED 0xF800
  71. #define OLED_GREEN 0x07e0
  72. #define OLED_BLUE  0x001F
  73. #define OLED_LIGHT_BLUE 0x075F
  74. #define OLED_R_MASK  0XF800
  75. #define OLED_G_MASK 0x07e0
  76. #define OLED_B_MASK 0x001f
  77. #define OLED_R_BITS 5
  78. #define OLED_G_BITS 6
  79. #define OLED_B_BITS 5
  80. #define OLED_R_OFFSET 11
  81. #define OLED_G_OFFSET 5
  82. #define OLED_B_OFFSET 0
  83. #endif
  84. #define OLED_BLACK  0x0000
  85. #define OLED_WHITE 0xFFFF
  86. #define OLED_MENU_BG_COLOR 0x109D //tne 2007/01/06 #1
  87. #define OLED_BG_COLOR OLED_BLACK
  88. #define OLED_FG_COLOR OLED_WHITE
  89. //1 Ui Color definition
  90. #if(OLED_COLOR_FIELD_TYPE==OLED_FIELD_BGR565)
  91. #define UI_COLOR_PROGRESS_1 0x549F  
  92. #define UI_COLOR_PROGRESS_2 0x515F 
  93. #define UI_COLOR_PROGRESS_3 0x001F
  94. #define UI_COLOR_PROGRESS_BAR 0xFEBA
  95. #define UI_EQ_BAR_BLANK 0x528A
  96. #define UI_EQ_BAR_COLOR 0x4DDF
  97. #define UI_FM_FREQ_LINE_BG_COLOR 0xC7F6
  98. #define UI_FM_FREQ_LINE_FG_COLOR 0x001F
  99. #define UI_HOST_COPY_BAR_FG OLED_BLUE
  100. #define UI_HOST_COPY_BAR_BG OLED_WHITE
  101. #define UI_PLAY_PROGRESS_BAR_BG OLED_BLACK
  102. #define UI_PLAY_PROGRESS_BAR_FG OLED_WHITE
  103. #define UI_PLAY_PROGRESS_BAR_1 OLED_WHITE
  104. #define UI_PLAY_PROGRESS_BAR_2 0x515F
  105. #define UI_PLAY_PROGRESS_BAR_3 OLED_RED
  106. #define UI_HOST_PROGRESS_BAR_FG OLED_WHITE
  107. #define UI_HOST_PROGRESS_BAR_1 OLED_BLUE
  108. #else
  109. #define UI_COLOR_PROGRESS_1 0xFC8A
  110. #define UI_COLOR_PROGRESS_2 0xF94A
  111. #define UI_COLOR_PROGRESS_3 0xF800
  112. #define UI_COLOR_PROGRESS_BAR 0xEB5F
  113. #define UI_EQ_BAR_BLANK 0x528A
  114. #define UI_EQ_BAR_COLOR 0xFDC4
  115. #define UI_FM_FREQ_LINE_BG_COLOR 0xB7F8
  116. #define UI_FM_FREQ_LINE_FG_COLOR 0xF800
  117. #define UI_HOST_COPY_BAR_FG OLED_BLUE
  118. #define UI_HOST_COPY_BAR_BG OLED_WHITE
  119. #define UI_PLAY_PROGRESS_BAR_BG OLED_BLACK
  120. #define UI_PLAY_PROGRESS_BAR_FG OLED_WHITE
  121. #define UI_PLAY_PROGRESS_BAR_1 OLED_WHITE
  122. #define UI_PLAY_PROGRESS_BAR_2 0xF94A
  123. #define UI_PLAY_PROGRESS_BAR_3 OLED_RED
  124. #define UI_HOST_PROGRESS_BAR_FG OLED_WHITE
  125. #define UI_HOST_PROGRESS_BAR_1 OLED_BLUE
  126. #define UI_IM_TIME_NUM_PITCH (IM_TIME_NUMBER_1-IM_TIME_NUMBER_0)
  127. #define UI_IM_REPEAT_MODE_PITCH (IM_MUSIC_REPEAT_001_REPEAT1-IM_MUSIC_REPEAT_000_NORMAL)
  128. #define UI_IM_REPEAT_MODE_DIR_PITCH (IM_MUSIC_REPEAT_005_FOLDER_REPEATALL-IM_MUSIC_REPEAT_004_FOLDER_NORMAL)
  129. #define UI_IM_MUSIC_MP3_NUMBER_PITCH (IM_MUSIC_MP3_NUMBER_1-IM_MUSIC_MP3_NUMBER_0)
  130. #define UI_IM_MUSIC_SMALLNUMBER_PITCH (IM_MUSIC_SMALLNUMBER_1-IM_MUSIC_SMALLNUMBER_0)
  131. #define UI_IM_MOVIE_SMALLNUMBER_PITCH (IM_MOVIE_SMALLNUMBER_1-IM_MOVIE_SMALLNUMBER_0)
  132. #define UI_IM_EQ_PITCH (IM_MUSIC_EQ_002_POP-IM_MUSIC_EQ_001_NORMAL)
  133. #define UI_IM_PLABACKRATE_PITCH (IM_MUSIC_PLAYSPEED_001_114-IM_MUSIC_PLAYSPEED_000_100)
  134. #endif
  135. // Walace051027 #1 remove icon from Icondefine.h
  136. #define ICON_3D_H  7
  137. #define ICON_3D_W  15
  138. #define ICON_AB_REPEAT_H  7
  139. #define ICON_AB_REPEAT_W  16
  140. #define ICON_AB_REPEAT_PITCH  (ICON_AB_REPEAT_N01_AB-ICON_AB_REPEAT_N00_A)
  141. #define ICON_ALI_LOGO_H  46
  142. #define ICON_ALI_LOGO_W  74
  143. #define ICON_BAT_H  7
  144. #define ICON_BAT_W  11
  145. //#define ICON_BAT_PITCH (ICON_BAT_LV1-ICON_BAT_LV0) // Jeff_310_061227
  146. #define IM_BATTERY_PITCH (IM_BATTERY_02-IM_BATTERY_01) 
  147. #define IM_USB_BATTERY_PITCH (IM_USB_BATTERY_02-IM_USB_BATTERY_01)
  148. #define ICON_BATT_WARRING_W 48
  149. #define ICON_BATT_WARRING_H 48
  150. #define ICON_CHECKBOX_H  16
  151. #define ICON_CHECKBOX_W  16
  152. #define ICON_CLASS_W 16
  153. #define ICON_CLASS_H 16
  154. #define ICON_COLON_H  8
  155. #define ICON_COLON_W  3
  156. #define ICON_DIGIT68_H  8
  157. #define ICON_DIGIT68_W  6
  158. #define ICON_DIGIT68_PITCH (ICON_DIGIT_68N01-ICON_DIGIT_68N00)
  159. #define ICON_DIGIT_H  7
  160. #define ICON_DIGIT_W  5
  161. #define ICON_DIGIT_PITCH (ICON_DIGIT_N01-ICON_DIGIT_N00)
  162. #define ICON_EQ_MODE_H  7
  163. #define ICON_EQ_MODE_W  16
  164. #define ICON_EQ_MODE_PITCH (ICON_EQ_MODE_N01_POP-ICON_EQ_MODE_N00_NOR)
  165. #define ICON_EQ_H  8
  166. #define ICON_EQ_W  10
  167. #define ICON_EQ_PITCH (ICON_EQ_N01_N1-ICON_EQ_N00_N2)
  168. #define ICON_FBS_W 16
  169. #define ICON_FBS_H 16
  170. #define ICON_FILE_H  16
  171. #define ICON_FILE_W  16
  172. #define ICON_GARBAGE_BIN_W 32
  173. #define ICON_GARBAGE_BIN_H 32
  174. #define ICON_KEY_HOLD_W 48
  175. #define ICON_KEY_HOLD_H 48
  176. #define ICON_LAB_H  16
  177. #define ICON_LAB_W  16
  178. #define ICON_MUSIC_TYPE_H  15
  179. #define ICON_MUSIC_TYPE_W  17
  180. #define ICON_PC_H  32
  181. #define ICON_PC_W  32
  182. #define ICON_PM_H  32
  183. #define ICON_PM_W  32
  184. #define ICON_PM_PITCH (ICON_PM_N01_PHOTO-ICON_PM_N00_MUSIC)
  185. #define ICON_POWER_W 16
  186. #define ICON_POWER_H 16
  187. #define ICON_PROGRESS_BAR_H  9
  188. #define ICON_PROGRESS_BAR_W  73
  189. #define ICON_REPEAT_MODE_H  15
  190. #define ICON_REPEAT_MODE_W  11
  191. //#define ICON_REPEAT_MODE_PITCH (ICON_REPEAT_MODE_N01_ONE-ICON_REPEAT_MODE_N00_NOR)   // Jeff_310_061227
  192. #define IM_MUSIC_REPEAT_PITCH (IM_MUSIC_REPEATALL-IM_MUSIC_REPEAT1) 
  193. #define ICON_SGN_H  8
  194. #define ICON_SGN_W  15
  195. #define ICON_SIGN_H  6 //Walace060914#1
  196. #define ICON_SIGN_W  7
  197. #define ICON_SLASH68_H  8
  198. #define ICON_SLASH68_W  6
  199. #define ICON_SLASH_H  8
  200. #define ICON_SLASH_W  5
  201. #define ICON_STERO_H  7
  202. #define ICON_STERO_W  25
  203. #define ICON_STS_H  5
  204. #define ICON_STS_W  5
  205. #define ICON_SUBMENU_H  8
  206. #define ICON_SUBMENU_W  48
  207. #define ICON_SUBMENU_PITCH (ICON_SUBMENU_N2-ICON_SUBMENU_N1)
  208. #define ICON_UPDATE_DB_W 48
  209. #define ICON_UPDATE_DB_H 48
  210. #define ICON_USB_H  11
  211. #define ICON_USB_W  23
  212. #define ICON_VOLUME_W 32
  213. #define ICON_VOLUME_H 32
  214. #define ICON_USB_STATE_H  9
  215. #define ICON_USB_STATE_W  8
  216. #define ICON_CLOCK_ALARM_W 32
  217. #define ICON_CLOCK_ALARM_H  32
  218. #define ICON_EQ_VAD_H  7
  219. #define ICON_EQ_VAD_W  16
  220. #define ICON_FREQBAR_H  16
  221. #define ICON_FREQBAR_W  96
  222. #define ICON_PROGRESS_MAX 64
  223. #define ICON_PROGRESS_START_OFFSET 5
  224. /* //Walace060806#2 start
  225. #define ANI_POWER_ON_NUM 9
  226. #define ANI_POWER_ON_START 0
  227. #define ANI_POWER_ON_W 96
  228. #define ANI_POWER_ON_H 64
  229. #define ANI_POWER_ON_DEALY 20000
  230. */
  231. #define ANI_DELETE1  0
  232. #define ANI_DELETE2  1537
  233. #define ANI_DELETE3  3074
  234. #define ANI_DELETE4  4611
  235. #define ANI_POWER_ON_NUM00  6148
  236. #define ANI_POWER_ON_NUM01  7685
  237. #define ANI_POWER_ON_NUM02  9222
  238. #define ANI_POWER_ON_NUM03  10759
  239. #define ANI_POWER_ON_NUM04  12296
  240. #define ANI_POWER_ON_NUM05  13833
  241. #define ANI_POWER_ON_NUM06  15370
  242. #define ANI_POWER_ON_NUM07  16907
  243. #define ANI_POWER_ON_NUM08  18444
  244. #define ANI_DELETE_NUM 4
  245. #define ANI_DELETE_START ANI_DELETE1
  246. #define ANI_DELETE_W 96
  247. #define ANI_DELETE_H 64
  248. #define ANI_DELETE_FRAME_OFFSET (ANI_DELETE2-ANI_DELETE1)
  249. #define ANI_POWER_ON_NUM 9
  250. #define ANI_POWER_ON_START ANI_POWER_ON_NUM00
  251. #define ANI_POWER_ON_W 96
  252. #define ANI_POWER_ON_H 64
  253. #define ANI_POWER_ON_OFFSET (ANI_POWER_ON_NUM01-ANI_POWER_ON_NUM00)
  254. #define ANI_POWER_ON_DEALY 20000
  255. // WHH #5 301_061225(start)
  256. #define IM_OPEN_ANIMATION_01  0
  257. #define IM_OPEN_ANIMATION_02  2561
  258. #define IM_OPEN_ANIMATION_03  5122
  259. #define IM_OPEN_ANIMATION_04  7683
  260. #define IM_OPEN_ANIMATION_NUM 4
  261. #define IM_OPEN_ANIMATION_START IM_OPEN_ANIMATION_01
  262. #define IM_OPEN_ANIMATION_OFFSET (IM_OPEN_ANIMATION_02-IM_OPEN_ANIMATION_01)
  263. #define IM_OPEN_ANIMATION_DELAY 45000
  264. // WHH #5 301_061225(end)
  265. //Walace060806#2 end
  266. //tne 2006/01/04 #1 start
  267. #define IM_CLOSE_ANIMATION_01  0
  268. #define IM_CLOSE_ANIMATION_02  2561
  269. #define IM_CLOSE_ANIMATION_03  5122
  270. #define IM_CLOSE_ANIMATION_04  7683
  271. #define IM_CLOSE_ANIMATION_NUM 4
  272. #define IM_CLOSE_ANIMATION_START IM_CLOSE_ANIMATION_01
  273. #define IM_CLOSE_ANIMATION_OFFSET (IM_CLOSE_ANIMATION_02-IM_CLOSE_ANIMATION_01)
  274. #define IM_CLOSE_ANIMATION_DELAY 55000
  275. //tne 2006/01/04 #1 end
  276. #define ICON_VIDEO_MSG_VOL_PITCH (ICON_VIDEO_MSG_VOL02-ICON_VIDEO_MSG_VOL01)
  277. #endif //#ifndef _OLED_UI_COLOR_DEF_