Page 1 of 1

Grub refuses to use theme icon

Posted: Mon Feb 17, 2020 11:58 pm
by S3NTYN3L
This thread was marked as solved so I'll just open a new one.
viewtopic.php?f=46&t=308452

From that thread;
I've done exactly this and grub still REFUSES to use my theme's linuxmint.png. Poly-Dark happens to be the theme I'm using too.
It's only using gnu-linux.png.
The background and highlift bar work fine though.
Kadaitcha Man wrote:
Mon Dec 30, 2019 11:14 pm
I'm afraid that if you've used that horribly destructive wrecking-ball of a [cuss words elided], you're on your own to sort it out. I've hardly seen a single positive comment about it.

All it takes to implement a new theme is ...

Code: Select all

sudo nano /etc/default/grub

...

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=3
GRUB_THEME=/boot/grub/themes/poly-dark/theme.txt

...

sudo update-grub
If the LM theme is sticking around then you might have to move the LM theme config files out of ls /etc/default/grub.d/. Other than that, clean install and don't use that thing.

I even tried
CaptainKirksChair wrote:
Mon Feb 17, 2020 12:17 pm
A little late to the game...

You can also edit the 60_mint-theme.cfg file in the \etc\default\grub.d folder. By default it reads this:

Code: Select all

#! /bin/sh
set -e
GRUB_FONT="/boot/grub/fonts/UbuntuMono16.pf2"
GRUB_THEME="/boot/grub/themes/linuxmint/theme.txt"
Just change it to your theme-specific files.

Code: Select all

#! /bin/sh
set -e
GRUB_FONT="/boot/grub/themes/fallout-grub-theme/fixedsys-regular-32.pf2"
GRUB_THEME="/boot/grub/themes/fallout-grub-theme/theme.txt"
I suspect the folks that write custom GRUB themes will update their install scripts to include altering this file.

Note: If in your theme's Icon folder (/boot/grub/themes/ThemeName/icons) you have a PNG file named linux-mint.png, renamed it to linuxmint.png and Mint 19.3 will use it. The Fallout GRUB theme still uses the old linux-mint.png nomenclature.
and it still refuses all except gnu-linux.png.

Can anyone help me out?

Re: Grub refuses to use theme icon

Posted: Tue Feb 18, 2020 3:54 pm
by Kadaitcha Man
S3NTYN3L wrote:
Mon Feb 17, 2020 11:58 pm
Can anyone help me out?
Either edit the theme.txt file to point to the correct image, or simply replace the theme's image with your own by copying your image over the top of the original using the original name.

Re: Grub refuses to use theme icon

Posted: Tue Feb 18, 2020 4:52 pm
by CaptainKirksChair
Kadaitcha Man wrote:
Tue Feb 18, 2020 3:54 pm
S3NTYN3L wrote:
Mon Feb 17, 2020 11:58 pm
Can anyone help me out?
Either edit the theme.txt file to point to the correct image, or simply replace the theme's image with your own by copying your image over the top of the original using the original name.
I recommend the answer provided here by Kadaitcha Man. I originally had to copy the linux-mint.png file over the ubuntu.png file because the Linux Mint file name wasn't recognized.

If you are using Mint 19.3, go into the \\boot\grub\themes folder and find the default theme for Mint. In that folder, go into the Icons folder. In there are the names of the PNG files that Mint 19.3 will recognize. Just match up those names with the ones from the theme you want to use. That's how I found out it is no longer linux-mint.png but linuxmint.png.

Re: Grub refuses to use theme icon

Posted: Wed Feb 19, 2020 12:14 pm
by S3NTYN3L
Kadaitcha Man wrote:
Tue Feb 18, 2020 3:54 pm
S3NTYN3L wrote:
Mon Feb 17, 2020 11:58 pm
Can anyone help me out?
Either edit the theme.txt file to point to the correct image, or simply replace the theme's image with your own by copying your image over the top of the original using the original name.
theme.txt doesn't point to the icons.
Not even the original theme does this in theme.txt.
CaptainKirksChair wrote:
Tue Feb 18, 2020 4:52 pm
I recommend the answer provided here by Kadaitcha Man. I originally had to copy the linux-mint.png file over the ubuntu.png file because the Linux Mint file name wasn't recognized.

If you are using Mint 19.3, go into the \\boot\grub\themes folder and find the default theme for Mint. In that folder, go into the Icons folder. In there are the names of the PNG files that Mint 19.3 will recognize. Just match up those names with the ones from the theme you want to use. That's how I found out it is no longer linux-mint.png but linuxmint.png.
As stated in my OP, I've already done this.