-
-
Notifications
You must be signed in to change notification settings - Fork 355
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 Style and Colors #1080
GUI Style and Colors #1080
Conversation
Added new image assets
Added image assets and removed duplicate entries
moved to dedicated stylesheet
Set weekend color here as it cannot be done in the stylesheet
Fixed name conflict during compile
Clearer element names and small tweaks in UI consistency
Colorize icons uniformly across platforms and move text customization to stylesheet
Remove icons from buttons that already have text
fixed alignment issue
added stylesheet
moved styling to stylesheet
Prevent colorization of certain icons
Add logo to main toolbar
read and load stylesheet
Icons removed from main toolbar and menu
removed a few more icons from buttons with test
changed color
stylesheet
Update Makefile.qt.include forgot to add the css
This pull request fixes 2 alerts when merging 1b69f13 into 901ddd1 - view on LGTM.com fixed alerts:
|
As far as I can see the problem lies with element sizes set in the stylesheet which do not scale. My Qt experience is from before they introduced all the HiDPI scaling stuff so I am unsure of the best way forward. The tableview header columns can be dragged to size (which I also need to do with the original GUI if I set my monitor to use 175% scaling at 4k). The toolbar buttons in the current code are auto-generated when the actions are created and added to the toolbar in bitcoingui.cpp. The size is then set in the stylesheet (which doesn't scale). Ideally the toolbar should be rebuilt as buttons in a horizontal layout which should then allow dynamic sizing based on button content size to occur. This would require a decent amount of work to rewrite. It may be possible to load separate stylesheets or modify values via regex based on the scaling factor. Also, when I set my monitor to 4k and 175% scaling I do not get the same result as in the images above. Possibly due to different version of Qt? I am using 5.9 (from the depends build). |
I'll read up some more and see if I can find an easier solution |
Setting the font size made it scale properly for me under win10. |
Better support for HiDPI scaling on windows and possibly other platforms
This pull request fixes 5 alerts when merging 98885dc into 634fc2d - view on LGTM.com fixed alerts:
|
Set Qt attributes before QCoreApplication is created
Yes it should be above I missed that warning as for some reason I get zero console output on win10 when running firo-qt.exe via cmd.exe or powershell. |
This pull request fixes 6 alerts when merging 0d159d2 into 634fc2d - view on LGTM.com fixed alerts:
|
* New Image Assets Added new image assets * Update bitcoin.qrc Added image assets and removed duplicate entries * Update modaloverlay.ui moved to dedicated stylesheet * Customize Calendar Widget Set weekend color here as it cannot be done in the stylesheet * Update sigmadialog.ui Fixed name conflict during compile * Update UI element names Clearer element names and small tweaks in UI consistency * Update platformstyle.cpp Colorize icons uniformly across platforms and move text customization to stylesheet * Update UI forms Remove icons from buttons that already have text * Update lelantusdialog.ui fixed alignment issue * Update bitcoin.qrc added stylesheet * Update bitcoingui.cpp moved styling to stylesheet * Keep certain icons black Prevent colorization of certain icons * Add logo to main toolbar Add logo to main toolbar * Load stylesheet read and load stylesheet * Remove icons Icons removed from main toolbar and menu * Update signverifymessagedialog.cpp removed a few more icons from buttons with test * Update chevron.png changed color * alignment * Create firo.css stylesheet * Fix testnet splash image and jenkins build error Update Makefile.qt.include forgot to add the css * Update firo.css Better support for HiDPI scaling on windows and possibly other platforms * Update bitcoin.cpp Set Qt attributes before QCoreApplication is created
Set Qt attributes before QCoreApplication is created New Image Assets Added new image assets Update bitcoin.qrc Added image assets and removed duplicate entries Update modaloverlay.ui moved to dedicated stylesheet Customize Calendar Widget Set weekend color here as it cannot be done in the stylesheet Update sigmadialog.ui Fixed name conflict during compile Update UI element names Clearer element names and small tweaks in UI consistency Update platformstyle.cpp Colorize icons uniformly across platforms and move text customization to stylesheet Update UI forms Remove icons from buttons that already have text Update lelantusdialog.ui fixed alignment issue Update bitcoin.qrc added stylesheet Update bitcoingui.cpp moved styling to stylesheet Keep certain icons black Prevent colorization of certain icons Add logo to main toolbar Add logo to main toolbar Load stylesheet read and load stylesheet Remove icons Icons removed from main toolbar and menu Update signverifymessagedialog.cpp removed a few more icons from buttons with test Update chevron.png changed color alignment Create firo.css stylesheet Fix testnet splash image and jenkins build error Update Makefile.qt.include forgot to add the css Update firo.css Better support for HiDPI scaling on windows and possibly other platforms GUI Style and Colors (firoorg#1080) * New Image Assets Added new image assets * Update bitcoin.qrc Added image assets and removed duplicate entries * Update modaloverlay.ui moved to dedicated stylesheet * Customize Calendar Widget Set weekend color here as it cannot be done in the stylesheet * Update sigmadialog.ui Fixed name conflict during compile * Update UI element names Clearer element names and small tweaks in UI consistency * Update platformstyle.cpp Colorize icons uniformly across platforms and move text customization to stylesheet * Update UI forms Remove icons from buttons that already have text * Update lelantusdialog.ui fixed alignment issue * Update bitcoin.qrc added stylesheet * Update bitcoingui.cpp moved styling to stylesheet * Keep certain icons black Prevent colorization of certain icons * Add logo to main toolbar Add logo to main toolbar * Load stylesheet read and load stylesheet * Remove icons Icons removed from main toolbar and menu * Update signverifymessagedialog.cpp removed a few more icons from buttons with test * Update chevron.png changed color * alignment * Create firo.css stylesheet * Fix testnet splash image and jenkins build error Update Makefile.qt.include forgot to add the css * Update firo.css Better support for HiDPI scaling on windows and possibly other platforms * Update bitcoin.cpp Set Qt attributes before QCoreApplication is created ui fixes debug alignment inverted tool/tab bar colors fixed visibility of toolbar extension button font size alternating tableview colors Update firo.css
* New Image Assets Added new image assets * Update bitcoin.qrc Added image assets and removed duplicate entries * Update modaloverlay.ui moved to dedicated stylesheet * Customize Calendar Widget Set weekend color here as it cannot be done in the stylesheet * Update sigmadialog.ui Fixed name conflict during compile * Update UI element names Clearer element names and small tweaks in UI consistency * Update platformstyle.cpp Colorize icons uniformly across platforms and move text customization to stylesheet * Update UI forms Remove icons from buttons that already have text * Update lelantusdialog.ui fixed alignment issue * Update bitcoin.qrc added stylesheet * Update bitcoingui.cpp moved styling to stylesheet * Keep certain icons black Prevent colorization of certain icons * Add logo to main toolbar Add logo to main toolbar * Load stylesheet read and load stylesheet * Remove icons Icons removed from main toolbar and menu * Update signverifymessagedialog.cpp removed a few more icons from buttons with test * Update chevron.png changed color * alignment * Create firo.css stylesheet * Fix testnet splash image and jenkins build error Update Makefile.qt.include forgot to add the css * Update firo.css Better support for HiDPI scaling on windows and possibly other platforms * Update bitcoin.cpp Set Qt attributes before QCoreApplication is created
PR intention
Update the GUI colors and styling