-
Notifications
You must be signed in to change notification settings - Fork 172
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
gui: Install Inter variable font and basic stylesheet changes #1926
gui: Install Inter variable font and basic stylesheet changes #1926
Conversation
- This file includes all glyphs, variation axes and named styles where the constant files did not. This should also cut down on final compilation size. Glyph Count: 2537 Variation Axes: Weight: 100 - 900, default 400 Slant: -10 - 0, default 0 Named Styles: Thin, Thin Italic, ExtraLight, ExtraLight Italic, Light, Light Italic, Regular, Italic, Medium, Medium Italic, SemiBold, SemiBold Italic, Bold, Bold Italic, ExtraBold, ExtraBold Italic, Black, Black Italic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it!
Spacing could be better in the tables. I actually prefer one size smaller font size after looking at it for awhile. |
I encourage you to build it and test both modes (normal and hi-dpi). |
I'd like to leave this PR open until several people have reviewed the effects. |
I've change the horizontal and vertical spacing in the overview page form and updated the screenshots. |
I feel like the vertical spacing is too compressed now. Maybe a middle ground between the original and the new shots you presented. I also think we should try 11 points, between the original 10 and the 12. |
Some initial thoughts...perhaps not entirely related to this PR... I've seen reports that some people cannot resize the pre-Inter wallet small enough for some displays (Windows VPS, RDP sessions, custom single-board display kits, improperly configured VMs, who knows...). Perhaps those aren't our problems, but increasing the default font size may aggravate the issue. Inter is highly-optimized for smaller font sizes. Legibility and visual appeal of body text may actually improve with smaller text and greater line heights because larger, compact text is difficult to scan (need to find the reference... something about it being harder for the eyes to lock into visual tracks). Global font face and size properties in the stylesheets override the properties set manually on widgets via code or Qt designer. We will need to identify these items and move the definitions to the stylesheets if we keep the global properties. We can't make everyone happy. Perhaps we can add a font-size option to the GUI settings in a later PR. |
That said, I think I like the changes... need to stare at it for a while so that the newness wears off. Maybe the high-DPI version is a little squashed. I will wait to see what your upcoming commits look like too. |
BTW some user reported intersecting (overlapping) text. If you take the main window and force the width smaller, the columns in the transaction summary start to clash. We should insure that the minimum column widths (and initial widths) make sense. When I set up the peer tab, I had to scale the column width by logicaldpiX() / 96 to get them to come out close to right on low-res and high-res displays. Would love to see thoughts on how to unmuck column size problems too. Since we are in the engine room on this, we might as well clean it up... |
For better scaling Qt DPI and HiDPI pixmap support need to be initialized in
#if QT_VERSION >= 0x050600 I wasn't sure to include this or not. I wouldn't be able to test it properly so I haven't presented the change. I think it is important we get the font size and form spacing to an agreeable size before deciding on form width/height constraints. I will make the changes @jamescowens requested regarding moving the font size to 11pt. and increasing the vertical spacing and we can go from there. I've noticed making changes in Qt forms require you to |
…tical spacing - Default font-size: 11pt - Overview Page: Labels to font-weight: 550 - Overview Page: Vertical spacing 6
60a4465
to
af9db12
Compare
I've updated the default font size to 11pt. and vertical spacing on the overview page. Screenshots have been updated. |
Thanks. I will take a look over the weekend, and also play around with the hidpi settings. I have both non hidpi and hipdi monitors here, so can see how it looks in various situations. |
I think this makes sense. If we do change it, we may want to a toggle button on the transactions page that switches between addresses and labels for a future enhancement so that users don't need to jump through the options dialog when they need to see the flip side. Or perhaps, instead of a yes/no option, someone can pick from "address", "label", or "both". |
After hearing some of the reactions I think the best approach is resetting the font changes and isolating the scope of this into one or two new themes that will be a work in progress. eg: Working with Qt and style changes in general isn't easy. One small change requires you to recompile the project from scratch to see the results. Changes will be slow and on going. With that being said making this into an opt-in change would give us some breathing room and wouldn't force any changes on the user as the original themes still remain. The other big issue is that of application window size. The new mock up (https://projects.invisionapp.com/share/APJIDTNFV47#/screens) assumes everyone is running at high resolution, which is not the case. Deciding on a one that works for everyone is going to be another hurdle. |
I agree, except I don't want to undo the already merged selection of the new fonts. I am happy with that the way it is... |
The other challenge is that the op sys default styles on different platforms have different interactions with the wallet, and testing all of the combinations is exceedingly cumbersome. |
I like the idea of WIP stylesheets. Perhaps "Testing - Light" and "Testing - Dark". |
Or maybe instead of a wip stylesheet there could be a legacy stylesheet? This way the font changes won't need to be reverted in the next release. |
We are NOT reverting the use of the new fonts, which is already merged. |
Well the way I was seeing it with a WIP stylesheet is that it would be reverted and the changes would be placed into the WIP stylesheet. I'm proposing to keep it as is but to also add a 'legacy' stylesheet which would contain the old stylesheet without the font changes. |
I am ok with a legacy stylesheet, but I do not want to go back to the wrong, proportional font for the console. |
My thoughts at this point were to remove forcing the "Inter" font in the stylesheet as default for everything in place and start from scratch with a new stylesheet that would include the changes. This would keep everything that's already merged in place as well as make it an opt-in change. This reverts the default behaviour back to normal (using system fonts) except for the console which would use the included change. I first proposed creating two new work in progress stylesheets. After looking at it, things would be much easier if we start with one until it's fully finished. I haven't had much time to work on things these last few weeks but I would like to get this into a position where I can start fiddling with things without encroaching on other user's experiences. |
The console fonts are a very noticable improvement which afaik no one has any issues with so I agree with @opsinphark. |
I actually like the new fonts, and on the fireside we got positive feedback. I would say leave the new fonts in place and experiment with new stylesheets. |
I have implemented the hidpi scaling and done some other fixups related to scaling as part of #1978. Note that Windows does NOT react well to QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); so I put a define conditional around it. |
Closing. Solved in another PR. |
Install Inter-Variable font and remove constant versions
Glyph Count:
2537
Variation Axes:
Weight: 100 - 900, default 400
Slant: -10 - 0, default 0
Named Styles:
Thin, Thin Italic, ExtraLight, ExtraLight Italic, Light, Light Italic, Regular, Italic, Medium, Medium Italic, SemiBold, SemiBold Italic, Bold, Bold Italic, ExtraBold, ExtraBold Italic, Black, Black Italic
Change default font-size to 11pt
10pt is too small to display the font correctly.
Vertical spacing to 6 in the Overview Page
Lower font-weight to 550 on the labels in the Overview Page
BEFORE (font size 10pt, vertical spacing 10)
AFTER (font size 11pt, vertical spacing 6)
BEFORE (HiDPI) (font size 10pt, vertical spacing 10)
AFTER (HiDPI) (font size 11pt, vertical spacing 6)