Skip to content
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

Keyboard forever in light mode #159

Closed
reulew opened this issue Aug 17, 2022 · 4 comments
Closed

Keyboard forever in light mode #159

reulew opened this issue Aug 17, 2022 · 4 comments

Comments

@reulew
Copy link

reulew commented Aug 17, 2022

Nothing I do can change the keyboard to dark mode. Running maliit keyboard 2.3.1 on Plasma 5.25.4 using Wayland. This seems like a similar issue to issue #145 (without the transparency part) but the solution there did not work for me. The documentation does not mention theming. Some people seem to have changed the keyboard to a dark theme by running gsettings set org.maliit.keyboard.maliit theme BreezeDark but that also did not work.

@hedmo
Copy link

hedmo commented Aug 21, 2022

hi

just updated and having the same issue. i have been using the gsettings metod before but now it does not work any more.

regards hedmo

@dobey
Copy link
Contributor

dobey commented Aug 22, 2022

Unfortunately, Plasma desktop doesn't set the QT_QUICK_CONTROLS_STYLE environment variable for child applications, as apparently there are still some issues with different QtQuick applications, depending on which style is used. This results in the KDE platform theme not being loaded automatically in maliit-keyboard, and the default QtQuick Controls 2 style being used instead.

If one sets this variable to either org.kde.breeze or org.kde.desktop for the maliit-keyboard process, it should then use the correct theme colors under Plasma. This is more an issue in KDE, though I'm not quite sure what the correct fix would be yet.

@dobey dobey closed this as completed Aug 22, 2022
@reulew
Copy link
Author

reulew commented Aug 23, 2022

@dobey How would one do what you described? The keyboard is not an app you launch so there's no place to add a variable like that. Also I don't think I want the change to be global. Thanks for your help. I really appreciate your work as a project maintainer.

@dobey
Copy link
Contributor

dobey commented Aug 23, 2022

You could perhaps create a wrapper script as /usr/local/bin/maliit-keyboard that just does:

#!/bin/sh

export QT_QUICK_CONTROLS_STYLE=org.kde.desktop
exec /usr/bin/maliit-keyboard

Assuming that $PATH is correctly ordered for kwin, then this should get preference over the main binary. Don't forget to chmod a+x said script. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants