Last active
July 25, 2024 12:55
-
-
Save sxiii/f5f092d024748107a973d52f2381aab0 to your computer and use it in GitHub Desktop.
Fix OpenSCAD Dark Theme and other wrong GTK / QT styles on Garuda Linux (probably arch as well)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Super easy fix - first, install qt5ct and do a test openscad launch like this: | |
``` | |
QT_STYLE_OVERRIDE=qt5ct-style openscad | |
``` | |
Instead of `qt5ct-style` you can use any of your own installed styles (some examples might be: kvantum-dark, kvantum, Fusion) | |
Which styles are installed you can check by running `qt5ct` or use kvantum as theme and then choose theme in kvantummanager. | |
Might work with some other apps GTK/QT apps, too. | |
To make it permanent you can: | |
1. Edit system launcher for OpenSCAD and replace it with `env QT_STYLE_OVERRIDE=qt5ct-style openscad %f` | |
2. Or add it to permanent config script globally like that: | |
``` | |
export QT_STYLE_OVERRIDE=qt5ct-style | |
``` | |
Might work as well on Manjaro and other Arch spinoffs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo pacman -S qt5ct
Check that theme is dark by running qt5ct and verifying it in GUI.
Run openscad with dark theme via qt5ct:
QT_QPA_PLATFORMTHEME=qt5ct openscad