Open Sadi58 opened 3 years ago
Hey @Sadi58! How did you add that icon for the submenu? Could you write a short instruction please?
@itorgov
(1) I've added several icons like this to "/boot/grub/themes/Vimix/icons
" folder, and
(2) I've written a script to make several changes in "/boot/grub/grub.cfg
" that I execute after each grub update (all these can probably be done by modifying the appropriate scripts in "/etc/grub.d
" in order to make these changes more permanent). The command for additional icons is:
sudo sed -i -e "s/'UEFI Firmware Settings'/'UEFI Firmware Settings' --class efi/" -e "s/'Advanced options for KDE neon'/'Advanced options\.\.\.' --class submenu/" -e "s/(recovery mode)'/(recovery)' --class recovery/g" "/boot/grub/grub.cfg"
Apparently grub looks for an icon with the same name as the class defined for each menu entry, and the file type (extension) should be the same as others and/or supported as seen in "/boot/grub/grub.cfg
" (with commands like "insmod jpeg
" and/or "insmod png
".
It would be nice though if there is a default icon for advanced option. On my Ubuntu the menu entries for advanced options and UEFI settings has no icons by default.
Can I just second this request?
It just looks off if one icon is missing. or this
ps. I like the icon suggested here - it show the hierarchy - could you include this or something similar
I am not sure we can do anything about it - seems like a grub thing...
It's been more tan 12 months since I opened this issue, and I'm unsubscribing from this now. As I've explained below it's very easy to add an icon for "Advanced options...". All you need to do is to download the (hardly visible) icon immediately below the screenshot at the top (https://user-images.githubusercontent.com/6375934/112475735-30449d00-8d82-11eb-9364-d11307a8ac85.png), rename it as "submenu.png", and then move it to "/boot/grub/themes/Vimix/icons/submenu.png"; or use any other icon you like. The others I've mentioned in my comment dated 2021-05-11 (https://github.com/vinceliuice/grub2-themes/issues/116#issuecomment-838047883 ) are a grub thing, which can be tackled with a user script like that.
I prefer using "--class submenu" for "Advanced options..." menu item. I've tested, and it looks fine. I'm attaching a white one in two sizes as well as a screenshot of my slightly customized Vimix grub theme. If you agree, you can add it to assets.