Lxtharia / minegrub-theme

A Grub Theme in the style of Minecraft!
MIT License
3.22k stars 41 forks source link

Text goes out of button #20

Closed rew1nter closed 5 months ago

rew1nter commented 1 year ago

Is there any way to make this fit in the button or increase the button size?

rew1nter commented 1 year ago

IMG_20230619_233228

Lxtharia commented 1 year ago

Hello, you can increase the button size by changing the lines in the theme.txt:

+ boot_menu {
...
left = 50%-397
width = 800
...
}
... 
+ boot_menu {...
left = 50%-400
width = 800
...
}

for example, but this will probably stretch the texture of it, i don't know how noticable that is.

What i did once is change the /etc/grub.d/30_os-prober script, where i added

  if [ "$LONGNAME" == "Windows Boot Manager" ] ; then 
    LONGNAME="Play Windows"
  fi

after these lines:

if [ -z "${LONGNAME}" ] ; then
    LONGNAME="${LABEL}"
  fi

What also might work is to replace the onstr="$(gettext_printf "(on %s)" "${DEVICE}")" with onstr="" But best to test everything in a VM first, i don't want to be responsible for when your grub breaks

Hope this helps, feel free to ask if you have any more questions, github refuses to send me emails, so I might take some time to respond :>

johanno commented 1 year ago

Hi I have a similar issue. My Buttons are over the package message in the bottom.

Is there a way to increase the resolution?

Lxtharia commented 1 year ago

If it's only grub that's in a low resolution, then you might need to add/change this line in your /etc/default/grub file:

...

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE=1920x1080
...

Let me know if that solves it!

johanno commented 8 months ago

If it's only grub that's in a low resolution, then you might need to add/change this line in your /etc/default/grub file:

...

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE=1920x1080
...

Let me know if that solves it!

well after I forgot about this and now saw the notification i can confirm that

GRUB_GFXMODE=1920x1080 does not change anything. I first forgot to update grub, but after update-grub and a reboot it stayed the same.

Lxtharia commented 8 months ago

Hm, does your screen have a really small resolution then? Would love to see an image!

The button sizes and the logo all have fixed size, so if the screen resolution is too small, everything gets crammed up.

johanno commented 8 months ago

No it is a 2k monitor but the 1k also shows the buttons too big. I can't see the bottom line at all

Lxtharia commented 8 months ago

Huh. I still don't really know how it looks, so I can only guess.

Maybe try to use the recommended option that videoinfo outputs (when used in the grub console). If they change nothing, I'm currently out of ideas.

Sidenote: It may be similar, but actually another problem than the original issue, so mightve been worth an own issue :)

CatAhri commented 8 months ago

In addition to making the buttons larger, I also abbreviated the text using grub-customizer.