grub icon indicating copy to clipboard operation
grub copied to clipboard

Sometimes one menu entry icon is missing when theme used with no desktop-image defined

Open steve6375 opened this issue 4 years ago • 8 comments

There seems to be a bug in the theme code. Please see... https://rmprepusb.blogspot.com/2020/05/new-large-font-theme-for-agfm-and.html [seven14LargeFont_theme.zip] Note the missing icon (second menu entry). The icon appears as soon as you move the cursor down/up. (https://github.com/a1ive/grub/files/4621302/seven14LargeFont_theme.zip) image

steve6375 avatar May 13 '20 10:05 steve6375

Repro the bug... If you want to test the missing icon bug for yourself, just comment out the desktop-image entry in the fm.txt menu file as shown below and then navigate to a folder which has a lot of entries - often one of them will be missing!:


# Global Property
title-color: "#ffffff"
title-text: "Easy2Boot agFM"
message-color: "#FFFFFF"
message-bg-color: "#000000"
desktop-color: "#000000"
#desktop-image: "black.jpeg"
terminal-box: "term_bkg_*.png"
desktop-image-scale-method: "stretch"

steve6375 avatar May 13 '20 11:05 steve6375

before: 深度截图_选择区域_20200513193141 after: 深度截图_选择区域_20200513193202 But I still can't figure out why this solves the problem. I don't think this NULL pointer check is needed.

a1ive avatar May 13 '20 11:05 a1ive

top left corner of grey background is also missing. I noticed that too in my tests.

steve6375 avatar May 13 '20 11:05 steve6375

have you tried the latest grub2 build?

a1ive avatar May 13 '20 12:05 a1ive

Seems to have fixed it! I tried a few different themes. :-)

steve6375 avatar May 13 '20 12:05 steve6375

Does the official gnu grub also have this bug?

a1ive avatar May 13 '20 12:05 a1ive

I don't know. I tried Googling for any similar issue but couldn't find anything.

steve6375 avatar May 13 '20 13:05 steve6375

Screenshot_20200921_185742 Screenshot_20200921_185855 Screenshot_20200921_190319

it still happens randomly!

a1ive avatar Sep 21 '20 11:09 a1ive