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

Incorrect background transparency #88

Closed
waylonwang opened this issue May 22, 2022 · 2 comments
Closed

Incorrect background transparency #88

waylonwang opened this issue May 22, 2022 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@waylonwang
Copy link

waylonwang commented May 22, 2022

Bug Description
When the transparency of the background is 100, the interface is displayed normally. When the transparency is lower than 100, the transparency of the entire line area where the button that starts the prompting is located directly becomes 0.

Steps to Reproduce
1.Change the background transparency directly

Expected behavior
The background transparency of the row where the start prompt button is located is displayed according to the set transparency

Screenshots
2
1

Device information

@Cuperino Cuperino self-assigned this May 22, 2022
@Cuperino Cuperino added the bug Something isn't working label May 22, 2022
@Cuperino Cuperino added this to the 1.x milestone May 22, 2022
@Cuperino
Copy link
Owner

Hi @waylonwang,

Thanks for reporting.

There's a bug in the 1.1.0 betas which is causing the mobile interface's "teleprompter state toggle button" to be shown in some of the desktop versions of QPrompt. When the button is shown, vertical prompting and editing space is reduced. Then the prompter's viewport and background do not extend to the bottom because the button bellow them is not supposed to be there. This is inconvenient when combined with transparency because, in order to achieve the slightest transparency, the window's background must be fully invisible. Since no semi transparent background is covering it, this results in the fully transparent gap that you see.

The issue seems to be caused by a bug in the Kirigami that keeps coming and going. Kirigami is one of the libraries used to create QPrompt and is foundational to its user interface. What I do to avoid this bug is test and include only versions of Kirigami that don't come with this bug on any platform. Since this process is long and tedious, I only do it for final releases and skip it for the beta builds.

I'm also not sure what in Kirigami is triggering this issue. When I run QPrompt QPrompt 1.1.0-beta-3 (05/21/2022) on Windows 10, the issue only happens the first time that I launch QPrompt for a Windows session. If I close QPrompt and launch it again, the issue doesn't happen. But on other platforms I get completely different behavior.

What I've done is change the design so backgrounds are always present to fill the gap when it appears.

@Cuperino
Copy link
Owner

Here's a new beta with the fix. Enjoy!
https://github.com/Cuperino/QPrompt/releases/tag/v1.1.0-beta-4

@Cuperino Cuperino moved this to Done in QPrompt Feb 25, 2023
@Cuperino Cuperino added this to QPrompt Feb 25, 2023
@Cuperino Cuperino modified the milestones: 1.x, 1.1 Nov 5, 2023
Cuperino added a commit that referenced this issue Dec 1, 2024
…eft by Kirigami's action buttons becoming visible, which appears when the user is in full screen mode and not editing and when a bug in Kirigami which causes the mobile action buttons to show at the same time as the desktop buttons, manifests itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants