讲解的很详细,便于资鉴。谢谢! |
ali88home 发表于 2014-2-6 01:13 谢谢,下载后学习一下,搞不懂时再向你请教! |
qj_tzy 发表于 2014-1-29 09:51 制作方法加上了,看看吧!COPY就好了 |
本帖最后由 shan 于 2014-2-6 13:38 编辑 学习中,如果菜单界面优化一下就完美了 |
本帖最后由 ali88home 于 2014-2-27 11:07 编辑 菜单说明:winly/winly.cfg #倒计时 set timeout=10 #菜单启动项 set default="6" #加载unicode字体显示中文 loadfont ($root)/grub/unicode.pf2 #set locale_dir=($root)/grub/locale #set lang=zh_CN (这个zh_CN字形设定,我想是多余的,一加载unicode.pf2,连正\简体都支持了。 而这个winly模板已经内置了,留着外置字形可以用到) #设置分辨率 set gfxmode=1024x768 terminal_output gfxterm background_color 0,151,204 (而这个winly模板已经内置了auto,留着外置可以用到) # 背景图设定 insmod jpeg if background_image ($root)/winly/background.jpg; then true else set menu_color_normal=white/black set menu_color_highlight=black/light-gray if background_color 44,0,30; then clear fi fi #界面设定 insmod gfxmenu insmod png set theme=($root)/winly/themes/winly/theme.txt export theme ########## ########## ........ 接下来说明:界面设定 set theme=($root)/winly/themes/winly/theme.txt # UEFI Ubuntu 13.04 GRUB2 theme #message-bg-color: "#000000" 或 "0,0,0" 或 black 颜色设定方式 title-text: "" # 背景图设定 desktop-image: "wallpaper.png" # 屏幕编辑图框 terminal-box: "terminal_*.png" #terminal-font: "Gnu Unifont Mono Regular 16" # 标签设定 + label { top = 7%+20 width =100% align = center color = "255,0,0" font = "DejaVu Sans Regular 14" text = "UEFI GRUB2 OS selection" } # 启动条 + progress_bar { id = "__timeout__" left = 35% top = 68%+5 height = 20 width = 7% font = "DejaVu Sans Regular 12" text_color = "#333333" text = "选项将在 %d 秒后执行..." bar_style = "progress_*.png" highlight_style = "progress_highlight_*.png" } # 菜单框设定 + boot_menu { left = 31% width = 68% top = 12% height = 60% # menu_pixmap_style = "boot_menu_*.png" item_font = "DejaVu Sans Bold 14" item_color = "255,0,0" item_height = 38 item_icon_space = 8 item_spacing = 2 selected_item_font = "DejaVu Sans Bold 14" selected_item_color= "255,255,255" # selected_item_pixmap_style = "select_*.png" # icon_height = 48 # icon_width = 48 # icon_spacing = 25 # scrollbar = true # scrollbar_width = 3 # scrollbar_thumb = "slider_*.png" } # 这里是广告图片. + image { top = 90%-5 left = 75%+5 width = 172 hight = 68 file = "13.04.png" } # + image { # top = 5% # left = 20% # width = 300 # hight = 80 # file = "ad2.png" #} # The navigation instructions说明指令 + vbox { left = 1% top = 88% + label { text = "-按 'c' 进入程序命令行" color = "173,169,165" font = "DejaVu Sans Regular 12" } + label { text = "-按 'e' 键编辑所选菜单的命令行" color = "173,169,165" font = "DejaVu Sans Regular 12" } + label { text = "-按上下键选择高亮菜单,按回车键启动" color = "173,169,165" font = "DejaVu Sans Regular 12" } } ........ |
感谢分享! |
看看先!!!!!! |
我好奇 |
效果看着不错,学习学习 |
学习一下,,,谢谢分享。。。。 |
这么好的教程没人顶起?可惜了! |
不错,顶起。虽然很基础 |
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.