#1076935 maliit-keyboard: Can't change maliit-keyboard theme

Package:
maliit-keyboard
Source:
maliit-keyboard
Description:
virtual on-screen keyboard based on the Maliit Framework
Submitter:
mando
Date:
2024-07-24 11:30:04 UTC
Severity:
normal
#1076935#5
Date:
2024-07-24 11:27:47 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?

I'm trying to use maliit-keyboard on a laptop with a touchscreen using

        sudo apt install maliit-keyboard

maliit keyboard can be enabled in the KDE system settings.
Then the keyboard correclty shows when touching a text area on the screen.
But there is no way to configure in the KDE system settings panel.
So I tried to change the settings dconf-editor or gsettings.
I can change the enabled languages, but I can't switch to a dark theme.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

1) I tried to change the following commands from (https://blog.martin-graesslin.com/blog/2021/03/using-maliit-keyboard-in-a-plasma-wayland-session/):

        gsettings set org.maliit.keyboard.maliit enabled-languages "['fr', 'ru', 'emoji']"
        gsettings set org.maliit.keyboard.maliit theme BreezeDark

In dconf-editor, we can tune these parameters, but there is no way to list valid theme values.
The default value of org.maliit.keyboard.maliit theme is "Ambiance" but I don't undernstand why it is a valid theme value.

2) I also tried this (https://github.com/maliit/keyboard/issues/174#issuecomment-1307825321)
supposed to map the maliit keyboard theme to the current KDE theme.

As root:
        echo "export QT_QUICK_CONTROLS_STYLE=org.kde.desktop" > /usr/local/bin/maliit-keyboard
        echo "/usr/bin/maliit-keyboard" >> /usr/local/bin/maliit-keyboard

As user:
        cp /usr/share/applications/com.github.maliit.keyboard.desktop $HOME/.local/share/applications
        sed -i 's%Exec=maliit-keyboard%Exec=/usr/local/bin/maliit-keyboard%' $HOME/.local/share/applications/com.github.maliit.keyboard.desktop

Then I disabled/re-enagle maliit-keyboard in KDE system settings but the keyboard won't show until I remove $HOME/.local/share/applications/com.github.maliit.keyboard.desktop.
Running from the terminal gives the following outputs:

(mando@cenedra) (~) $ /usr/bin/maliit-keyboard
wordengine.cpp plugin "/usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/en/libenplugin.so" loaded
inputmethod_p.h registerActiveLanguage(): activeLanguage is: "fr"
in inputMethod.cpp setActiveLanguage() activeLanguage is: "fr"
wordengine.cpp plugin "/usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/fr/libfrplugin.so" loaded
DB path: /usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/fr/database_fr.db
spellechecker.cpp in setLanguage() lang= "fr" dictPath= "/usr/share/hunspell"
inputMethod::reset()
in clear preedit.. clearing word engine
spellechecker.cpp in setLanguage() aff_file= "/usr/share/hunspell/fr.aff" dic_file= "/usr/share/hunspell/fr.dic" user dictionary= "/home/mando/.local/share/maliit-keyboard/fr_userDictionary.dic"
^C

(mando@cenedra) (~) $ /usr/local/bin/maliit-keyboard
wordengine.cpp plugin "/usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/en/libenplugin.so" loaded
inputmethod_p.h registerActiveLanguage(): activeLanguage is: "fr"
in inputMethod.cpp setActiveLanguage() activeLanguage is: "fr"
wordengine.cpp plugin "/usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/fr/libfrplugin.so" loaded
DB path: /usr/lib/x86_64-linux-gnu/maliit/keyboard2/languages/fr/database_fr.db
spellechecker.cpp in setLanguage() lang= "fr" dictPath= "/usr/share/hunspell"
inputMethod::reset()
in clear preedit.. clearing word engine
spellechecker.cpp in setLanguage() aff_file= "/usr/share/hunspell/fr.aff" dic_file= "/usr/share/hunspell/fr.dic" user dictionary= "/home/mando/.local/share/maliit-keyboard/fr_userDictionary.dic"
file:///usr/lib/x86_64-linux-gnu/maliit/keyboard2/qml/keys/LanguageMenu.qml:33:19: QML MenuItem: Binding loop detected for property "implicitWidth"
file:///usr/lib/x86_64-linux-gnu/maliit/keyboard2/qml/keys/LanguageMenu.qml:33:19: QML MenuItem: Binding loop detected for property "implicitWidth"

3) I tried to change the settings through maliit-keyboard itself (long tap on the emoticon key, then tap Settings). But nothing happens.

   * What was the outcome of this action?

The keyboard has the right languages, but still uses a light theme.

   * What outcome did you expect instead?

The keyboard theme should become dark, as shown here (https://blog.martin-graesslin.com/blog/2021/03/using-maliit-keyboard-in-a-plasma-wayland-session/)
and customizable through maliit/KDE settings.

By default, the keyboard should match the KDE theme (see (2)).

Ideally, KDE systemsettings should allow to change the theme/langauges/... through a combo boxes.

Best regards

*** End of the template - remove these template lines ***