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
378 stars 26 forks source link

Highlight color of searched or selected text #159

Closed videosmith closed 11 months ago

videosmith commented 1 year ago

Is it possible to dynamically invert the search selection or drag-select text colors for easier readability?

Screenshot from 2023-02-27 14-03-13

Cuperino commented 1 year ago

I could add a button that sets the text color as the background color and the background color as the text color… It’s not exactly inverting as it was done in earlier computer graphics, but it would achieve the same effect.

videosmith commented 1 year ago

Not certain that would achieve the desired result. Currently your highlight scheme works fine, just needs different colors instead of the slight off black background for easier recognition.

Cuperino commented 1 year ago

QPrompt 1.0.0-beta-001 and QPrompt 1.0.0-beta-002 had a different highlight that used solid colors, which provide greater contrast. I moved away from that style of highlighting because it makes it impossible to tell when you've set a custom font or background color, but I think it could be used in specific use cases, such as when the search bar or search and replace is open.

Theoretically, any colors can be used for text selection. I cannot invert the colors that easily though. That would require using a shader, which is one of those things I'm holding off on doing until after the transition to Qt 6.

videosmith commented 1 year ago

Can we choose the selection background color from a palette like the 'set color' option in the Background menu?

Cuperino commented 11 months ago

I've figured out a super simple way to achieve this: I can make the text selection colors different when the Find bar is showing, and revert back to the current colors when it is closed.

I've used the colors from the screenshot you've sent, I think that was a great color choice!

videosmith commented 11 months ago

Nice! On Tuesday, October 17, 2023 at 08:28:16 PM EDT, Javier O. Cordero Pérez @.***> wrote:

I've figured out a super simple way to achieve this: I can make the text selection colors different when the Find bar is showing, and revert back to the current colors when it is closed.

I've used the colors from the screenshot you've sent, I think that was a great color choice!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>