#985709 ibus-mozc: mozc-tool ignores KDE Qt theme

Package:
ibus-mozc
Source:
mozc
Description:
Mozc engine for IBus - Client of the Mozc input method
Submitter:
Daniel Tang
Date:
2021-03-24 17:27:04 UTC
Severity:
normal
#985709#5
Date:
2021-03-22 13:47:17 UTC
From:
To:
This was orignally reported in Ubuntu downstream at
https://bugs.launchpad.net/ubuntu/+source/mozc/+bug/1920578 . I am
reporting it upstream as per the maintainer's instructions.

Summary:

Mozc ignores my KDE Qt theme, and uses the ugly fallback theme.

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu

Description: Ubuntu Hirsute Hippo (development branch)
Release: 21.04

2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center

mozc-utils-gui:
  Installed: 2.26.4220.100+dfsg-4ubuntu2
  Candidate: 2.26.4220.100+dfsg-4ubuntu2
  Version table:
 *** 2.26.4220.100+dfsg-4ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
        100 /var/lib/dpkg/status

3) What you expected to happen

The UI should use the configured Qt theme like all Qt applications. For an example of an application with the correct theme, you can open Dolphin, and click the overflow menu, then "Configure Dolphin".

The "OK", "Apply", and "Cancel" buttons are particularly easy to compare.

4) What happened instead

The UI looks very ugly and out of place compared to the rest of the system. It looks like it's falling back to the default Qt theme. It doesn't look like a piece of software bundled with Ubuntu, but rather like downloaded 3rd-party software that bundles its own Qt like Anki (dark mode), Genymotion, Binary Ninja, and (old versions of) MultiMC.

Another relevant comment:

I spun up Kubuntu 20.04, 20.10, and 21.04 live CD VMs. I found the theming issue is present neither in 20.04 nor 20.10. On those versions, (aside from the one minor problem of the line underneath the tab) the dialog fits in like a native KDE application. It seems like this is a regression introduced in 21.04.

The about box text is still illegible in all three versions.

Attached is the newly-found expected behaviour, as it was in 20.04 and 20.10.

#985709#10
Date:
2021-03-24 10:49:26 UTC
From:
To:
One idea, Daniel:

In your 21.04 installation, can you please manually install version
2.23.2815.102+dfsg-10build1 of the mozc packages from 20.10. You may
need to download:

- ibus-mozc
- mozc-data
- mozc-server
- mozc-utils-gui

If that makes the theme issue go away, we have isolated the cause of the
issue to mozc. Otherwise the cause reasonably lies somewhere else.

#985709#15
Date:
2021-03-24 13:37:04 UTC
From:
To:
Dear Mr. Hjalmarsson,

Doing just `dpkg -i mozc-utils-gui_2.23.2815.102+dfsg-10build1_amd64.deb`
does indeed solve the problem.

Sincerely,
Daniel Tang

#985709#20
Date:
2021-03-24 17:25:39 UTC
From:
To:
Thanks!

@Nobuhiro: Should this be reported upstream? I don't see anything about
it in the upstream issue tracker.