Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested Icons Displaying Small #945

Closed
ninavizz opened this issue Mar 17, 2020 · 2 comments
Closed

Nested Icons Displaying Small #945

ninavizz opened this issue Mar 17, 2020 · 2 comments
Labels
Qt Investigation For a thing that is blocked on known Qt capabilities ux

Comments

@ninavizz
Copy link
Member

ninavizz commented Mar 17, 2020

Problem

@kushaldas implemented the eye-icon within passphrase fields (PR #659), and @ntoll implemented our lovely spinner icon as an active-state within the Print and Export flows (PR #940 ).

In both instances, icons were correctly spec'd to size per the Zeplin mockups—however they displayed too small. Both Kushal and Nicholas explored rectifications, as well as sizing both assets absurdly large—and both observed QT's desire to constrain the icon size in both situations.

One is an animation, the other is a static SVG—so formatting of the image asset does not appear to be an issue.

Solution

Post-Beta, it'd be great to investigate why this is happening—and to rectify both of the above named situations. It is wonderful to have both bits of functionality, and as of this writing they simply "appear odd" vs broken or un-usable. FYI for prioritization.

@ninavizz ninavizz added the Qt Investigation For a thing that is blocked on known Qt capabilities label Mar 17, 2020
@ninavizz ninavizz added this to the Post-Beta milestone Mar 17, 2020
@ntoll
Copy link
Contributor

ntoll commented Mar 17, 2020

Heads up...

The QPushButton class has a setIconSize method (https://doc.qt.io/qt-5/qabstractbutton.html#iconSize-prop) which takes a QSize instance to describe the desired dimensions of the button's icon.

However, as the docs state: `The default size is defined by the GUI style. This is a maximum size for the icons. Smaller icons will not be scaled up."

So it looks like whatever "the GUI style" is, dictates the size of the button icon. I'm assuming this is the CSS associated with the button. My guess (and it's just that) is Qt won't allow the icon to grow bigger than some (unknown) proportion of the available widget dimension.

@ninavizz ninavizz added the ux label Mar 19, 2020
@zenmonkeykstop
Copy link
Contributor

WONTFIX in this iteration, icons are displaying as expected. Will revisit as part of future UX work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Qt Investigation For a thing that is blocked on known Qt capabilities ux
Projects
None yet
Development

No branches or pull requests

3 participants