MTK如何更换主菜单背景

[复制链接]
 楼主| 3B1105 发表于 2010-5-22 14:07 | 显示全部楼层 |阅读模式
MTK更换主菜单背景
本文来自:我爱研发网(52RD.com) 详细出处:[url=http://www.52rd.com/bbs/post.asp?action=new&boardid=5[52RD.com]http://www.52rd.com/bbs/post.asp?action=new&boardid=5[52RD.com[/url]]
6019实验室 发表于 2010-5-22 14:16 | 显示全部楼层
idlescreen.
6019赵文 发表于 2010-5-22 14:19 | 显示全部楼层
在文件wgui_draw_manager.c当中有这样一个函数, 该函数能改变main menu and sub menu background, that is: UI_filled_area* dm_get_current_scr_bg_filler(void);

by the way, this function just return the current screen\'s background. If you want to change it, finally, you should modify this file: themecomponents.h, in this file, you can find the definition:

CONST_HARDWARE UI_filled_area main_menu_background_filler_defaultTheme={
UI_FILLED_AREA_TYPE_COLOR,
UI_IMAGE_ID_NULL,
NULL,
{206,206,206,100},
{0,0,0,100},
{0,0,0,100},
{0,0,0,100},
0};

here, the main menu background is just a color filling, you can use image as background instead.
huzixian 发表于 2010-5-22 14:21 | 显示全部楼层
very good,tks!
bit6019 发表于 2010-5-22 14:25 | 显示全部楼层
OK,i know,thanks!
linux1 发表于 2010-5-22 14:28 | 显示全部楼层
我一向是直接换图片的
LPC300 发表于 2010-5-22 14:32 | 显示全部楼层
牛人
LPC300 发表于 2010-5-22 14:36 | 显示全部楼层
也是办法,呵呵
maoyanketi 发表于 2010-5-22 14:39 | 显示全部楼层
牛人,谢谢了!看看先!能用,哈哈!
S3C2440 发表于 2010-5-22 14:43 | 显示全部楼层
不错呀
zhangjiwei2007 发表于 2010-5-22 15:18 | 显示全部楼层
还行吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

315

主题

1645

帖子

4

粉丝
快速回复 在线客服 返回列表 返回顶部

315

主题

1645

帖子

4

粉丝
快速回复 在线客服 返回列表 返回顶部