字体增加默认属性,修改Demo中的XML使用新的Class和Font方式
This commit is contained in:
parent
f004f797e0
commit
52242daf30
@ -14,7 +14,7 @@
|
|||||||
<HBox height="auto">
|
<HBox height="auto">
|
||||||
<Button class="btn_global_blue_80x30" name="btn_back" text="后退" width="60"/>
|
<Button class="btn_global_blue_80x30" name="btn_back" text="后退" width="60"/>
|
||||||
<Button class="btn_global_blue_80x30" name="btn_forward" text="前进" width="60" margin="5,0,5"/>
|
<Button class="btn_global_blue_80x30" name="btn_forward" text="前进" width="60" margin="5,0,5"/>
|
||||||
<RichEdit class="simple prompt input" name="edit_url" width="stretch" height="28" valign="center" padding="5,5,5,5" font="1" prompttext="请输入网址"/>
|
<RichEdit class="simple prompt input" name="edit_url" width="stretch" height="28" valign="center" padding="5,5,5,5" prompttext="请输入网址"/>
|
||||||
<Button class="btn_global_blue_80x30" name="btn_navigate" text="转到" width="60" margin="5"/>
|
<Button class="btn_global_blue_80x30" name="btn_navigate" text="转到" width="60" margin="5"/>
|
||||||
<Button class="btn_global_blue_80x30" name="btn_refresh" text="刷新" width="60" margin="5"/>
|
<Button class="btn_global_blue_80x30" name="btn_refresh" text="刷新" width="60" margin="5"/>
|
||||||
</HBox>
|
</HBox>
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
<Control class="splitline_hor_level1"/>
|
<Control class="splitline_hor_level1"/>
|
||||||
<!-- RichEdit -->
|
<!-- RichEdit -->
|
||||||
<RichEdit class="prompt" name="edit" bkcolor="bk_wnd_lightcolor" width="stretch" height="stretch"
|
<RichEdit class="prompt" name="edit" bkcolor="bk_wnd_lightcolor" width="stretch" height="stretch"
|
||||||
font="1" multiline="true" vscrollbar="true" hscrollbar="true" autovscroll="true"
|
multiline="true" vscrollbar="true" hscrollbar="true" autovscroll="true"
|
||||||
normaltextcolor="darkcolor" wantreturnmsg="true" rich="true"/>
|
normaltextcolor="darkcolor" wantreturnmsg="true" rich="true"/>
|
||||||
</VBox>
|
</VBox>
|
||||||
</VBox>
|
</VBox>
|
||||||
|
@ -2,63 +2,63 @@
|
|||||||
<Global>
|
<Global>
|
||||||
<!--所有字体-->
|
<!--所有字体-->
|
||||||
<!--0-->
|
<!--0-->
|
||||||
<Font name="system" size="12"/>
|
<Font id="system_12" name="system" size="12" default="true"/>
|
||||||
<!--1-->
|
<!--1-->
|
||||||
<Font name="system" size="12"/>
|
<Font id="system_10" name="system" size="10"/>
|
||||||
<!--2-->
|
<!--2-->
|
||||||
<Font name="system" size="14"/>
|
<Font id="system_14" name="system" size="14"/>
|
||||||
<!--3-->
|
<!--3-->
|
||||||
<Font name="system" size="16"/>
|
<Font id="system_16" name="system" size="16"/>
|
||||||
<!--4-->
|
<!--4-->
|
||||||
<Font name="system" size="18"/>
|
<Font id="system_18" name="system" size="18"/>
|
||||||
<!--5-->
|
<!--5-->
|
||||||
<Font name="system" size="10" bold="true"/>
|
<Font id="system_bold_10" name="system" size="10" bold="true"/>
|
||||||
<!--6-->
|
<!--6-->
|
||||||
<Font name="system" size="12" bold="true"/>
|
<Font id="system_bold_12" name="system" size="12" bold="true"/>
|
||||||
<!--7-->
|
<!--7-->
|
||||||
<Font name="system" size="14" bold="true"/>
|
<Font id="system_bold_14" name="system" size="14" bold="true"/>
|
||||||
<!--8-->
|
<!--8-->
|
||||||
<Font name="system" size="16" bold="true"/>
|
<Font id="system_bold_16" name="system" size="16" bold="true"/>
|
||||||
<!--9-->
|
<!--9-->
|
||||||
<Font name="system" size="18" bold="true"/>
|
<Font id="system_bold_18" name="system" size="18" bold="true"/>
|
||||||
<!--10-->
|
<!--10-->
|
||||||
<Font name="arial" size="10"/>
|
<Font id="arial_10" name="arial" size="10"/>
|
||||||
<!--11-->
|
<!--11-->
|
||||||
<Font name="arial" size="12"/>
|
<Font id="arial_12" name="arial" size="12"/>
|
||||||
<!--12-->
|
<!--12-->
|
||||||
<Font name="arial" size="14"/>
|
<Font id="arial_14" name="arial" size="14"/>
|
||||||
<!--13-->
|
<!--13-->
|
||||||
<Font name="arial" size="16"/>
|
<Font id="arial_16" name="arial" size="16"/>
|
||||||
<!--14-->
|
<!--14-->
|
||||||
<Font name="arial" size="18"/>
|
<Font id="arial_18" name="arial" size="18"/>
|
||||||
<!--15-->
|
<!--15-->
|
||||||
<Font name="arial" size="10" bold="true"/>
|
<Font id="arial_bold_10" name="arial" size="10" bold="true"/>
|
||||||
<!--16-->
|
<!--16-->
|
||||||
<Font name="arial" size="12" bold="true"/>
|
<Font id="arial_bold_12" name="arial" size="12" bold="true"/>
|
||||||
<!--17-->
|
<!--17-->
|
||||||
<Font name="arial" size="14" bold="true"/>
|
<Font id="arial_bold_14" name="arial" size="14" bold="true"/>
|
||||||
<!--18-->
|
<!--18-->
|
||||||
<Font name="arial" size="16" bold="true"/>
|
<Font id="arial_bold_16" name="arial" size="16" bold="true"/>
|
||||||
<!--19-->
|
<!--19-->
|
||||||
<Font name="arial" size="18" bold="true"/>
|
<Font id="arial_bold_18" name="arial" size="18" bold="true"/>
|
||||||
<!--20-->
|
<!--20-->
|
||||||
<Font name="system" size="20"/>
|
<Font id="system_20" name="system" size="20"/>
|
||||||
<!--21-->
|
<!--21-->
|
||||||
<Font name="system" size="20" bold="true"/>
|
<Font id="system_bold_20" name="system" size="20" bold="true"/>
|
||||||
<!--22-->
|
<!--22-->
|
||||||
<Font name="system" size="22"/>
|
<Font id="system_22" name="system" size="22"/>
|
||||||
<!--23-->
|
<!--23-->
|
||||||
<Font name="system" size="22" bold="true"/>
|
<Font id="system_bold_22" name="system" size="22" bold="true"/>
|
||||||
<!--24-->
|
<!--24-->
|
||||||
<Font name="system" size="12" underline="true"/>
|
<Font id="system_underline_12" name="system" size="12" underline="true"/>
|
||||||
<!--25-->
|
<!--25-->
|
||||||
<Font name="system" size="24"/>
|
<Font id="system_24" name="system" size="24"/>
|
||||||
<!--26-->
|
<!--26-->
|
||||||
<Font name="system" size="14" underline="true"/>
|
<Font id="system_underline_14" name="system" size="14" underline="true"/>
|
||||||
<!--27-->
|
<!--27-->
|
||||||
<Font name="system" size="16" underline="true"/>
|
<Font id="system_underline_16" name="system" size="16" underline="true"/>
|
||||||
<!--28-->
|
<!--28-->
|
||||||
<Font name="system" size="32" />
|
<Font id="system_32" name="system" size="32" />
|
||||||
|
|
||||||
<!--一些常规固定颜色-->
|
<!--一些常规固定颜色-->
|
||||||
<TextColor name="white" value="#ffffffff"/>
|
<TextColor name="white" value="#ffffffff"/>
|
||||||
@ -117,76 +117,76 @@
|
|||||||
<TextColor name="color_palette9" value="#ffffffff"/>
|
<TextColor name="color_palette9" value="#ffffffff"/>
|
||||||
|
|
||||||
<!--字体大小-->
|
<!--字体大小-->
|
||||||
<Class name="font_title" value="font="2"" />
|
<Class name="font_title" font="system_14"/>
|
||||||
|
|
||||||
<!--标题栏-->
|
<!--标题栏-->
|
||||||
<Class name="caption" value="height="34" bkimage="file='../public/caption/caption_public.png' corner='0,0,0,1'" padding="10,0,5,0""/>
|
<Class name="caption" height="34" bkimage="file='../public/caption/caption_public.png' corner='0,0,0,1'" padding="10,0,5,0" />
|
||||||
|
|
||||||
<!--滚动条-->
|
<!--滚动条-->
|
||||||
<Class name="vscrollbar" value="width="14" fadealpha="true" thumbnormalimage="file='../public/vscrollbar/thumb_normal.png' corner='0,8,0,8'" thumbhotimage="file='../public/vscrollbar/thumb_hovered.png' corner='0,8,0,8'" bkhotimage="file='../public/vscrollbar/bk_hovered.png' corner='0,4,0,4'" showbutton1="false" showbutton2="false""/>
|
<Class name="vscrollbar" width="14" fadealpha="true" thumbnormalimage="file='../public/vscrollbar/thumb_normal.png' corner='0,8,0,8'" thumbhotimage="file='../public/vscrollbar/thumb_hovered.png' corner='0,8,0,8'" bkhotimage="file='../public/vscrollbar/bk_hovered.png' corner='0,4,0,4'" showbutton1="false" showbutton2="false" />
|
||||||
<Class name="hscrollbar" value="height="14" fadealpha="true" thumbnormalimage="file='../public/hscrollbar/thumb_normal.png' corner='8,0,8,0'" thumbhotimage="file='../public/hscrollbar/thumb_hovered.png' corner='8,0,8,0'" bkhotimage="file='../public/hscrollbar/bk_hovered.png' corner='4,0,4,0'" showbutton1="false" showbutton2="false""/>
|
<Class name="hscrollbar" height="14" fadealpha="true" thumbnormalimage="file='../public/hscrollbar/thumb_normal.png' corner='8,0,8,0'" thumbhotimage="file='../public/hscrollbar/thumb_hovered.png' corner='8,0,8,0'" bkhotimage="file='../public/hscrollbar/bk_hovered.png' corner='4,0,4,0'" showbutton1="false" showbutton2="false"/>
|
||||||
|
|
||||||
<!--单选框-->
|
<!--单选框-->
|
||||||
<Class name="option" value="selectednormalimage="../public/option/selected.png" selectedhotimage="../public/option/selectedhover.png" selectedpushedimage="../public/option/selectedhover.png""/>
|
<Class name="option" selectednormalimage="../public/option/selected.png" selectedhotimage="../public/option/selectedhover.png" selectedpushedimage="../public/option/selectedhover.png"/>
|
||||||
<Class name="circle_option" value="normalimage="../public/option/circle_unselected.png" disabledimage="../public/option/circle_unselected_disabled.png" selectednormalimage="../public/option/circle_selected.png""/>
|
<Class name="circle_option" normalimage="../public/option/circle_unselected.png" disabledimage="../public/option/circle_unselected_disabled.png"/>
|
||||||
<Class name="circle_option_2" value="height="18" textpadding="25,0,0,0" font="1" normaltextcolor="darkcolor" normalimage="file='../public/option/circle_unselected.png' dest='0,0,18,18'" selectednormalimage="file='../public/option/circle_selected.png' dest='0,0,18,18'""/>
|
<Class name="circle_option_2" height="18" textpadding="25,0,0,0" font="system_12" normaltextcolor="darkcolor" normalimage="file='../public/option/circle_unselected.png' dest='0,0,18,18'" selectednormalimage="file='../public/option/circle_selected.png' dest='0,0,18,18'"/>
|
||||||
|
|
||||||
<!--复选框-->
|
<!--复选框-->
|
||||||
<Class name="checkbox_font12" value="height="16" textpadding="20,0,0,0" font="1" normaltextcolor="darkcolor" normalimage="file='../public/CheckBox/check_no.png' dest='0,0,16,16'" disabledimage="file='../public/CheckBox/check_no.png' dest='0,0,16,16' fade='80'" selectednormalimage="file='../public/CheckBox/check_yes.png' dest='0,0,16,16'" selecteddisabledimage="file='../public/CheckBox/check_yes.png' dest='0,0,16,16' fade='80'""/>
|
<Class name="checkbox_font12" height="16" textpadding="20,0,0,0" font="system_12" normaltextcolor="darkcolor" normalimage="file='../public/CheckBox/check_no.png' dest='0,0,16,16'" disabledimage="file='../public/CheckBox/check_no.png' dest='0,0,16,16' fade='80'" selectednormalimage="file='../public/CheckBox/check_yes.png' dest='0,0,16,16'" selecteddisabledimage="file='../public/CheckBox/check_yes.png' dest='0,0,16,16' fade='80'"/>
|
||||||
<Class name="checkbox_font14" value="height="20" textpadding="20,0,0,0" font="2" normaltextcolor="darkcolor" normalimage="file='../public/CheckBox/check_no.png' dest='0,2,16,18'" disabledimage="file='../public/CheckBox/check_no.png' dest='0,2,16,18' fade='80'" selectednormalimage="file='../public/CheckBox/check_yes.png' dest='0,2,16,18'" selecteddisabledimage="file='../public/CheckBox/check_yes.png' dest='0,2,16,18' fade='80'""/>
|
<Class name="checkbox_font14" height="20" textpadding="20,0,0,0" font="system_14" normaltextcolor="darkcolor" normalimage="file='../public/CheckBox/check_no.png' dest='0,2,16,18'" disabledimage="file='../public/CheckBox/check_no.png' dest='0,2,16,18' fade='80'" selectednormalimage="file='../public/CheckBox/check_yes.png' dest='0,2,16,18'" selecteddisabledimage="file='../public/CheckBox/check_yes.png' dest='0,2,16,18' fade='80'"/>
|
||||||
<Class name="checkbox_green" value="normalimage="file='../public/CheckBox/check_green_no.png'" disabledimage="file='../public/CheckBox/check_green_no.png' fade='80'" selectednormalimage="file='../public/CheckBox/check_green_yes.png'" selecteddisabledimage="file='../public/CheckBox/check_green_yes.png' fade='80'""/>
|
<Class name="checkbox_green" normalimage="file='../public/CheckBox/check_green_no.png'" disabledimage="file='../public/CheckBox/check_green_no.png' fade='80'" selectednormalimage="file='../public/CheckBox/check_green_yes.png'" selecteddisabledimage="file='../public/CheckBox/check_green_yes.png' fade='80'"/>
|
||||||
|
|
||||||
<!--按钮-->
|
<!--按钮-->
|
||||||
<Class name="btn_global_blue_80x30" value="font="7" normaltextcolor="white" normalimage="file='../public/button/btn_global_blue_80x30_normal.png'" hotimage="file='../public/button/btn_global_blue_80x30_hovered.png'" pushedimage="file='../public/button/btn_global_blue_80x30_pushed.png'" disabledimage="file='../public/button/btn_global_blue_80x30_normal.png' fade='80'""/>
|
<Class name="btn_global_blue_80x30" font="system_bold_14" normaltextcolor="white" normalimage="file='../public/button/btn_global_blue_80x30_normal.png'" hotimage="file='../public/button/btn_global_blue_80x30_hovered.png'" pushedimage="file='../public/button/btn_global_blue_80x30_pushed.png'" disabledimage="file='../public/button/btn_global_blue_80x30_normal.png' fade='80'"/>
|
||||||
<Class name="btn_global_white_80x30" value="font="7" normaltextcolor="dark_gray" normalimage="file='../public/button/btn_global_white_80x30_normal.png'" hotimage="file='../public/button/btn_global_white_80x30_hovered.png'" pushedimage="file='../public/button/btn_global_white_80x30_pushed.png'" disabledimage="file='../public/button/btn_global_white_80x30_normal.png' fade='128'""/>
|
<Class name="btn_global_white_80x30" font="system_bold_14" normaltextcolor="dark_gray" normalimage="file='../public/button/btn_global_white_80x30_normal.png'" hotimage="file='../public/button/btn_global_white_80x30_hovered.png'" pushedimage="file='../public/button/btn_global_white_80x30_pushed.png'" disabledimage="file='../public/button/btn_global_white_80x30_normal.png' fade='128'"/>
|
||||||
<Class name="btn_global_red_80x30" value="font="7" normaltextcolor="white" normalimage="file='../public/button/btn_global_red_80x30_normal.png'" hotimage="file='../public/button/btn_global_red_80x30_hovered.png'" pushedimage="file='../public/button/btn_global_red_80x30_pushed.png'" disabledimage="file='../public/button/btn_global_red_80x30_normal.png' fade='80'""/>
|
<Class name="btn_global_red_80x30" font="system_bold_14" normaltextcolor="white" normalimage="file='../public/button/btn_global_red_80x30_normal.png'" hotimage="file='../public/button/btn_global_red_80x30_hovered.png'" pushedimage="file='../public/button/btn_global_red_80x30_pushed.png'" disabledimage="file='../public/button/btn_global_red_80x30_normal.png' fade='80'"/>
|
||||||
|
|
||||||
<!--窗口右上角按钮 灰色版 -->
|
<!--窗口右上角按钮 灰色版 -->
|
||||||
<Class name="btn_wnd_min" value="width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_gray_min.png' dest='4,4,16,16'" normalimage="" hotimage="../public/button/btn_wnd_gray_min_hovered.png" pushedimage="../public/button/btn_wnd_gray_min_pushed.png""/>
|
<Class name="btn_wnd_min" width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_gray_min.png' dest='4,4,16,16'" normalimage="" hotimage="../public/button/btn_wnd_gray_min_hovered.png" pushedimage="../public/button/btn_wnd_gray_min_pushed.png"/>
|
||||||
<Class name="btn_wnd_close" value="width="20" height="20" normalimage="file='../public/button/btn_wnd_gray_close.png' dest='4,4,16,16'" hotimage="../public/button/btn_wnd_white_close_hovered.png" pushedimage="../public/button/btn_wnd_white_close_pushed.png" fadehot="false""/>
|
<Class name="btn_wnd_close" width="20" height="20" normalimage="file='../public/button/btn_wnd_gray_close.png' dest='4,4,16,16'" hotimage="../public/button/btn_wnd_white_close_hovered.png" pushedimage="../public/button/btn_wnd_white_close_pushed.png" fadehot="false"/>
|
||||||
<Class name="btn_wnd_max" value="width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_gray_max.png' dest='4,4,16,16'" normalimage="" hotimage="../public/button/btn_wnd_gray_max_hovered.png" pushedimage="../public/button/btn_wnd_gray_max_pushed.png""/>
|
<Class name="btn_wnd_max" width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_gray_max.png' dest='4,4,16,16'" normalimage="" hotimage="../public/button/btn_wnd_gray_max_hovered.png" pushedimage="../public/button/btn_wnd_gray_max_pushed.png"/>
|
||||||
<Class name="btn_wnd_restore" value="width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_gray_restore.png' dest='4,4,16,16'" normalimage="" hotimage="../public/button/btn_wnd_gray_restore_hovered.png" pushedimage="../public/button/btn_wnd_gray_restore_pushed.png""/>
|
<Class name="btn_wnd_restore" width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_gray_restore.png' dest='4,4,16,16'" normalimage="" hotimage="../public/button/btn_wnd_gray_restore_hovered.png" pushedimage="../public/button/btn_wnd_gray_restore_pushed.png"/>
|
||||||
<Class name="btn_wnd_settings" value="width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_settings.png' source='1,1,21,21'" hotimage="../public/button/btn_wnd_bk_hovered.png" pushedimage="../public/button/btn_wnd_bk_pushed.png""/>
|
<Class name="btn_wnd_settings" width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_settings.png' source='1,1,21,21'" hotimage="../public/button/btn_wnd_bk_hovered.png" pushedimage="../public/button/btn_wnd_bk_pushed.png"/>
|
||||||
|
|
||||||
<!--窗口右上角按钮 白色版 -->
|
<!--窗口右上角按钮 白色版 -->
|
||||||
<Class name="btn_wnd_white_min" value="width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_white_min.png'" normalimage="" hotimage="../public/button/btn_wnd_white_min_hovered.png" pushedimage="../public/button/btn_wnd_white_min_pushed.png""/>
|
<Class name="btn_wnd_white_min" width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_white_min.png'" normalimage="" hotimage="../public/button/btn_wnd_white_min_hovered.png" pushedimage="../public/button/btn_wnd_white_min_pushed.png"/>
|
||||||
<Class name="btn_wnd_white_close" value="width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_white_close.png'" normalimage="" hotimage="../public/button/btn_wnd_white_close_hovered.png" pushedimage="../public/button/btn_wnd_white_close_pushed.png""/>
|
<Class name="btn_wnd_white_close" width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_white_close.png'" normalimage="" hotimage="../public/button/btn_wnd_white_close_hovered.png" pushedimage="../public/button/btn_wnd_white_close_pushed.png"/>
|
||||||
<Class name="btn_wnd_white_max" value="width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_white_max.png' dest='4,4,16,16'" normalimage="" hotimage="../public/button/btn_wnd_white_max_hovered.png" pushedimage="../public/button/btn_wnd_white_max_pushed.png""/>
|
<Class name="btn_wnd_white_max" width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_white_max.png' dest='4,4,16,16'" normalimage="" hotimage="../public/button/btn_wnd_white_max_hovered.png" pushedimage="../public/button/btn_wnd_white_max_pushed.png"/>
|
||||||
<Class name="btn_wnd_white_menu" value="width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_white_menu.png' dest='4,5,16,15'" normalimage="" hotimage="../public/button/btn_wnd_white_menu_hovered.png" pushedimage="../public/button/btn_wnd_white_menu_pushed.png""/>
|
<Class name="btn_wnd_white_menu" width="auto" height="auto" forenormalimage="file='../public/button/btn_wnd_white_menu.png' dest='4,5,16,15'" normalimage="" hotimage="../public/button/btn_wnd_white_menu_hovered.png" pushedimage="../public/button/btn_wnd_white_menu_pushed.png"/>
|
||||||
|
|
||||||
<!--删除按钮通用样式-->
|
<!--删除按钮通用样式-->
|
||||||
<Class name="btn_delete" value="normalimage="file='../public/button/funcicon.png' source='0,0,26,26'" hotimage="file='../public/button/funcicon.png' source='31,0,57,26'" pushedimage="file='../public/button/funcicon.png' source='62,0,88,26'" disabledimage="file='../public/button/funcicon.png' source='93,0,119,26'""/>
|
<Class name="btn_delete" normalimage="file='../public/button/funcicon.png' source='0,0,26,26'" hotimage="file='../public/button/funcicon.png' source='31,0,57,26'" pushedimage="file='../public/button/funcicon.png' source='62,0,88,26'" disabledimage="file='../public/button/funcicon.png' source='93,0,119,26'"/>
|
||||||
<Class name="btn_recycle" value="width="auto" height="auto" normalimage="file='../public/button/btn_recycle_normal.png'" hotimage="file='../public/button/btn_recycle_hovered.png'" pushedimage="file='../public/button/btn_recycle_pushed.png'" disabledimage="file='../public/button/btn_recycle_normal.png' fade='80'""/>
|
<Class name="btn_recycle" width="auto" height="auto" normalimage="file='../public/button/btn_recycle_normal.png'" hotimage="file='../public/button/btn_recycle_hovered.png'" pushedimage="file='../public/button/btn_recycle_pushed.png'" disabledimage="file='../public/button/btn_recycle_normal.png' fade='80'"/>
|
||||||
<Class name="btn_refresh" value="width="auto" height="auto" normalimage="file='../public/button/btn_refresh_normal.png'" hotimage="file='../public/button/btn_refresh_hovered.png'" pushedimage="file='../public/button/btn_refresh_pushed.png'" disabledimage="file='../public/button/btn_refresh_normal.png' fade='80'""/>
|
<Class name="btn_refresh" width="auto" height="auto" normalimage="file='../public/button/btn_refresh_normal.png'" hotimage="file='../public/button/btn_refresh_hovered.png'" pushedimage="file='../public/button/btn_refresh_pushed.png'" disabledimage="file='../public/button/btn_refresh_normal.png' fade='80'"/>
|
||||||
<Class name="btn_del_search" value="normalimage="../public/button/btn_del_search_normal_gray.png" hotimage="../public/button/btn_del_search_hover_gray.png" pushedimage="../public/button/btn_del_search_pushed_gray.png""/>
|
<Class name="btn_del_search" normalimage="../public/button/btn_del_search_normal_gray.png" hotimage="../public/button/btn_del_search_hover_gray.png" pushedimage="../public/button/btn_del_search_pushed_gray.png"/>
|
||||||
|
|
||||||
<!--列表通用样式-->
|
<!--列表通用样式-->
|
||||||
<Class name="list" value="bkcolor="bk_wnd_lightcolor" vscrollbar="true""/>
|
<Class name="list" bkcolor="bk_wnd_lightcolor" vscrollbar="true"/>
|
||||||
<Class name="listitem" value="hotcolor="bk_listitem_hovered" pushedcolor="bk_listitem_selected" selectednormalcolor="bk_listitem_selected" fadehot="false""/>
|
<Class name="listitem" hotcolor="bk_listitem_hovered" pushedcolor="bk_listitem_selected" selectednormalcolor="bk_listitem_selected" fadehot="false"/>
|
||||||
<Class name="list_topitem" value="normalcolor="bk_topitem_normal" hotcolor="bk_topitem_hovered" pushedcolor="bk_topitem_selected" selectednormalcolor="bk_topitem_selected" fadehot="false""/>
|
<Class name="list_topitem" normalcolor="bk_topitem_normal" hotcolor="bk_topitem_hovered" pushedcolor="bk_topitem_selected" selectednormalcolor="bk_topitem_selected" fadehot="false"/>
|
||||||
|
|
||||||
<!--进度条通用样式-->
|
<!--进度条通用样式-->
|
||||||
<Class name="progress_blue" value="valign="center" value="0" bkimage="../public/progress/progress_blue_bg.png" height="3" width="stretch" hor="true" max="100" min="0" progressimage="../public/progress/progress_blue_fg.png""/>
|
<Class name="progress_blue" valign="center" value="0" bkimage="../public/progress/progress_blue_bg.png" height="3" width="stretch" hor="true" max="100" min="0" progressimage="../public/progress/progress_blue_fg.png"/>
|
||||||
<Class name="slider_green" value="width="stretch" height="14" margin="4,0,0,0" valign="center" thumbsize="14,14" min="0" max="255" progressbarpadding="0,6,0,6" bkimage="file='../public/slider/slider_hor_bk.png' dest='0,6,1000,8'" progresscolor="bk_progress_progress" thumbnormalimage="../public/slider/slider_thumb.png""/>
|
<Class name="slider_green" width="stretch" height="14" margin="4,0,0,0" valign="center" thumbsize="14,14" min="0" max="255" progressbarpadding="0,6,0,6" bkimage="file='../public/slider/slider_hor_bk.png' dest='0,6,1000,8'" progresscolor="bk_progress_progress" thumbnormalimage="../public/slider/slider_thumb.png"/>
|
||||||
|
|
||||||
<!--菜单通用样式-->
|
<!--菜单通用样式-->
|
||||||
<Class name="menu" value="width="auto" height="auto" bkcolor="bk_wnd_lightcolor""/>
|
<Class name="menu" width="auto" height="auto" bkcolor="bk_wnd_lightcolor"/>
|
||||||
<Class name="menu_element" value="padding="20,0,20,0" height="40" hotcolor="bk_menuitem_hovered" pushedcolor="bk_menuitem_selected" selectednormalcolor="bk_menuitem_selected""/>
|
<Class name="menu_element" padding="20,0,20,0" height="40" hotcolor="bk_menuitem_hovered" pushedcolor="bk_menuitem_selected" selectednormalcolor="bk_menuitem_selected"/>
|
||||||
<Class name="menu_text" value="normaltextcolor="darkcolor" font="2" valign="center""/>
|
<Class name="menu_text" normaltextcolor="darkcolor" font="system_14" valign="center"/>
|
||||||
|
|
||||||
<!--分割线通用样式-->
|
<!--分割线通用样式-->
|
||||||
<Class name="splitline_hor_level1" value="bkcolor="splitline_level1" height="1""/>
|
<Class name="splitline_hor_level1" bkcolor="splitline_level1" height="1"/>
|
||||||
<Class name="splitline_hor_level2" value="bkcolor="splitline_level2" height="1""/>
|
<Class name="splitline_hor_level2" bkcolor="splitline_level2" height="1"/>
|
||||||
<Class name="splitline_ver_level1" value="bkcolor="splitline_level1" width="1""/>
|
<Class name="splitline_ver_level1" bkcolor="splitline_level1" width="1"/>
|
||||||
|
|
||||||
<!--富文本控件通用样式-->
|
<!--富文本控件通用样式-->
|
||||||
<Class name="simple" value="multiline="false" autohscroll="true" wantreturnmsg="true" wanttab="false" rich="false" normaltextcolor="darkcolor" disabledtextcolor="textdefaultdisablecolor""/>
|
<Class name="simple" multiline="false" autohscroll="true" wantreturnmsg="true" wanttab="false" rich="false" normaltextcolor="darkcolor" disabledtextcolor="textdefaultdisablecolor"/>
|
||||||
<Class name="prompt" value="promptmode="true" promptcolor="light_gray""/>
|
<Class name="prompt" promptmode="true" promptcolor="light_gray"/>
|
||||||
<Class name="edit" value="hotimage="file='../public/edit/edit1.png' corner='10,10,10,10'" focusedimage="file='../public/edit/edit2.png' corner='10,10,10,10'""/>
|
<Class name="edit" hotimage="file='../public/edit/edit1.png' corner='10,10,10,10'" focusedimage="file='../public/edit/edit2.png' corner='10,10,10,10'"/>
|
||||||
<Class name="input" value="normalimage="file='../public/edit/edit0.png' corner='10,10,10,10'" hotimage="file='../public/edit/edit0.png' corner='10,10,10,10'" focusedimage="file='../public/edit/edit0.png' corner='10,10,10,10'" disabledimage="file='../public/edit/edit0.png' corner='10,10,10,10' fade='80'""/>
|
<Class name="input" normalimage="file='../public/edit/edit0.png' corner='10,10,10,10'" hotimage="file='../public/edit/edit0.png' corner='10,10,10,10'" focusedimage="file='../public/edit/edit0.png' corner='10,10,10,10'" disabledimage="file='../public/edit/edit0.png' corner='10,10,10,10' fade='80'"/>
|
||||||
|
|
||||||
<!--头像蒙版-->
|
<!--头像蒙版-->
|
||||||
<Class name="icon_headimage_mask_40x40" value="width="40" height="40" bkimage="../public/headmask/icon_headimage_mask_40x40_normal.png""/>
|
<Class name="icon_headimage_mask_40x40" width="40" height="40" bkimage="../public/headmask/icon_headimage_mask_40x40_normal.png"/>
|
||||||
|
|
||||||
|
|
||||||
</Global>
|
</Global>
|
@ -14,33 +14,33 @@
|
|||||||
</HBox>
|
</HBox>
|
||||||
<HBox height="auto">
|
<HBox height="auto">
|
||||||
<Control />
|
<Control />
|
||||||
<Button name="register_account" margin="0,5,15,10" halign="right" text="注册" cursortype="hand" font="24" normaltextcolor="link_green"/>
|
<Button name="register_account" margin="0,5,15,10" halign="right" text="注册" cursortype="hand" font="system_underline_12" normaltextcolor="link_green"/>
|
||||||
<Button name="enter_login" margin="0,5,15,10" halign="right" text="直接登录" cursortype="hand" font="24" normaltextcolor="link_green" visible="false"/>
|
<Button name="enter_login" margin="0,5,15,10" halign="right" text="直接登录" cursortype="hand" font="system_underline_12" normaltextcolor="link_green" visible="false"/>
|
||||||
</HBox>
|
</HBox>
|
||||||
<!--帐号和密码-->
|
<!--帐号和密码-->
|
||||||
<VBox name="enter_panel" width="240" height="auto" margin="20,0,20,0" bkimage="user_password.png">
|
<VBox name="enter_panel" width="240" height="auto" margin="20,0,20,0" bkimage="user_password.png">
|
||||||
<HBox height="41" padding="14,1,10,0">
|
<HBox height="41" padding="14,1,10,0">
|
||||||
<Control name="usericon" width="16" height="16" valign="center" normalimage="user_1.png" disabledimage="user_2.png"/>
|
<Control name="usericon" width="16" height="16" valign="center" normalimage="user_1.png" disabledimage="user_2.png"/>
|
||||||
<RichEdit class="simple prompt" name="username" width="stretch" height="auto" margin="10,0,10,0" valign="center" font="2" prompttext="帐号"/>
|
<RichEdit class="simple prompt" name="username" width="stretch" height="auto" margin="10,0,10,0" valign="center" font="system_14" prompttext="帐号"/>
|
||||||
</HBox>
|
</HBox>
|
||||||
<HBox name="nick_name_panel" height="40" padding="14,1,0,0" visible="false" margin="0,0,0,0">
|
<HBox name="nick_name_panel" height="40" padding="14,1,0,0" visible="false" margin="0,0,0,0">
|
||||||
<Control name="nick_name_icon" width="16" height="16" valign="center" normalimage="nickname.png" disabledimage="nickname.png"/>
|
<Control name="nick_name_icon" width="16" height="16" valign="center" normalimage="nickname.png" disabledimage="nickname.png"/>
|
||||||
<RichEdit class="simple prompt" name="nickname" width="stretch" height="auto" margin="10,0,10,0" valign="center" font="2" prompttext="昵称"/>
|
<RichEdit class="simple prompt" name="nickname" width="stretch" height="auto" margin="10,0,10,0" valign="center" font="system_14" prompttext="昵称"/>
|
||||||
</HBox>
|
</HBox>
|
||||||
<HBox height="41" padding="14,0,10,1" margin="0,2,0,0">
|
<HBox height="41" padding="14,0,10,1" margin="0,2,0,0">
|
||||||
<Control name="passwordicon" width="16" height="16" valign="center" normalimage="password_1.png" disabledimage="password_2.png"/>
|
<Control name="passwordicon" width="16" height="16" valign="center" normalimage="password_1.png" disabledimage="password_2.png"/>
|
||||||
<RichEdit class="simple prompt" name="password" width="stretch" height="auto" margin="10,0,10,0" valign="center" font="2" password="true" prompttext="密码"/>
|
<RichEdit class="simple prompt" name="password" width="stretch" height="auto" margin="10,0,10,0" valign="center" font="system_14" password="true" prompttext="密码"/>
|
||||||
</HBox>
|
</HBox>
|
||||||
</VBox>
|
</VBox>
|
||||||
</VBox>
|
</VBox>
|
||||||
<!--登录提示-->
|
<!--登录提示-->
|
||||||
<Label name="login_ing_tip" margin="20,20,20,0" font="1" text="正在登录..." visible="false"/>
|
<Label name="login_ing_tip" margin="20,20,20,0" font="system_12" text="正在登录..." visible="false"/>
|
||||||
<Label name="login_error_tip" margin="20,20,20,0" font="1" normaltextcolor="obvious_tip" visible="false"/>
|
<Label name="login_error_tip" margin="20,20,20,0" font="system_12" normaltextcolor="obvious_tip" visible="false"/>
|
||||||
<!--登录和取消按钮-->
|
<!--登录和取消按钮-->
|
||||||
<Box width="240" height="40" margin="20,20,20,20">
|
<Box width="240" height="40" margin="20,20,20,20">
|
||||||
<Button class="btn_global_blue_80x30" name="btn_login" width="240" height="40" font="8" text="登录"/>
|
<Button class="btn_global_blue_80x30" name="btn_login" width="240" height="40" font="system_bold_16" text="登录"/>
|
||||||
<Button class="btn_global_blue_80x30" name="btn_register" width="240" height="40" font="8" text="注册" visible="false"/>
|
<Button class="btn_global_blue_80x30" name="btn_register" width="240" height="40" font="system_bold_16" text="注册" visible="false"/>
|
||||||
<Button class="btn_global_red_80x30" name="btn_cancel" width="240" height="40" font="8" text="取消登录" visible="false"/>
|
<Button class="btn_global_red_80x30" name="btn_cancel" width="240" height="40" font="system_bold_16" text="取消登录" visible="false"/>
|
||||||
</Box>
|
</Box>
|
||||||
</VBox>
|
</VBox>
|
||||||
</Box>
|
</Box>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<!-- 好友列表 -->
|
<!-- 好友列表 -->
|
||||||
<VBox width="270" bkcolor="light_gray">
|
<VBox width="270" bkcolor="light_gray">
|
||||||
<Box padding="10,8,10,8" height="auto">
|
<Box padding="10,8,10,8" height="auto">
|
||||||
<RichEdit class="simple prompt input" name="nickname" width="stretch" height="35" padding="25,8,8,8" font="1" borderround="5,5" prompttext="搜索"/>
|
<RichEdit class="simple prompt input" name="nickname" width="stretch" height="35" padding="25,8,8,8" borderround="5,5" prompttext="搜索"/>
|
||||||
<Control width="auto" height="auto" margin="6,9" bkimage="search_icon.png"/>
|
<Control width="auto" height="auto" margin="6,9" bkimage="search_icon.png"/>
|
||||||
</Box>
|
</Box>
|
||||||
<VBox>
|
<VBox>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<Button class="btn_wnd_close" name="closebtn" margin="10,6,0,0"/>
|
<Button class="btn_wnd_close" name="closebtn" margin="10,6,0,0"/>
|
||||||
</HBox>
|
</HBox>
|
||||||
|
|
||||||
<RichEdit name="content" width="300" margin="20,30,20,30" font="3" multiline="true" vscrollbar="false" autovscroll="false" enabled="false" rich="true"/>
|
<RichEdit name="content" width="300" margin="20,30,20,30" font="system_16" multiline="true" vscrollbar="false" autovscroll="false" enabled="false" rich="true"/>
|
||||||
|
|
||||||
<HBox height="auto" margin="0,0,20,20" childmargin="10">
|
<HBox height="auto" margin="0,0,20,20" childmargin="10">
|
||||||
<Control />
|
<Control />
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
</HBox>
|
</HBox>
|
||||||
|
|
||||||
<HBox height="30" margin="10,2,10,2" childmargin="3">
|
<HBox height="30" margin="10,2,10,2" childmargin="3">
|
||||||
<Button class="btn_global_blue_80x30" name="btn_back" width="50" height="30" textid="STRID_CEF_BROWSER_BACKWARD" valign="center" font="1" />
|
<Button class="btn_global_blue_80x30" name="btn_back" width="50" height="30" textid="STRID_CEF_BROWSER_BACKWARD" valign="center" font="system_12" />
|
||||||
<Button class="btn_global_blue_80x30" name="btn_forward" width="50" height="30" textid="STRID_CEF_BROWSER_FORWARD" valign="center" font="1" />
|
<Button class="btn_global_blue_80x30" name="btn_forward" width="50" height="30" textid="STRID_CEF_BROWSER_FORWARD" valign="center" font="system_12" />
|
||||||
<Button class="btn_global_blue_80x30" name="btn_refresh" width="50" height="30" textid="STRID_CEF_BROWSER_REFRESH" valign="center" font="1" />
|
<Button class="btn_global_blue_80x30" name="btn_refresh" width="50" height="30" textid="STRID_CEF_BROWSER_REFRESH" valign="center" font="system_12" />
|
||||||
<RichEdit class="simple prompt" name="edit_url" width="400" height="30" padding="5,2,5,0" valign="center"
|
<RichEdit class="simple prompt" name="edit_url" width="400" height="30" padding="5,2,5,0" valign="center"
|
||||||
bordercolor="gray" bordersize="1" font="2" prompttextid="STRID_CEF_BROWSER_INPUT_ADDRESS" vscrollbar="false" autovscroll="false" hscrollbar="false" autohscroll="true" wantreturnmsg="true" />
|
bordercolor="gray" bordersize="1" font="system_14" prompttextid="STRID_CEF_BROWSER_INPUT_ADDRESS" vscrollbar="false" autovscroll="false" hscrollbar="false" autohscroll="true" wantreturnmsg="true" />
|
||||||
<!-- 顶部标签列表 -->
|
<!-- 顶部标签列表 -->
|
||||||
<HListBox class="list" name="tab_list" >
|
<HListBox class="list" name="tab_list" >
|
||||||
<Button class="btn_global_blue_80x30" name="btn_add" text="+" width="20" height="20" valign="center" font="3" />
|
<Button class="btn_global_blue_80x30" name="btn_add" text="+" width="20" height="20" valign="center" font="system_16" />
|
||||||
</HListBox>
|
</HListBox>
|
||||||
</HBox>
|
</HBox>
|
||||||
<Control class="splitline_hor_level1" margin="0,0,0,0" />
|
<Control class="splitline_hor_level1" margin="0,0,0,0" />
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<Control name="tab_item_icon" width="38" height="38" borderround="38,38,38,38" margin="1,1,0,0"/>
|
<Control name="tab_item_icon" width="38" height="38" borderround="38,38,38,38" margin="1,1,0,0"/>
|
||||||
<Control class="icon_headimage_mask_40x40"/>
|
<Control class="icon_headimage_mask_40x40"/>
|
||||||
</Box>
|
</Box>
|
||||||
<Label name="tab_item_name" width="stretch" valign="center" font="1" mouse="false"/>
|
<Label name="tab_item_name" width="stretch" valign="center" font="system_12" mouse="false"/>
|
||||||
|
|
||||||
<Box width="auto" height="auto" float="true" halign="right" valign="center">
|
<Box width="auto" height="auto" float="true" halign="right" valign="center">
|
||||||
<Button class="btn_del_search" name="tab_item_close" width="16" height="16" halign="center" valign="center" visible="false"/>
|
<Button class="btn_del_search" name="tab_item_close" width="16" height="16" halign="center" valign="center" visible="false"/>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<Window size="400,600" caption="0,0,0,35">
|
<Window size="400,600" caption="0,0,0,35">
|
||||||
<VBox bkcolor="bk_wnd_darkcolor">
|
<VBox bkcolor="bk_wnd_darkcolor">
|
||||||
<HBox width="stretch" height="35" bkcolor="bk_wnd_lightcolor">
|
<HBox width="stretch" height="35" bkcolor="bk_wnd_lightcolor">
|
||||||
<Label text="自定义列表示例" font="2" valign="center" margin="8"/>
|
<Label text="自定义列表示例" font="system_14" valign="center" margin="8"/>
|
||||||
<Control />
|
<Control />
|
||||||
<Button class="btn_wnd_min" name="minbtn" margin="4,6,0,0"/>
|
<Button class="btn_wnd_min" name="minbtn" margin="4,6,0,0"/>
|
||||||
<Box width="21" margin="4,6,0,0">
|
<Box width="21" margin="4,6,0,0">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Window size="340,180" caption="0,0,0,600" shadowattached="false" custom_shadow="10,10,10,10">
|
<Window size="340,180" caption="0,0,0,600" shadowattached="false" custom_shadow="10,10,10,10">
|
||||||
<Box width="340" height="auto" bkimage="file='win_bg.png' corner='15,15,15,15'">
|
<Box width="340" height="auto" bkimage="file='win_bg.png' corner='15,15,15,15'">
|
||||||
<RichEdit name="content" width="300" minheight="30" margin="20,20,20,20" font="2" multiline="true" vscrollbar="false" autovscroll="false" enabled="false" rich="false" mouse="false" disabledtextcolor="light_gray"/>
|
<RichEdit name="content" width="300" minheight="30" margin="20,20,20,20" font="system_14" multiline="true" vscrollbar="false" autovscroll="false" enabled="false" rich="false" mouse="false" disabledtextcolor="light_gray"/>
|
||||||
<Button name="close_btn" width="25" height="24" valign="top" halign="right" visible="false" normalimage="file='close.png' source='0,0,24,24'" hotimage="file='close.png' source='25,0,49,24'" pushedimage="file='close.png' source='50,0,74,24'" disabledimage="file='close.png' source='75,0,99,24'"/>
|
<Button name="close_btn" width="25" height="24" valign="top" halign="right" visible="false" normalimage="file='close.png' source='0,0,24,24'" hotimage="file='close.png' source='25,0,49,24'" pushedimage="file='close.png' source='50,0,74,24'" disabledimage="file='close.png' source='75,0,99,24'"/>
|
||||||
</Box>
|
</Box>
|
||||||
</Window>
|
</Window>
|
@ -15,6 +15,7 @@ GlobalManager::MapStringToImagePtr GlobalManager::m_mImageHash;
|
|||||||
std::map<std::wstring, DWORD> GlobalManager::m_mapTextColor;
|
std::map<std::wstring, DWORD> GlobalManager::m_mapTextColor;
|
||||||
std::map<std::wstring, std::wstring> GlobalManager::m_mGlobalClass;
|
std::map<std::wstring, std::wstring> GlobalManager::m_mGlobalClass;
|
||||||
std::map<std::wstring, TFontInfo*> GlobalManager::m_mCustomFonts;
|
std::map<std::wstring, TFontInfo*> GlobalManager::m_mCustomFonts;
|
||||||
|
std::wstring GlobalManager::m_sDefaultFontId;
|
||||||
|
|
||||||
short GlobalManager::m_H = 180;
|
short GlobalManager::m_H = 180;
|
||||||
short GlobalManager::m_S = 100;
|
short GlobalManager::m_S = 100;
|
||||||
@ -366,7 +367,7 @@ void GlobalManager::RemoveAllImages()
|
|||||||
m_mImageHash.clear();
|
m_mImageHash.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
HFONT GlobalManager::AddFont(const std::wstring& strFontId, const std::wstring& strFontName, int nSize, bool bBold, bool bUnderline, bool bItalic)
|
HFONT GlobalManager::AddFont(const std::wstring& strFontId, const std::wstring& strFontName, int nSize, bool bBold, bool bUnderline, bool bItalic, bool bDefault)
|
||||||
{
|
{
|
||||||
std::wstring strNewFontId = strFontId;
|
std::wstring strNewFontId = strFontId;
|
||||||
if (strNewFontId.empty())
|
if (strNewFontId.empty())
|
||||||
@ -406,21 +407,21 @@ HFONT GlobalManager::AddFont(const std::wstring& strFontId, const std::wstring&
|
|||||||
|
|
||||||
m_mCustomFonts.insert(std::make_pair(strNewFontId, pFontInfo));
|
m_mCustomFonts.insert(std::make_pair(strNewFontId, pFontInfo));
|
||||||
|
|
||||||
|
if (bDefault) m_sDefaultFontId = strNewFontId;
|
||||||
|
|
||||||
return hFont;
|
return hFont;
|
||||||
}
|
}
|
||||||
|
|
||||||
TFontInfo* GlobalManager::GetTFontInfo(const std::wstring& strFontId)
|
TFontInfo* GlobalManager::GetTFontInfo(const std::wstring& strFontId)
|
||||||
{
|
{
|
||||||
if (strFontId.empty())
|
std::wstring strFindId = strFontId;
|
||||||
|
if (strFindId.empty())
|
||||||
{
|
{
|
||||||
for (auto it = m_mCustomFonts.begin(); it != m_mCustomFonts.end(); it++)
|
ASSERT(!m_sDefaultFontId.empty());
|
||||||
{
|
strFindId = m_sDefaultFontId;
|
||||||
return it->second;
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto iter = m_mCustomFonts.find(strFontId);
|
auto iter = m_mCustomFonts.find(strFindId);
|
||||||
ASSERT(iter != m_mCustomFonts.end());
|
ASSERT(iter != m_mCustomFonts.end());
|
||||||
|
|
||||||
TFontInfo* pFontInfo = static_cast<TFontInfo*>(iter->second);
|
TFontInfo* pFontInfo = static_cast<TFontInfo*>(iter->second);
|
||||||
|
@ -206,9 +206,10 @@ public:
|
|||||||
* @param[in] bBold 是否粗体
|
* @param[in] bBold 是否粗体
|
||||||
* @param[in] bUnderline 是否有下划线
|
* @param[in] bUnderline 是否有下划线
|
||||||
* @param[in] bItalic 是否倾斜
|
* @param[in] bItalic 是否倾斜
|
||||||
|
* @param[in] bDefault 是否默认
|
||||||
* @return 返回字体的 HFONT 句柄
|
* @return 返回字体的 HFONT 句柄
|
||||||
*/
|
*/
|
||||||
static HFONT AddFont(const std::wstring& strFontId, const std::wstring& strFontName, int nSize, bool bBold, bool bUnderline, bool bItalic);
|
static HFONT AddFont(const std::wstring& strFontId, const std::wstring& strFontName, int nSize, bool bBold, bool bUnderline, bool bItalic, bool bDefault);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 根据索引返回一个字体信息
|
* @brief 根据索引返回一个字体信息
|
||||||
@ -459,6 +460,8 @@ private:
|
|||||||
static std::map<std::wstring, std::wstring> m_mGlobalClass;
|
static std::map<std::wstring, std::wstring> m_mGlobalClass;
|
||||||
static std::map<std::wstring, TFontInfo*> m_mCustomFonts;
|
static std::map<std::wstring, TFontInfo*> m_mCustomFonts;
|
||||||
|
|
||||||
|
static std::wstring m_sDefaultFontId;
|
||||||
|
|
||||||
static short m_H;
|
static short m_H;
|
||||||
static short m_S;
|
static short m_S;
|
||||||
static short m_L;
|
static short m_L;
|
||||||
|
@ -199,6 +199,7 @@ Box* WindowBuilder::Create(CreateControlCallback pCallback, Window* pManager, Bo
|
|||||||
bool bold = false;
|
bool bold = false;
|
||||||
bool underline = false;
|
bool underline = false;
|
||||||
bool italic = false;
|
bool italic = false;
|
||||||
|
bool isDefault = false;
|
||||||
for( int i = 0; i < nAttributes; i++ ) {
|
for( int i = 0; i < nAttributes; i++ ) {
|
||||||
strName = node.GetAttributeName(i);
|
strName = node.GetAttributeName(i);
|
||||||
strValue = node.GetAttributeValue(i);
|
strValue = node.GetAttributeValue(i);
|
||||||
@ -222,11 +223,11 @@ Box* WindowBuilder::Create(CreateControlCallback pCallback, Window* pManager, Bo
|
|||||||
italic = (strValue == _T("true"));
|
italic = (strValue == _T("true"));
|
||||||
}
|
}
|
||||||
else if( strName == _T("default") ) {
|
else if( strName == _T("default") ) {
|
||||||
ASSERT(FALSE);//·ÏÆú
|
isDefault = (strValue == _T("true"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( !strFontName.empty() ) {
|
if( !strFontName.empty() ) {
|
||||||
GlobalManager::AddFont(strFontId, strFontName, size, bold, underline, italic);
|
GlobalManager::AddFont(strFontId, strFontName, size, bold, underline, italic, isDefault);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if( strClass == _T("Class") ) {
|
else if( strClass == _T("Class") ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user