07-11-2020, 09:03 AM
(05-29-2020, 03:42 PM)pdbpdb Wrote: scaramonga's steps work to set a grub2 theme, however I can't seem to get the icons to display? (picture attached)
Is this possible? If so, how?
Thanks!
You need to set the "class" for each ISO (where "class" means the png file you want for that ISO).
structure example:
ventoy/ISOs/Linux/xxx.iso
ventoy/ISOs/Windows/xxx.iso
ventoy/persistence/4gb.img
ventoy/themes/Vimix/<theme-files-here(fonts,images)>
ventoy/themes/Vimix/icons/linuxmint.png
ventoy/themes/Vimix/icons/ubuntu.png
ventoy/themes/Vimix/icons/xxx.png
ventoy/ventoy.json contents:
Code:
{
"control": [
{ "VTOY_DEFAULT_MENU_MODE": "0" },
{ "VTOY_DEFAULT_SEARCH_ROOT": "/ventoy/ISOs" }
],
"theme": {
"file": "/ventoy/themes/Vimix/theme.txt",
"ventoy_top": "95%",
"ventoy_left": "2%",
"ventoy_color": "#ffffff",
"fonts": [
"/ventoy/themes/Vimix/dejavu_sans_12.pf2",
"/ventoy/themes/Vimix/dejavu_sans_14.pf2",
"/ventoy/themes/Vimix/dejavu_sans_16.pf2",
"/ventoy/themes/Vimix/dejavu_sans_24.pf2",
"/ventoy/themes/Vimix/dejavu_sans_32.pf2",
"/ventoy/themes/Vimix/dejavu_sans_48.pf2",
"/ventoy/themes/Vimix/terminus-12.pf2",
"/ventoy/themes/Vimix/terminus-14.pf2",
"/ventoy/themes/Vimix/terminus-16.pf2",
"/ventoy/themes/Vimix/terminus-18.pf2"
]
},
"menu_alias": [
{
"image": "/ventoy/ISOs/Linux/linuxmint-20-cinnamon-64bit.iso",
"alias": "Linux Mint 20 Cinnamon"
},
{
"image": "/ventoy/ISOs/Linux/ubuntu-20.04-desktop-amd64.iso",
"alias": "Ubuntu 20.04"
}
],
"persistence": [
{
"image": "/ventoy/ISOs/Linux/linuxmint-20-cinnamon-64bit.iso",
"backend": "/ventoy/persistence/4gb.img"
},
{
"image": "/ventoy/ISOs/Linux/ubuntu-20.04-desktop-amd64.iso",
"backend": "/ventoy/persistence/4gb.img"
}
],
"menu_class": [
{
"key": "linuxmint",
"class": "linuxmint"
},
{
"key": "ubuntu",
"class": "ubuntu"
}
]
}