Room exits dialog room # tooltip is coloured

Bug #1369040 reported by Vadim Peretokin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mudlet
Fix Released
Medium
Stephen Lyons

Bug Description

The tooltip for some reason is coloured, making it really difficult to read when your OS's tooltips are on a black background by default. The text colour should stay default.

Attached is a screenshot demonstrating the problem.

Revision history for this message
Vadim Peretokin (vperetokin) wrote :
Revision history for this message
Stephen Lyons (slysven) wrote :

It seems to me that the tool tip for the Exit to RoomID QTextEdits' take on the colouring applied to the text being displayed in that widget. Not sure if there is a consistent way to find out the background that the tool-tip is over to ensure it contrasts sufficiently.

Stephen Lyons (slysven)
Changed in mudlet:
status: New → Confirmed
Stephen Lyons (slysven)
Changed in mudlet:
assignee: nobody → Stephen Lyons (slysven)
importance: Undecided → Medium
status: Confirmed → In Progress
Revision history for this message
Stephen Lyons (slysven) wrote :

It is caused by the "Cascading" nature of the CSS that Qt is emulating - by default using the setStyleSheet() method on the line edits used to hold the exit to room id numbers to colour them is being carried down to their child elements which includes the tooltips. I have found the fix is to be explicit when using this method to ensure it only is applied to the parent element (the QLineEdit).

Fix proposed in: https://github.com/Mudlet/Mudlet/pull/216

Revision history for this message
Stephen Lyons (slysven) wrote :

Fix merged into Mudlet/development branch.

Changed in mudlet:
status: In Progress → Fix Committed
Changed in mudlet:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.