Closed steve6375 closed 3 years ago
I have rewritten this part of the code and now you can test it. Text mode is not supported for now. Note that since the length of the help text is not fixed, I hard-coded the length of the label to 65535. if the label is inside the hbox, there is no way to display any of the components after it. theme.txt:
...
+ hbox {
left = 0%
top = 0%
width = 100%
+ label {text = "HELP:" color = "#ffffff"}
+ label {id = "__help__" color = "#ffffff"}
}
...
menu:
menuentry "aaa" --help-msg="menu aaa" {
echo aaa
}
menuentry "bbb" --help-msg="test 22222" {
echo aaa
}
menuentry "ccc" --help-msg="qwerty" {
echo aaa
}
menuentry "ddd" --help-msg="microsoft windows" {
echo aaa
}
menuentry "eee" {
echo aaa
}
menuentry "fff" --help-msg=" KVMKVM " {
echo aaa
}
menuentry "grubfm" --help-msg="grub2-filemanager" {
grubfm
}
now also available in text mode.
Graphics mode seems to work OK now :-) Small issues with text mode The grub2 menu help text is not cleared also cursor is left on screen
config file
#Remove standard agFM theme
unset theme_std; unset theme_fm; unset theme_open; unset theme_info; unset theme_help;
unset theme
terminal_output console
#Menu colours - format: text/background
#Choice for text: black,blue,brown,cyan,dark-gray,green,light-cyan,light-blue,light-green,light-gray,light-magenta,light-red,magenta,red,white,yellow
#in console mode background colours are restricted to black,blue,brown,cyan,light-gray,green,magenta,red
set menu_color_highlight=red/black
set menu_color_normal=cyan/black
set color_normal=light-gray/black
P.S. How to specify colour for help text in console mode?
The grub2 menu help text is not cleared also cursor is left on screen
now should be fixed.
How to specify colour for help text in console mode?
color_normal
OK - so must be same colour as heading.
'--help-msg' still doesn't work. I have temporarily withdrawn these patches.
this works.
+ vbox {
left = 0%
top = 0%
+ label {
id = "__help__"
color = "#ffffff"
}
}
this doesn't work.
+ vbox {
left = 35%
top = 20%
+ label {
id = "__help__"
color = "#ffffff"
}
}
bug fixed.
A1ive kralsın süper ***** 🏔️
I congratulate you, master. If you accept, I have a suggestion. I think it would be more pleasant if it was done as in the picture.
Same menu entry if move cursor up...
Sometimes parts missing Sometimes no message. Depends on up/down cursor selection - you get different results!