You are not logged in.

#1 2013-07-10 21:58:40

EvanPurkhiser
Member
From: Akron, Ohio
Registered: 2010-08-17
Posts: 225
Website

[Solved] rEFInd: Hide "badge icon" on menu entries?

Hey guys,

I'm using the rEFInd bootmanager on my system and was cleaning it up visually to make it look nice.

I'm trying to figure out how to hide the "Badge icon" (See here, the harddrive and CD icons on the actual OS icons are what I'm talking about). The documentation says that the bage can be changed by creating a ".VolumeBadge.png" file in the root of the volume that's being booted.

Here's my menuentry for Arch

menuentry "Arch Linux" {
	icon /EFI/refind/minimal-theme/icons/grey_arch.png
	loader vmlinuz-linux
	initrd initramfs-linux.img
	options "ro root=UUID=dfb2919d-ff78-48db-a8a7-23f7542c343a loglevel=3"
}

So since the ESP is just my /boot/ I figured I would be able to put a transparent ".VolumeBadge.png" in /boot/, but that's not working. I've also tried putting it on / and /boot/EFI.

I see there was at one point a commit message "New transparent icon for users who want transparent badges.", but I can't figure out how to use it.

Any ideas, am I missing something?

Last edited by EvanPurkhiser (2013-07-11 10:06:35)

Offline

#2 2013-07-10 22:19:13

WorMzy
Forum Moderator
From: England
Registered: 2010-06-16
Posts: 4,862

Re: [Solved] rEFInd: Hide "badge icon" on menu entries?

/usr/share/refind/docs/html/configfile.html wrote:

In addition to the main OS tag icon, you can set the badge icon for a volume by creating a file called .VolumeBadge.icns or .VolumeBadge.png in the root directory of a partition. This icon file must include a 32x32 bitmap. If present, it replaces the disk-type icons that are overlaid on the main OS icon. If you use this feature, the badge is applied to all the boot loaders read from the disk, not just those stored in the root directory or the Apple boot loader location. You could use this feature to set a custom badge for different specific disks or to help differentiate multiple OS X installations on one computer. If you don't want any badges, you can replace the three badge icons in the rEFInd icons subdirectory (vol_external.icns, vol_internal.icns, and vol_optical.icns) with a completely transparent badge. The transparent.icns file in the rEFInd icons directory may be used for this purpose.

Looks like you've tried the .VolumeBadge.png, but have you tried the second suggestion? Replacing the default icons with the transparent one sounds like the best idea to me.

Last edited by WorMzy (2013-07-10 22:20:16)


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

#3 2013-07-10 22:46:05

jmontano
Member
From: Colombia
Registered: 2013-04-29
Posts: 5

Re: [Solved] rEFInd: Hide "badge icon" on menu entries?

This is what worked for me:

$ sudo mount /dev/sda1 /mnt/
$ cd /mnt/EFI/refind/icons/
$ sudo cp transparent.icns vol_internal.icns 

Reboot to see the changes smile

Offline

#4 2013-07-11 02:53:07

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: [Solved] rEFInd: Hide "badge icon" on menu entries?

I've just checked, and it looks like there's a bug in the .VolumeBadge.icns/.VolumeBadge.png support. I'll look into it and fix it. In the meantime, overwriting vol_internal.icns (or specifying a supplemental icons directory and placing an empty icon of that name there) should do the trick.

Offline

#5 2013-07-11 04:15:10

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: [Solved] rEFInd: Hide "badge icon" on menu entries?

I believe I've fixed this bug. The new version's source code is available in rEFInd's git repository, and I've posted a binary package here. If you care to try it out, please do so and tell me if it's working now.

Offline

#6 2013-07-11 10:05:52

EvanPurkhiser
Member
From: Akron, Ohio
Registered: 2010-08-17
Posts: 225
Website

Re: [Solved] rEFInd: Hide "badge icon" on menu entries?

Thanks srs5694. I didn't test the .VolumeBadge.{png,icns}, but I do see that the most recent version does fix the issue of the volume badges not being looked for in the specified icons_dir.

Everything's working good for me now smile If anyone's interested, here's the theme I was working on!

Last edited by EvanPurkhiser (2013-07-11 10:06:24)

Offline

Board footer

Powered by FluxBB