-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built-in "Dark" UI theme #396
Comments
no use, just use built in system gtk if on linux or work something out on windows - all modern OSes already support those defacto - no need to put the burden on leocad |
Problem here is that there are no simple way to enable use of system theme in LeoCAD settings For example, in Manuskript app there is option in settings that allow use system gtk theme. |
You mean to say that your leocad session does not use the system gtk theme? Dark or not? I'm curious to know why it'd do that if that were the case. |
Yes. |
@Symbian9 are you runing Gnome DE? I suggest you enable the environment export workarounds for qt4 and qt5 to help with themeing: for qt5: install qt5-style-plugins you can optionally configure and tweak things with qt5ct for qt4: run this: #!/bin/bash home="/home/${SUDO_USER:-$USER}" if [ ! -e "$configuration_directory" ] configurationecho "${cyan}Adding styles configuration parameters (Qt)...${reset}" cat > "$configuration_directory"/Trolltech.conf << 'FILE' style=GTK+ Link configuration file for GTK 3+ setupln -s -f "$configuration_directory"/Trolltech.conf "$gtk_configuration_directory"/Trolltech.conf |
That is why I requested built-in dark theme for avoid any DE/WM issues. |
This should be handled upstream normally. |
@nathaneltitane, Are you use AppImage-build of LeoCAD or compile & install it itself as regular package? |
I used to use the prebuilt version. I've been compiling l'encadrement for over two years now... What does it have to do with style settings? |
There is issue where AppImage package would not detect system themes if not directly configure it:
As for me, I use LeoCAD's AppImage BUT, when I tried to install it as regular package (using DEB builds) it successfully recognize system themes. BTW, I prefer that each app should has option for setting own themes independently from my system theme, as Olive and many other Qt-based apps implemented it by adding option for user specifying custom QSS-file stylesheets via app preferences: |
Even with appimage or debs, I have come upon instances where LeoCad, LDView and other qt based apps would not resolve systemk theming properly - it has to do with qt and not how Leo or other devs create their applications and the solution is a system workaround that I wrote on my third reply dating from jan 11th. I have unfortunately not com eacross any further details on why these are broken, and i'm sure it may also be distribution specific. |
My guess is this has something to do with the way the AppImage is created as it includes the Qt libraries from the build machine and that has some differences from what you have. I have a dark theme I've been trying, it still needs some more work and I'll add it when it's ready (with an option to disable it). |
Add built-in theme support as option in "Preferences" window:
Switching theme should work without restart.
REFERENCES
The text was updated successfully, but these errors were encountered: