-
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: Update default font to Inter-Regular and console font to Inconsolata #1908
gui: Update default font to Inter-Regular and console font to Inconsolata #1908
Conversation
- This font is licensed under the Open Font License. - https://fonts.google.com/specimen/Inter?query=inter
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 think you are missing native_stylesheet.qss, right?
I like moving towards the new assets.
c627082
to
81a2c22
Compare
|
The native_stylesheet.qss is actively referenced anywhere in the code, it's merely there to provide a starting basis for a new stylesheet. It is beyond outdated and probably needs to be updated using the light or dark stylesheet. |
Are you sure about that? There is a native selection in the style drop down in the GUI, and it is definitely different than light. |
Further, native is actually better than light IMHO. |
The stylesheets are a mess quite frankly, and cycy and I didn't have time to fully fix them for the Fern release. If you want to take a shot at really getting them straight, that's great. Let's do it in a different PR than this though. Let's constrain this one to fix the main font + the console. |
Compiling your PR for testing now... |
Your right, it didn't see it loading at QT_ENABLE, it has bare minimum effects though. I will add the RPC font into the native stylesheet. Yes, they are a mess. The styles are combined both in the C++ and stylesheets, so some elements might override the other. After adding the RPC font to the native stylesheet all that is left is finding the right size for the RPC console icon. |
I just tried this to no effect...
|
81a2c22
to
5646011
Compare
I've added the RPC console font to the native stylesheet. This should fix all the issues beyond the icon size in the console. SCRATCH THAT. Will continue to work on this tomorrow. I've spotted a few other spots that have scaling issues. It's majorly frustrating to have three stylesheets that do not have the same elements. |
I had to do
|
The lineEdit is still not the right font... |
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.
Please make the requested changes. Thanks.
Ok. I saw your comments on making further changes to the stylesheets. |
Some other things to point out while you are at it where the NATIVE stylesheet is better... Notice that the labels on the icons are truncated for dark or light, but the menu items are too close together for native. You are going to have to be very careful to ensure you get the best behavior across the board when you straighten these out. Hippocratic Oath applies too... do no harm... |
I got it to work correctly with all three styles, and the proportional font is the correct one too... Please see jamescowens@376785c |
Alright. Let's see after you make further changes tomorrow. You can look at my branch if it helps at all. |
Gentlemen,
If this is the wrong way to report this, I apologize in advance.
I've been running the Gridcoin 5.0.1 wallet for several weeks now and have
seen the following "Error Message:" content on the main GUI a half a dozen
times or so. It doesn't seem to hurt anything that I can see, but I
thought you'd like to know:
Alert: EXCEPTION: NSt8ios_base7failureB5cxx11E
EnumBytes out of range: iostream error
C:\Program Files\GridcoinResearch\gridcoinresearch.exe in ProcessMessages()
;
David C Blanchard
MIT '76
609.238.3895
*"If I have seen a little farther than others, it is because I have stood
on the shoulders of giants"* -- Isaac Newton
*"If I have not seen as far as others, it is because giants were standing
on my shoulders."* -- Hal Abelson
*"In the field of Computer Science, we stand on each others' feet."* --
Richard Hamming
…On Sun, Oct 4, 2020 at 1:22 AM James C. Owens ***@***.***> wrote:
Alright. Let's see after you make further changes tomorrow. You can look
at my branch if it helps at all.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1908 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKW7PY2YS5GZQUPA7DXBRD3SJABCHANCNFSM4SDI65XQ>
.
|
- Adds the font Inconsolata-Regular to the application database. This font is licensed under the Open Font License. More information can be found here: https://fonts.google.com/specimen/Inconsolata?query=Inconsolata - Sets the global default font to 10pt rather than pixels to deal with any further DPI scaling issues. - Fixes missing elements in native_stylesheet.css that were not alllowing the RPC font to display correctly in the RPC console. (The stylesheets really need to be reworked entirely although this satisfies the scope of this PR)
5646011
to
730d3ab
Compare
All stylesheets have been fixed and are displaying both fonts properly. |
@dblanch256 that is an ignorable issue that has been reported several times, thanks. Someone is trying to inject a v2 (block version 11 transaction too early with fields that are out of range in the v10 protocol. The wallet is appropriate rejecting the transactions even though the error message is cryptic. BTW, normally you create a new issue for something like that, rather than mix in to an unrelated one... :) |
@opsinphark I will build from your PR here... |
Still noticing with Hi-DPI turned on the light and dark stylesheets still have truncated items. |
I made a couple of changes. It works now (at least the fonts, not the other issues you mentioned above)... |
I will PR to your branch... |
See opsinphark#1 You have to register both fonts in the bitcoingui.cpp file, because registering it in the rpcconsole.cpp file is too late. The main style sheets have already been processed. Also you need to use the alias names not the actual file names for the resources. |
Modifications to PR1908 to get fonts to initialize correctly
BTW, I agree wholeheartedly with you on the DPI scaling. I actually put a DPI ratio to 96 in a few places to scale the icons correctly. We need to adopt a general scaling approach I think. There is also the HiPDI switch or something with the newer Qt. Might want to look into that. Not sure how that works. |
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.
Looks good.
I will go ahead and merge this one, and we can start working on straightening out the rest of the stylesheet problems and HiDPI issues on a new one. |
It was the border: none; settings that was causing the truncation in the toolbar icon labels. Go figure. I think it is a bug. See my PR that is the continuation of the fixup... #1911 |
First run at importing assets from https://github.com/madmaxpayne/Gridcoin-wallet-redesign.
Adds
Inter
as the default font andInconsolata
as the RPC console fontThe font
SF Pro
cannot be used according to Apple's legal policy. It has been replaced withInter
which uses the Open Font License.More information about
Inter
can be found here:https://fonts.google.com/specimen/Inter?query=inter
More information about
Inconsolata
can be found here:https://fonts.google.com/specimen/Inconsolata?query=Inconsolata
For DPI scaling issues we might have to move to using
%
forfont-size
instead ofpx
orpt
.px
pixels (1px = 1/96th of 1in) (fixed width)pt
points (1pt = 1/72 of 1in) (fixed width)%
(sets to a percent of the parent element)Both of these changes will make the font universal over all platforms as they are compiled into the binaries themselves. Hopefully this will provide some display consistency.
Note:
The stylesheets need to be reworked entirely at some point. These commits should satisfy the scope of this PR.
Screenshots:
The Inconsolata font keeps the fixed width aspect for the RPC console: