Repository navigation
make paused chat indicator more apparent - #6123
Conversation
| auto brush = QBrush(color); | ||
|
|
||
| const auto widgetHeight = this->height(); | ||
| const auto pausedY = widgetHeight - a - 5; |
There was a problem hiding this comment.
warning: narrowing conversion from 'int' to 'float' [bugprone-narrowing-conversions]
const auto pausedY = widgetHeight - a - 5;
^| painter.drawRect(QRectF(pausedX, pausedY, a / 4, a)); | ||
|
|
||
| QFont font = painter.font(); | ||
| font.setPixelSize(a); |
There was a problem hiding this comment.
warning: narrowing conversion from 'float' to 'int' [bugprone-narrowing-conversions]
font.setPixelSize(a);
^| if (dx != 0 || dy != 0) | ||
| { | ||
| painter.drawText( | ||
| QRectF(textX + dx, pausedY + dy, textWidth, a), |
There was a problem hiding this comment.
warning: narrowing conversion from 'int' to 'float' [bugprone-narrowing-conversions]
QRectF(textX + dx, pausedY + dy, textWidth, a),
^|
I don't think the indicator should be at the bottom. Considering we have "Pause chat on hover", users likely want to read the last messages. Imo, an outline around the pause icon should be fine. Or maybe just the string "paused". |
|
Could you experiment with a red outline around the pause icon (and no text)? |
I think if anything the icon should stay: I do feel, though, that the outlined icon alone still may be difficult to notice for those with poor vision. how would you feel about also making it a touch bigger, @Nerixyz ?: |
|
To confirm previous feedback, position shouldn't change with this PR but feel free to experiment more what makes it pop out and isn't ugly |
Oh, sorry for the confusion. I meant that the icon should stay, but the text should only say paused.
What about adding a background similar to the tooltip, and possibly making the pause icon lighter? If we do that, we can ensure sufficient contrast on both light and dark themes: (should probably be smaller and the lighter color shouldn't be |
fixed |









fixes #2688
the paused chat indicator in its current form is a little bit difficult to see. I am suggesting:
screenshots
before
after (dark theme)
after (black theme)
after (light theme)
after (white theme)