How to fix VirtualBox 6.0 theme

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
pizzadude
Level 1
Level 1
Posts: 45
Joined: Sat Aug 06, 2016 3:57 pm

How to fix VirtualBox 6.0 theme

Post by pizzadude »

VirtualBox 6.0 doesn't like dark themes, so text is light grey on white, making it unreadable. To fix this without butchering our other Qt5 applications theme, create a file in /usr/local/bin/ call it "VirtualBox" without quotations, and put this inside:

Code: Select all

QT_STYLE_OVERRIDE=fusion /usr/bin/VirtualBox
Then just:

Code: Select all

sudo chmod +x /usr/local/bin/VirtualBox
All done!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
we fedora kde now
gm10

Re: How to fix VirtualBox 6.0 theme

Post by gm10 »

Yep, the gtk2 theme looks bad in that release.

Just a note for those starting it via the menu/a launcher, a possibly simpler solution is to edit the launcher's properties and change the command from

Code: Select all

VirtualBox %U
to

Code: Select all

VirtualBox -style Fusion %U
For a list of available styles you can run the qt5ct command, if you have it. I agree Fusion looks best though.
okalexm
Level 2
Level 2
Posts: 59
Joined: Wed Feb 05, 2020 4:46 pm
Location: CA

Re: How to fix VirtualBox 6.0 theme

Post by okalexm »

Adding the VirtualBox file, as described above by the OP, also worked for me with Vbox 6.1.2 and Mint Cinnamon 19.3.
Thanks!
Jan 2023:
LM21.0 on: MSI X470 G.P.C,Ryzen 5700X,16GB, MSI RX6700XT, 970 Evo+;
LM21.0 on: Dell 7490 laptop, 16GB, 1TB. LM19.3 2X Thinkpad T430 i5-3230M,8GB MSata SSD,860 Evo SSD.
LM19.3 Dell D830m laptop, T7500,6GB, Nvidia NVS140M, 860 Evo.
GaryD
Level 2
Level 2
Posts: 68
Joined: Sun Jul 31, 2016 5:12 am

Re: How to fix VirtualBox 6.0 theme

Post by GaryD »

pizzadude wrote: Wed Dec 19, 2018 6:11 pm VirtualBox 6.0 doesn't like dark themes, so text is light grey on white, making it unreadable. To fix this without butchering our other Qt5 applications theme, create a file in /usr/local/bin/ call it "VirtualBox" without quotations, and put this inside:

Code: Select all

QT_STYLE_OVERRIDE=fusion /usr/bin/VirtualBox
Then just:

Code: Select all

sudo chmod +x /usr/local/bin/VirtualBox
All done!
Thanks a mil!

Worked on my Linuxmint 20 Cinnamon, VirtualBox 6.1
Image
CPU: i7Core 920, Mobo: Gigabyte EX58-UD3R, Graphic Card: GTX 260
Locked

Return to “Software & Applications”