blockchain download status is hard to read #1071

issue dooglus opened this issue on April 9, 2012
  1. dooglus commented at 9:20 PM on April 9, 2012: contributor

    I use a dark theme. Light text on a dark background.

    The recent change to the blockchain download status bar makes it hard to read due to the white text on bright orange background.

    If we're going to specify the background colour, we should also specify the text colour, or we risk making the text invisible.

    Here's how it looks to me:

    ...

  2. luke-jr commented at 9:25 PM on April 9, 2012: member

    I'd prefer to see a smart way to leave the OS default processbar colour alone... Any details on what the exact problem encountered was?

  3. dooglus commented at 9:29 PM on April 9, 2012: contributor

    The bright orange is horribly ugly on my monochrome theme. I'd prefer to have the process bar fit in with the theme, not be bright orange.

    I think #1025 (comment) in #1025 was the initial reason for the redesign.

    I submitted #1030 which left the style alone and just changed the text, but this was after #1025 had already done the redesign. I just hadn't seen #1025 at the time.

  4. Diapolo commented at 7:38 AM on April 10, 2012: none

    The default progressbar design is unreadable on quite a few OSes, sipa observed problems with it and on Win7 I also couldn't read it. That's why we changed to the current design ...

  5. dooglus commented at 7:40 AM on April 10, 2012: contributor

    Fair enough, but shouldn't you control both the foreground and the background, rather than just hoping the default foreground contrasts with your chosen background?

  6. Diapolo commented at 7:42 AM on April 10, 2012: none

    As far as I remember, the Qt specs didn't mention you could set the text color, too. If it's possible that could be added, sure.

  7. dooglus commented at 7:46 AM on April 10, 2012: contributor

    This seems to work:

    progressBar->setStyleSheet("QProgressBar { color: red; background-color: transparent; ...
    

    But since the bar is transparent, there's still the problem of having the text needing to show up against both the orange you specify and the background colour that you don't know. So:

    progressBar->setStyleSheet("QProgressBar { color: black; background-color: white; ...
    
  8. Diapolo commented at 7:55 AM on April 10, 2012: none

    I know it's a problem to ensure readability on all default OS themes + don't make it look ugly ... but a white background feels kind of ugly ^^.

  9. dooglus commented at 8:03 AM on April 10, 2012: contributor

    I don't really care what colours you pick so long as you pick some that make the text readable. Leaving one of the three colours to be decided by the OS vendor isn't a good idea.

  10. Diapolo commented at 8:07 AM on April 10, 2012: none

    I have to agree, but I'm not sure how to chose the best colorisation for this problem :-/.

  11. luke-jr commented at 1:01 PM on April 10, 2012: member

    I wonder how difficult it would be, to use the default style with an opacity of 50% so the window background brightness shows through?

  12. Diapolo commented at 1:19 PM on April 10, 2012: none

    I think opacity requires OS support for transparent windows and there are OSes and themes, which don't support that at all.

  13. laanwj commented at 9:09 AM on April 13, 2012: member

    Qt makes it possible to query what styling engine is used. I think it makes sense to only apply custom styling in the specific case of the QWindowsVistaStyle engine.

    Otherwise, simply rely on the default to do the right thing.

  14. Diapolo commented at 9:41 AM on April 13, 2012: none

    Talk to sipa, guess he uses some Linux, which also had unreadable text with the used theme. I'm fine with OS defaults, as long as text is readable. I really love orange though :-D.

  15. laanwj commented at 10:16 AM on April 13, 2012: member

    Arguably it is a problem with the theme or Qt and not with Bitcoin if text on the progress bar is unreadable, it is a common enough use-case.

    Orange kind of fits with the rest of the icons in the status bar, and the color of the bitcoin icon. It's not the color that is the problem, it is that this fix causes other (otherwise well-behaved themes) to break.

    Well at least I assume so. @dooglus, what happens if you completely remove the setStyleSheet line?

  16. dooglus commented at 10:23 AM on April 13, 2012: contributor

    This:

    and when almost done, this:

  17. laanwj commented at 10:26 AM on April 13, 2012: member

    ... which is perfectly OK, I guess? (except that maybe the progress bar should be wider, but that's a completely different thing)

  18. dooglus commented at 10:27 AM on April 13, 2012: contributor

    Yes. I deliberately narrowed the window so the ~ would be partially within the dark area of the progress bar.

    And the green checkmark shouldn't be there when 8 blocks are remaining. I think I made a separate issue (#921) for that.

  19. Diapolo commented at 10:29 AM on April 13, 2012: none

    As I'm going to be off for 7 days tomorrow, you are free to create a pull-request, which only replaces default style, when there are problems with readability. We could aswell add a small option into the settings -> display to set default or our theme for the bar?

  20. laanwj commented at 10:37 AM on April 13, 2012: member

    That's fine. I propose that we handle the exceptions on a case-by-case basis. @sipa can you comment what environments exactly have the readability issue with the default style sheet?

    No option for this, please. That'd be lazy and shoveling the trouble on the user.

    See you in a week!

  21. laanwj commented at 3:04 PM on April 13, 2012: member

    On Ubuntu and Kubuntu (default theme) it is also readable by default:

  22. dooglus commented at 3:09 PM on April 13, 2012: contributor

    If there are themes where it isn't readable, that's not a Bitcoin bug, but a theme bug. I'm not sure we should be doing anything about bugs in themes, other than reporting them in the appropriate place.

  23. Diapolo commented at 4:36 PM on April 13, 2012: none

    If there is a consensus to revert back to OS defaults, which I'm very fine with, as Win7 has no problems anymore in terms of readability with the Aero theme, I opened #1091.

  24. laanwj closed this on Apr 16, 2012

  25. sipa commented at 9:13 PM on April 17, 2012: member

    Ok, on Ubuntu 11.10, xmonad, it looks like this: http://bitcoin.sipa.be/bitcoinqt.png after merging #1091.

  26. coblee referenced this in commit a9d5d2a174 on Jul 17, 2012
  27. laanwj referenced this in commit 204d651edf on Aug 24, 2012
  28. laanwj referenced this in commit 382b75f528 on Aug 24, 2012
  29. luke-jr referenced this in commit bfe7cc638d on Sep 10, 2012
  30. suprnurd referenced this in commit bdcc9ab47c on Dec 5, 2017
  31. sanch0panza referenced this in commit e6ac67451a on May 17, 2018
  32. lateminer referenced this in commit 297acac8d6 on Nov 7, 2019
  33. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 18:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me