Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved Themes for different resolutions.
#8
(12-20-2022, 05:44 AM)longpanda Wrote: There is no method to auto select theme according to the current resolution.

You can set more that one themes in ventoy.json as follows:
Code:
"theme": {
    "file": [
        "/ventoy/theme/theme_800x600.txt",
        "/ventoy/theme/theme_1024x768.txt",
        "/ventoy/theme/theme_1600x900.txt"
    ]
}

Then you can select theme by F5 Tools ----> Theme Select  as in the attachment.

But this need user to manually select the appropriate theme.
Thank you! I know about this method but it is manual option. the first look will be messy screen when USB will boot. then  I have to manually correct theme. So it is not a good idea. but that feature is great for keeping different themes.

(12-20-2022, 10:12 AM)Steve2926 Wrote: If the problem is that the menu text (Language, etc.) is going off the sceeen, then the solution is to simply start the text further to the left

+ hbox {
left = 5%
top = 95%
+ label {text = "F1:Help F2:Browser F3:TreeView F4:LocalBoot F5:Tools F6:ExMenu F7:TextMode L:Language" color = "white"}
}


P.S. width and height are ignored by +vbox and +hbox.
Also no need to have a vbox inside an hbox

see http://wiki.rosalab.ru/en/index.php/Grub....28vbox.29

and change your ventoy_left value in  /ventoy/ventoy.json file so that string fits too - e.g.  top 1%  left 70%
ventoy_left STRING Optional, left position of the ventoy version info, default is "5%"
ventoy_top STRING Optional, top position of the ventoy version info, default is "95%"
ventoy_color STRING Optional, the color of the ventoy version info, default is "#0000ff"

P.S. If you want the icons to align with the help text, then you must specify each item of help text seperately so it starts in same position, .e.g.

+ hbox {
left = 6%
top = 90%
+ image {file = "icons/txt.png"}
}
+ hbox {
left = 5%
top = 95%
+ label {text = "F1:Help" color = "white"}
}


This way the icon will be above the text no matter what the resolution


and remove the hbox for + label {text = "F1:Help F2:Browser F3:TreeView F4:LocalBoot F5:Tools F6:ExMenu F7:TextMode L:Language" color = "white"}

Thanks for your suggestion. But I had already experimented that. like put all the text and icons separatly on fixed places but that also does not help when resolutions are changed.

See First design. 1024 x 768

[Image: 1024x768.jpg]

Then 800 x 600 for same theme.

[Image: 800x600.jpg]

Then 1366 x 768

[Image: 1366x768.jpg]

Font size changes with resolution so it gets overlapped.
Reply


Messages In This Thread
Themes for different resolutions. - by Krinal - 12-18-2022, 06:52 PM
RE: Themes for different resolutions. - by Krinal - 12-19-2022, 02:48 PM
RE: Themes for different resolutions. - by Krinal - 12-19-2022, 05:16 PM
RE: Themes for different resolutions. - by Krinal - 12-20-2022, 06:29 PM
RE: Themes for different resolutions. - by Krinal - 12-21-2022, 06:59 PM
RE: Themes for different resolutions. - by Krinal - 12-22-2022, 06:48 PM
RE: Themes for different resolutions. - by Krinal - 12-23-2022, 10:22 AM
RE: Themes for different resolutions. - by Krinal - 12-23-2022, 05:32 PM
RE: Themes for different resolutions. - by Krinal - 12-24-2022, 06:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)