Ventoy Forums
Solved Themes for different resolutions. - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy Plugin —— Ventoy 插件 (https://forums.ventoy.net/forumdisplay.php?fid=3)
+--- Forum: Ventoy Plugin Forum (https://forums.ventoy.net/forumdisplay.php?fid=4)
+--- Thread: Solved Themes for different resolutions. (/showthread.php?tid=2285)

Pages: 1 2 3


RE: Themes for different resolutions. - serhat100 - 12-28-2022

(12-21-2022, 06:59 PM)Krinal Wrote: Ventoy.json'umu düzenleme için plugson kullanmıyorum, manuel olarak düzenliyorum. Ayrıca Çoklu mod kullanmıyorum, bu yüzden tüm modlar için bir tema ayarlandı ve Ventoy.json'da 1024 x 728 olarak sabit

tuttum
. Benim durumumda sadece 800 x 600 ve -1366 x 768 o menüde dinledi.

Images of different resolutions in a single theme file.
e.g
800x600
[attachment=666]
1024x768
[attachment=667]
1920x1080
[attachment=668]


RE: [Solved] Themes for different resolutions. - AlexBryansk - 12-29-2022

then you need to change the font for different resolutions


RE: [Solved] Themes for different resolutions. - serhat100 - 12-30-2022

(12-29-2022, 09:01 PM)AlexBryansk Wrote: then you need to change the font for different resolutions
It does not support different font options in theme.txt file.


RE: [Solved] Themes for different resolutions. - AlexBryansk - 12-30-2022

Support can be added.
  At the moment, grub2 allows you to set your own font for any inscription: title, label, tips, menu.
  If you use one font for all inscriptions. Then you can add parameters to theme.txt that will change the font automatically at different resolutions (widths) of the monitor.
  For example: "font-resolution-1080", "font-resolution-900", "font-resolution-768"...


RE: [Solved] Themes for different resolutions. - serhat100 - 12-30-2022

(12-30-2022, 11:48 AM)AlexBryansk Wrote: Support can be added.
  At the moment, grub2 allows you to set your own font for any inscription: title, label, tips, menu.
  If you use one font for all inscriptions. Then you can add parameters to theme.txt that will change the font automatically at different resolutions (widths) of the monitor.
  For example: "font-resolution-1080", "font-resolution-900", "font-resolution-768"...
The font defined in grub.cfg is valid, it doesn't seem to apply the font defined in theme.txt
Separate fonts can be assigned for theme files in the ventoy.json file. I'm testing different resolutions on just one theme file.

e.g

+ label {
   font = "NanumGothic_Regular14"
   text = "Enter:Λ V (menü seçimi)Kısayol tuşları:[F1/Ctrl+mdwriuL]"
   color = "#e60d1c"
   align = "center"
   top = 69%
   left = 23%
}