qlog: text unreadable when selected

Bug #457895 reported by Craig Hewetson
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
High
Gary van der Merwe

Bug Description

Running default vista theme.
Select a revision in qlog.

Tags: qlog

Related branches

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :
Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

any workarounds for this problem?

Revision history for this message
Alexander Belchenko (bialix) wrote :

wow. weird.

Revision history for this message
Alexander Belchenko (bialix) wrote :

Is it using standalone windows installer?

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote : Re: [Bug 457895] Re: qlog: text unreadable when selected

>>Is it using standalone windows installer?
Yes

Revision history for this message
Alexander Belchenko (bialix) wrote :

Craig, I have no idea how to workaround this. qlog using custom rendering code to draw graph and write text in the same time. This is the root of problems with colors. It should be fixed again in Vista-aware style.

Does qlog --no-graph is also affected by this problem?

Revision history for this message
Alexander Belchenko (bialix) wrote :

Or maybe we should force old windows style behavior (aka windows xp) for qlog. I'm not sure is it possible, I have no access to Vista PC.

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

It was probably introduced by revs 969 and 970. That change was made so the it renders the highlight style correctly. (It use to look like this before: http://launchpadlibrarian.net/31887401/QBZRLog_BadButton.jpg )

I don't have a copy of vista, so I'm hoping you can help me debug this.

The color for both columns is decided in lib.revtreeview.StyledItemDelegate.get_text_color
http://bazaar.launchpad.net/~qbzr-dev/qbzr/trunk/annotate/head:/lib/revtreeview.py#L151
May be you can check that It is following the correct paths.

In the meantime, I'm going to read the qt code to see if there is any thing special that it does for vista.

P.s. This bug can also be seen here: http://1.bp.blogspot.com/_ulqEWRozxIE/StdFMdOCwjI/AAAAAAAAAAc/VtRwBFl-HtE/s1600-h/2.0.1and2.1.0b1.png

Changed in qbzr:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

Can't we use a generic way to render the text when selected. Something like
XOR color invert?

Well test the no-graph option soon

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

On Thu, Oct 22, 2009 at 9:14 AM, Craig Hewetson <email address hidden> wrote:
> Well test the no-graph option soon

no-graph won't make a difference.

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

Isn't there a platform specific set of colors for the text foreground when
selected?
What is the default colors used by the pyqt's table?

Revision history for this message
Alexander Belchenko (bialix) wrote :

Gary van der Merwe пишет:
> P.s. This bug can also be seen here:
> http://1.bp.blogspot.com/_ulqEWRozxIE/StdFMdOCwjI/AAAAAAAAAAc/VtRwBFl-
> HtE/s1600-h/2.0.1and2.1.0b1.png

Yep, the text is white on light blue background.

Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) wrote :

If custom colours are used, this is going to continue to be a problem when
people use different themes.

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

It seems the QWindowsVistaStyle alters it's pallet just before it paints.
see http://qt4-x11.sourcearchive.com/documentation/4.5.1-2/qwindowsvistastyle_8cpp-source.html , search for CE_ItemViewItem

Unfortunately there is no way that we can just reuse that code. We will have to put in a specific check for vista, and reproduce that code.

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

On Thu, Oct 22, 2009 at 9:30 AM, Craig Hewetson <email address hidden> wrote:
> If custom colours are used, this is going to continue to be a problem when
> people use different themes.

What makes you think that custom colors are use. Please read the
source code before you make statements like that.

Changed in qbzr:
assignee: nobody → Gary van der Merwe (garyvdm)
milestone: none → 0.16
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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