Skip to content

Add option to hide altText #720

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

Merged
merged 2 commits into from
May 9, 2025
Merged

Add option to hide altText #720

merged 2 commits into from
May 9, 2025

Conversation

eagleoflqj
Copy link
Member

No description provided.

@eagleoflqj eagleoflqj requested a review from Copilot May 6, 2025 23:50
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an option to hide the alternative text by introducing a new punctuation position ("None") in the theme preferences and updating the keyboard view accordingly.

  • Introduces a new method (applyNoAltTextPosition) in KeyView.kt to reset layout parameters and hide the altText.
  • Adds a new enum value (None) in PunctuationPosition within ThemePrefs.kt to support this new behavior.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
app/src/main/java/org/fcitx/fcitx5/android/input/keyboard/KeyView.kt Adds a new function to handle the layout changes when alternative text is hidden
app/src/main/java/org/fcitx/fcitx5/android/data/theme/ThemePrefs.kt Introduces a new enum option to select the "None" punctuation position
Files not reviewed (1)
  • app/src/main/res/values/strings.xml: Language not supported

@rocka
Copy link
Member

rocka commented May 9, 2025

mainText seems a little low far down for lowercase letters. But I have no idea how to fix it. It's fine.

@rocka rocka merged commit aa6c3a0 into master May 9, 2025
5 checks passed
@rocka rocka deleted the hide-alt-text branch May 9, 2025 14:06
mokapsing pushed a commit to mokapsing/fcitx5-android that referenced this pull request May 12, 2025
Co-authored-by: Rocka <i@rocka.me>
wxyzh pushed a commit to wxyzh/fcitx5-android that referenced this pull request Jun 7, 2025
Co-authored-by: Rocka <i@rocka.me>
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

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy