As there were a few readability issues with certain OS themes and our self-defined progressbar style, this reverts the bar to OS defaults.
Fixes #1071.
Dunno why, but the default is now even readable on Win7 as the text stays black, no matter if the Window is active or not ... I'm fine with the OS default then!
421 | @@ -425,17 +422,17 @@ void BitcoinGUI::trayIconActivated(QSystemTrayIcon::ActivationReason reason) 422 | void BitcoinGUI::toggleHidden() 423 | { 424 | // activateWindow() (sometimes) helps with keyboard focus on Windows 425 | - if(isHidden()) 426 | + if (isHidden())
Why add spaces here? Most if the ifs() are like this, and IMO that's fine.
There are at least 5 places in where it is if () instead of if(). What do you prefer? I'll use that in the future, if we don't get a new standard coding style, so that you and I use the same as we often work on the same code parts.
I always use this coding style for if/expressions:
if(a && !b && ((c + d) < e))
{
}
else [if(...)]
{
}
You can recognize other people's code if it is different :-) So I prefer it that way, but won't reject pull requests on it unless it's an absolute mess otherwise.
My point was that here's no need to change this function in this patch. We like minimal changes for small things, as they make merging (of other patches, less rebases) easier.
The dominant bitcoin coding style is overwhelmingly "if (", with a space. Two seconds of grep would show that...
Let us continue to be consistent with the rest of the code.
Maybe in the core. Not in the Qt code.
Whatever the common coding style is, commits shouldn't be cluttered with unrelated changes.
Why was this merged? This is how it looks now for me: http://bitcoin.sipa.be/bitcoinqt.png