Skip to content

Conversation

@jonasschnelli
Copy link
Contributor

No description provided.

@laanwj laanwj added the GUI label Jan 9, 2015
@jonasschnelli
Copy link
Contributor Author

Will look like:

win:
bildschirmfoto 2015-01-09 um 11 55 27

osx:
bildschirmfoto 2015-01-09 um 11 58 56

@paveljanik
Copy link
Contributor

On OS X 10.10, Retina:
STATUS_COLUMN_WIDTH = 30:
status_column_width30
STATUS_COLUMN_WIDTH = 40:
status_column_width40

@jonasschnelli
Copy link
Contributor Author

@paveljanik as mentioned on IRC: please don't use Qt4 anymore for OSX builds. It doesn't support retina.

We even should drop Qt4 compatibility for OS X because it will end up with large icons as shown above.

@luke-jr
Copy link
Member

luke-jr commented Jan 9, 2015

A warning at the end of configure would be appropriate, but breaking it for no reason would just be annoying IMO. Some users probably don't have Retina, and wouldn't benefit from updating Qt.

@jonasschnelli
Copy link
Contributor Author

@luke-jr even non retina mac and older mac could run Qt5 binaries. With Qt5 the oversized icon would also render nice on non-retina.
Deprecated-unsupported warning is fine for me.

@jonasschnelli
Copy link
Contributor Author

@paveljanik could you retest this with Qt5 already?

@jonasschnelli
Copy link
Contributor Author

Regarding sizes: please see #5489

@jonasschnelli
Copy link
Contributor Author

@zander Transparent space in icons make icons look more uniform when displayed together without clustering the code with some magic padding numbers. And potential replacement would also be more complicated with static padding in the code.

@zander
Copy link

zander commented Jan 13, 2015

Transparent space in icons make icons look more uniform when displayed together

Definitely!

without clustering the code with some magic padding numbers.
And potential replacement would also be more complicated with static padding in the code.

Don't use static padding, just Qt::AlignmentCenter

Regarding sizing; you should really run optimize on the images before you merge, so you don't end up changing it twice. Git will keep all versions on everyones harddrive forever. Best to avoid unneeded changes. 15Kb vs 700 bytes is two orders of magnitude...

@jonasschnelli
Copy link
Contributor Author

Don't use static padding, just Qt::AlignmentCenter

But this would not solve uniforming sized between icons.

Regarding sizing; you should really run optimize on the images before you merge, so you don't end up changing it twice. Git will keep all versions on everyones harddrive forever. Best to avoid unneeded changes. 15Kb vs 700 bytes is two orders of magnitude...

Yes. But this time we encountered the size issue after the merging of some new icons. That's why we have now #5489 with a included script so we might run it next time before creating a PR or merge.

@zander
Copy link

zander commented Jan 13, 2015

Yes. But this time we encountered the size issue after the merging of some new icons. That's why we have now #5489 with a included script so we might run it next time before creating a PR or merge.

You say "yes", but I don't see a new push, so you really meant "no", didn't you?

Why don't you update this merge with the fixed icons?

@jonasschnelli
Copy link
Contributor Author

@zander Because #5489 is already open and has discussion and is not finished yet.

@jonasschnelli
Copy link
Contributor Author

optimized the two pngs in this pull according to #5489.

@fanquake
Copy link
Member

Needs rebase

@jonasschnelli
Copy link
Contributor Author

Rebased.

@fanquake
Copy link
Member

Tested ACK OSX 10.9 with Qt5

@laanwj
Copy link
Member

laanwj commented Jan 16, 2015

This makes the status column too wide here (Ubuntu Qt5). This is not really a problem, but looks asymmetric, because the column is not centered.

untitled

@jonasschnelli
Copy link
Contributor Author

@laanwj My ubuntu 14.04 gives out a more or less centered column.
bildschirmfoto 2015-01-16 um 14 00 51

will try now to center the content in the column.

@jonasschnelli
Copy link
Contributor Author

Centering the QIcon within the QTableWidgetCell would need a custom class with a QPainter (see http://qt-project.org/forums/viewthread/31839). Just setting the alignment did not work.

I don't think it's worth doing this.

@laanwj
Copy link
Member

laanwj commented Jan 16, 2015

Blegh.
Can we make the width adaptive somehow? I don't understand why it shows narrower wider here.

@jonasschnelli
Copy link
Contributor Author

@laanwj:
Currently i'm not investigating the width issue.
This pull make sense because the current master looks like this on windows:
bildschirmfoto 2015-01-20 um 14 37 11

@laanwj
Copy link
Member

laanwj commented Jan 21, 2015

But it's weird isn't it? The image has a fixed width in pixels. We set a fixed width in pixels for the column. How can this differ so much per OS or seemingly even per theme :/

@laanwj laanwj merged commit 652eb90 into bitcoin:master Jan 26, 2015
laanwj added a commit that referenced this pull request Jan 26, 2015
652eb90 [Qt] change transaction table column width (Jonas Schnelli)
af95b17 [Qt] resize oversized icons (Jonas Schnelli)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants