A green testnet splashscreen with a normal, orange dock icon looks strange and can confuse users.
osx: show testnet icon in dock as early as possible #2614
pull jonasschnelli wants to merge 1 commits into bitcoin:master from jonasschnelli:icon_testnet_mac changing 1 files +11 −0-
jonasschnelli commented at 2:15 PM on May 3, 2013: contributor
-
367491df9d
osx: show testnet icon in dock as early as possible
A green testnet splashscreen with a normal, orange dock icon looks strange and can confuse users. Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch>
-
BitcoinPullTester commented at 3:07 PM on May 3, 2013: none
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/367491df9d4a4e323a9d20fc118446ddccf08e11 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
-
Diapolo commented at 4:50 PM on May 3, 2013: none
Idea is good, but I dislike the fact that this is a) Mac only and b) we have that stuff as duplicate in
void BitcoinGUI::setClientModel(ClientModel *clientModel). Even on Windows we first have that normal tray icon and after loading it switches to testnet. I think it's worth to think about a better solution that covers all OSes and directly displays the correct icon.We currently set the default icon in the BitcoinGUI constructor, where we don't have acces to clientmodel, which is used to query for testnet later... see the problem? @laanwj Do you have a good idea?
-
laanwj commented at 7:28 PM on May 3, 2013: member
@diapolo The reason for this appears to be that on MacOSX it shows the dock icon already before the main window (and tray icon) is created, immediately at the start of the process. This has no analog in any other OS.
It is usually desirable to move the common code to a function, but in this case it's only one line (and result purely visual) so I'm not so sure.
On windows/linux it would be possible to change the icon a little bit sooner (ie, immediately when creating the main window) but mehh. It's only testnet, only developers get to see it anyway. Don't obsess about it too much.
- gavinandresen referenced this in commit db1dc95f0a on May 3, 2013
- gavinandresen merged this on May 3, 2013
- gavinandresen closed this on May 3, 2013
-
jonasschnelli commented at 6:54 AM on May 4, 2013: contributor
-
Diapolo commented at 10:35 AM on May 4, 2013: none
At least on Windows I get a tray-icon directly when the splashscreen is doing it's work and have our mainnet icon, before it get's switched to the testnet one... I think that is rather ugly ;) or at least not perfect ^^. So I asked for a global solution :).
- laudney referenced this in commit 93f3d7843d on Mar 19, 2014
- DrahtBot locked this on Sep 8, 2021