Show the input method's icon in InputMethodOSD

Open Beginner friendly
#4,434 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
63/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Domain
desktop

Research direction

Read the InputMethodOSD implementation and the bar input method widget that already gets its icon from Fcitx5Service. Trace how the OSD receives the current input method name, then check how the bar obtains and displays its icon. Done when the OSD shows the matching icon as input methods change.

Written by the indexing model from the issue text.

Description

Enhancement
Feature Description

Currently, InputMethodOSD always uses the generic "language" icon, and only the input method name (label) changes.

The bar already uses the current input method's icon provided via Fcitx5Service. Showing the same icon in the OSD would make it easier to recognize which input method was switched to, especially when switching between multiple IMs.

Feedback on whether this would be acceptable for the OSD would be appreciated.

Use Case

I switch between multiple input methods with fcitx5 (e.g., Sweet IME and the default keyboard). The OSD shows the IM name as text, but a matching icon would make it recognizable at a glance, just like the bar widget already does.

Compositor(s)

All compositors

If Other, please specify

No response

Proposed Solution

Use the current input method's icon from Fcitx5Service (already used by the bar) as the InputMethodOSD icon instead of the hardcoded "language" icon.

Alternatives/Existing Solutions

The bar's input method widget already displays the IM icon; this request is about applying the same behavior to the OSD.

Dominant language
QML
Stars
8.4k
Forks
549
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AvengeMedia/DankMaterialShell

All issues in AvengeMedia/DankMaterialShell

Similar issues

More Desktop Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.