Bug 416655 - Text field and spinbox of a non-KDE Qt5 app can be borderless with Breeze style
Summary: Text field and spinbox of a non-KDE Qt5 app can be borderless with Breeze style
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (show other bugs)
Version: 5.26.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-23 17:43 UTC by Patrick Silva
Modified: 2024-02-29 11:59 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
breeze style (84.57 KB, image/png)
2020-01-23 17:43 UTC, Patrick Silva
Details
fusion style (78.33 KB, image/png)
2020-01-23 17:44 UTC, Patrick Silva
Details
qtcurve style (83.58 KB, image/png)
2020-01-23 17:44 UTC, Patrick Silva
Details
photoflare - breeze (157.82 KB, image/png)
2020-01-23 21:32 UTC, Patrick Silva
Details
photoflare - fusion (157.76 KB, image/png)
2020-01-23 21:32 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-01-23 17:43:50 UTC
Created attachment 125337 [details]
breeze style

SUMMARY
Reported to developer of FFaudioConverter.
https://github.com/Bleuzen/FFaudioConverter/issues/2

His comment:
"The Breeze theme just seems to have no border for QLineEdit elements. Not sure if this is a design decission of them or a bug."

The same GUI elements have a border with fusion or qtcurve styles.
Compare the attached screenshots please.

STEPS TO REPRODUCE
1. set global theme to Breeze in system settings > global theme
2. open FFaudioConverter (available in flathub and Arch AUR)
3. click in "Settings" button > "Advanced" tab

OBSERVED RESULT
borderless text field and spinbox

EXPECTED RESULT
text field and spinbox have border and look better

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.90
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0
Comment 1 Patrick Silva 2020-01-23 17:44:30 UTC
Created attachment 125338 [details]
fusion style
Comment 2 Patrick Silva 2020-01-23 17:44:45 UTC
Created attachment 125339 [details]
qtcurve style
Comment 3 Nate Graham 2020-01-23 19:57:43 UTC
> "The Breeze theme just seems to have no border for QLineEdit elements. Not sure if
> this is a design decission of them or a bug."
Hmm, that's not true at all.
Comment 4 Patrick Silva 2020-01-23 21:32:04 UTC
Created attachment 125348 [details]
photoflare - breeze

Photoflare is another non-KDE Qt5 app affected.
https://photoflare.io/

As we can see in the attached screenshot, the spinboxes and the empty "background" dropdown are borderless when Breeze style is used. Furthermore, "Unit" dropdown looks ugly without padding in the left side (the same occurs with dropdows of FFaudioConverter).
Photoflare looks much better with Fusion style.
Comment 5 Patrick Silva 2020-01-23 21:32:45 UTC
Created attachment 125349 [details]
photoflare - fusion
Comment 6 Noah Davis 2020-01-24 04:14:11 UTC
Breeze's flat (no frame) line edits show either when an application author has intentionally made the line edits have no frame or when the line edits are below a certain amount of height. Oxygen behaves the same way as Breeze in that way. I'm not sure if it's intended or if it was accidentally borrowed from Oxygen where removing the glow effect when there isn't enough space makes sense.

Fusion and QtCurve don't implement that kind of behavior where making the line edit too small can make the frame disappear, which is probably for the best.

I'll see about removing or changing the special behavior for small line edits since it clearly makes things worse.
Comment 7 Patrick Silva 2024-02-29 11:59:58 UTC
Same on Plasma 6.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland