无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
123
返回列表 发新帖
楼主: try_catch
打印 上一主题 下一主题

[分享] 主界面 增加提示信息以及图标。【已上传附件】

    [复制链接]
61#
 楼主| 发表于 2025-2-26 15:28:35 | 只看该作者
pdscjf 发表于 2025-2-24 12:04
没有权限下载附件…能不能给个网盘?我把侧边代码复制到配置文件,启动不了,错误
  1. # Global properties
  2. title-text: ""
  3. desktop-image: "background.png"
  4. desktop-color: "#000000"
  5. terminal-font: "Fixedsys Regular 32"
  6. terminal-box: "terminal_box_*.png"
  7. terminal-left: "30%"
  8. terminal-top: "23%"
  9. terminal-width: "60%"
  10. terminal-height: "60%"
  11. terminal-border: "0"

  12. # Boot menu
  13. + boot_menu {
  14.   left = 30%
  15.   top = 23%
  16.   width = 60%
  17.   height = 60%
  18.   item_font = "Fixedsys Regular 32"
  19.   item_color = "#67d97a"
  20.   selected_item_color = "#ffffff"
  21.   item_height = 48
  22.   item_spacing = 8
  23.   item_icon_space = 12
  24.   item_pixmap_style = "item_*.png"
  25.   selected_item_pixmap_style = "selected_item_*.png"
  26. }

  27. + hbox {
  28.     left = 5%
  29.     top = 25%
  30.     width = 30%
  31.     + image {file = "icons/edit.png"}
  32. }
  33. + hbox {
  34.     left = 5%+50
  35.     top = 25%+8
  36.     width = 30%
  37.     + label {text = "[TIP]" color = "white" align = "left"}
  38. }

  39. + hbox {
  40.     left = 5%
  41.     top = 30%
  42.     width = 30%
  43.     + image {file = "icons/second_memdisk.png"}
  44. }
  45. + hbox {
  46.     left = 5%+50
  47.     top = 30%+8
  48.     width = 30%
  49.     + label {text = "[D]" color = "white" align = "left"}
  50. }

  51. + hbox{
  52.     left = 5%+120
  53.     top = 30%+8
  54.     width = 10%
  55.     height = 25
  56.     + label {text = "@VTOY_MEM_DISK@" color = "white" align = "left"}
  57. }
  58. + hbox {
  59.     left = 5%
  60.     top = 35%
  61.     width = 30%
  62.     + image {file = "icons/second_grub2.png"}
  63. }

  64. + hbox {
  65.     left = 5%+50
  66.     top = 35%+8
  67.     width = 30%
  68.     + label {text = "[R]" color = "white" align = "left"}
  69. }

  70. + hbox{
  71.     left = 5%+120
  72.     top = 35%+8
  73.     width = 10%
  74.     height = 25
  75.     + label {text = "@VTOY_GRUB2_MODE@" color = "white" align = "left"}
  76. }

  77. + hbox {
  78.     left = 5%
  79.     top = 40%
  80.     width = 30%
  81.     + image {file = "icons/second_wimboot.png"}
  82. }

  83. + hbox {
  84.     left = 5%+50
  85.     top = 40%+8
  86.     width = 30%
  87.     + label {text = "[W]" color = "white" align = "left"}
  88. }
  89. + hbox{
  90.     left = 5%+120
  91.     top = 40%+8
  92.     width = 10%
  93.     height = 25
  94.     + label {text = "@VTOY_WIMBOOT_MODE@" color = "white" align = "left"}
  95. }

  96. + hbox {
  97.     left = 5%
  98.     top = 45%
  99.     width = 30%
  100.     + image {file = "icons/menu_l.png"}
  101. }

  102. + hbox {
  103.     left = 5%+50
  104.     top = 45%+8
  105.     width = 30%
  106.     + label {text = "[L]" color = "white" align = "left"}
  107. }
  108. + hbox{
  109.     left = 5%+120
  110.     top = 45%+8
  111.     width = 10%
  112.     height = 25
  113.     + label {text = "切换语言" color = "white" align = "left"}
  114. }

  115. + hbox {
  116.     left = 5%
  117.     top = 50%
  118.     width = 30%
  119.     + image {file = "icons/menu_f1.png"}
  120. }

  121. + hbox {
  122.     left = 5%+50
  123.     top = 50%+8
  124.     width = 30%
  125.     + label {text = "[F1]" color = "white" align = "left"}
  126. }
  127. + hbox{
  128.     left = 5%+120
  129.     top = 50%+8
  130.     width = 10%
  131.     height = 25
  132.     + label {text = "帮助信息" color = "white" align = "left"}
  133. }

  134. + hbox {
  135.     left = 5%
  136.     top = 55%
  137.     width = 30%
  138.     + image {file = "icons/menu_f2.png"}
  139. }

  140. + hbox {
  141.     left = 5%+50
  142.     top = 55%+8
  143.     width = 30%
  144.     + label {text = "[F2]" color = "white" align = "left"}
  145. }
  146. + hbox{
  147.     left = 5%+120
  148.     top = 55%+8
  149.     width = 10%
  150.     height = 25
  151.     + label {text = "本地浏览" color = "white" align = "left"}
  152. }

  153. + hbox {
  154.     left = 5%
  155.     top = 60%
  156.     width = 30%
  157.     + image {file = "icons/menu_f3.png"}
  158. }

  159. + hbox {
  160.     left = 5%+50
  161.     top = 60%+8
  162.     width = 30%
  163.     + label {text = "[F3]" color = "white" align = "left"}
  164. }
  165. + hbox{
  166.     left = 5%+120
  167.     top = 60%+8
  168.     width = 10%
  169.     height = 25
  170.     + label {text = "切换视图" color = "white" align = "left"}
  171. }

  172. + hbox {
  173.     left = 5%
  174.     top = 65%
  175.     width = 30%
  176.     + image {file = "icons/menu_f4.png"}
  177. }

  178. + hbox {
  179.     left = 5%+50
  180.     top = 65%+8
  181.     width = 30%
  182.     + label {text = "[F4]" color = "white" align = "left"}
  183. }
  184. + hbox{
  185.     left = 5%+120
  186.     top = 65%+8
  187.     width = 10%
  188.     height = 25
  189.     + label {text = "系统引导" color = "white" align = "left"}
  190. }


  191. + hbox {
  192.     left = 5%
  193.     top = 70%
  194.     width = 30%
  195.     + image {file = "icons/menu_f5.png"}
  196. }

  197. + hbox {
  198.     left = 5%+50
  199.     top = 70%+8
  200.     width = 30%
  201.     + label {text = "[F5]" color = "white" align = "left"}
  202. }
  203. + hbox{
  204.     left = 5%+120
  205.     top = 70%+8
  206.     width = 10%
  207.     height = 25
  208.     + label {text = "工具" color = "white" align = "left"}
  209. }


  210. + hbox {
  211.     left = 5%
  212.     top = 75%
  213.     width = 30%
  214.     + image {file = "icons/menu_f6.png"}
  215. }

  216. + hbox {
  217.     left = 5%+50
  218.     top = 75%+8
  219.     width = 30%
  220.     + label {text = "[F6]" color = "white" align = "left"}
  221. }
  222. + hbox{
  223.     left = 5%+120
  224.     top = 75%+8
  225.     width = 10%
  226.     height = 25
  227.     + label {text = "自定义菜单" color = "white" align = "left"}
  228. }


  229. + hbox {
  230.     left = 5%
  231.     top = 80%
  232.     width = 30%
  233.     + image {file = "icons/menu_f7.png"}
  234. }

  235. + hbox {
  236.     left = 5%+50
  237.     top = 80%+8
  238.     width = 30%
  239.     + label {text = "[F7]" color = "white" align = "left"}
  240. }
  241. + hbox{
  242.     left = 5%+120
  243.     top = 80%+8
  244.     width = 10%
  245.     height = 25
  246.     + label {text = "切换模式" color = "white" align = "left"}
  247. }

复制代码


+hbox  前面还有一些默认代码要保留。
回复

使用道具 举报

62#
 楼主| 发表于 2025-2-26 15:29:56 | 只看该作者
pdscjf 发表于 2025-2-26 14:32
图标大小怎么定义?

可能需要绘图软件直接修改png图片的尺寸。代码里没发现定义图标尺寸
回复

使用道具 举报

63#
发表于 2025-2-26 16:08:53 | 只看该作者
try_catch 发表于 2025-2-26 15:29
可能需要绘图软件直接修改png图片的尺寸。代码里没发现定义图标尺寸

参照其他主题图片的定义,不起作用,我再看看
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-4-4 18:26

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表