Cuperino / QPrompt-Teleprompter

Teleprompter software for all video creators. Built with ease of use, productivity, control accuracy, and smooth performance in mind.
https://qprompt.app
GNU General Public License v3.0
357 stars 23 forks source link

Incorrect background transparency #88

Closed waylonwang closed 2 years ago

waylonwang commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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