-
Notifications
You must be signed in to change notification settings - Fork 1.2k
qt: Generalized css files, simple design changes, added scripts to keep track of color usage #3508
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
qt: Generalized css files, simple design changes, added scripts to keep track of color usage #3508
Conversation
|
Just merged #3500 , needs rebase now. |
0f988bb to
0d680ab
Compare
|
Done! Also updated the initial description. |
UdjinM6
left a comment
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.
Pls see inline comments +
update_colors.pyshould be incontrib/devtoolsIMO (will require corresponding changes in code);- is there a reason to add
src/qt/res/css/colors/(and files inside of it) to the repo and not have it as a local only one? These files are kind of temporary ones and not used in any way in the build process, only as a helper to find some potential weirdness in css files if I get it correctly. If that's true, should also addsrc/qt/res/css/colors/toCLEAN_QTinMakefile.qt.includeto make sure they are wiped out onmake clean.
1d95a84 to
d6f1d49
Compare
|
Good points 👍 Changed, and yeah you got it right, those files are just helpers 🙂 Removed them from the repo and added them to |
UdjinM6
left a comment
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.
A couple more potential script fixes, pls see https://github.com/UdjinM6/dash/commits/pr3508.
Design changes looks mostly ok to me, noticed one issue in Traditional theme, see below.
80e5ac3 to
c5c8ad7
Compare
|
Thanks for the updates to the script, picked them all 👍 |
|
Looks mostly good. One issue I noticed is that there are two red colors in UI now - |
|
I have another pull requesting coming up soon which fixes your issue with the red and brings overall more consistency to layouts and coloring. Is it good enough to see this as accepted issue in this PR? 😄 I will be ready with the other PR probably today or tomorrow! |
|
This is a massive PR, imo it probably makes sense to split it out into smaller PRs or in future smaller PRs to make review easier |
|
Isn't it splitting the PR the same (at least for reviewing) as if you just make use of the commit selection feature? Tell me for the future, how would you have split this to make it more appropriate? To give you my reason why i chose to push this all into this PR: Just to have an as much as possible clean transition for from "layout changes in |
|
It's hard for me to get the motivation to review 33 commits, so splitting it up makes it a bit easier emotionally 😂 To me most of the commits seem atomic, so you probably could have split it a number of ways. The update colors script and associated stuff probably could've been in a separate PR. |
|
haha there were only 23 commits when i submitted! 😅 And wouldn't you still have all 33 pop up in the last PR because they all are based on each other if i would split this up now? 🤔 Please don't get me wrong, in general i totally get the idea of small pull requests though in this case i somehow just felt like i need to push this all into one "cleanup-commit" which contains all css restructuring i had in mind, sorry 🙈 Anyway.. if you still reeaallly want me to split this one, let me know i will do it for sure! |
|
Nah, this PR is probably fine. I gave it a code review, will test tomorrow or next day |
PastaPastaPasta
left a comment
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.
see above
don't you like the increase? That was intentional because i rather thought they were too small before at least without those boxes around it.. 😅 I have changes to all this already coming in other PRs very soon. Im currently still testing and fixing for windows/linux will push all that once its sorted. IMO it would make sense to leave this one here as it is if there are no more changes to the python script required. |
|
I think they look too big now... Idk... Maybe it's fine What about the other issues? |
- Removed grey boxes around labels of SendCoinEntry - Changed button styles for add/clear button - Removed padding for send button
- Removed grey boxes around balance labels
…sign - Removed grey boxes around "Label", "Amount", "Message" and "Requested payment history" labels and increased their textsize - Changed the color of the "Requested payment history" label - Adjusted the style of the "Clear", "Remove" and "Show" buttons
- Increased size of selected sum labels
- Increased the size of the "Filter list" and "Node count" labels
- Removed alternated coloring
- Adjusted colors - Added rounded border
- update_colors.py is a python script which parses the css files and prints some details about their color usage into appropriate files in the css/colors directory. It also updates the <colors></colors> section for each css file. - Added <colors></colors> section to css files for automated color updates by update_colors.py
This also moves the file from src/qt/res/css to contrib/devtools
Its #AARRGGBB not #RRGGBBAA! Co-authored-by: UdjinM6 <[email protected]>
60112aa to
ded2872
Compare
codablock
left a comment
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.
limited utACK from my side. I can't really review any of the CSS changes in a meaningful way as I don't understand anything of it however ;) But I can verify that this doesn't break anything obvious as it doesn't touch critical stuff.
UdjinM6
left a comment
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.
ACK
PastaPastaPasta
left a comment
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.
Light ACK, utACK for 0.17 at this point. If we finish all the UI stuff before 16 is out we can maybe backport it
…ep track of color usage (dashpay#3508) * qt: Send tab - Generalized related CSS and some redesign - Removed grey boxes around labels of SendCoinEntry - Changed button styles for add/clear button - Removed padding for send button * qt: Overview tab - Generalized related CSS and some redesign - Removed grey boxes around balance labels * qt: Receive tab & QPushButton - Generalized related CSS and some redesign - Removed grey boxes around "Label", "Amount", "Message" and "Requested payment history" labels and increased their textsize - Changed the color of the "Requested payment history" label - Adjusted the style of the "Clear", "Remove" and "Show" buttons * qt: Transaction tab - Generalized related CSS and some redesign - Increased size of selected sum labels * qt: Masternode tab - Generalized related CSS and some redesign - Increased the size of the "Filter list" and "Node count" labels * qt: CoinControl dialog - Generalized related CSS and some redesign - Removed alternated coloring * qt: Sync overlay - Generalized related CSS and some redesign - Adjusted colors - Added rounded border * qt: About dialog - Generalized related CSS * qt: Edit address dialog - Generalized related CSS * qt: Help message dialog - Generalized related CSS * qt: RPC console - Generalized related CSS and some redesign - Changed colors for network activity legend (signal colors TBD in a code change commit) * qt: Options dialog - Generalized related CSS * qt: Ask passphrase dialog - Generalized related CSS * qt: Addressbook page - Generalized related CSS * qt: Sign/Verify dialog - Generalized related CSS * qt: Open URI dialog - Generalized related CSS * qt: Generalized remaining individual Qt classes * qt: Fixed indentation in css files * qt: Use newlines for multiple selector entries * qt: Formal cleanups in all css files * qt: Add copyright and file description to all css files * qt: Add update_colors.py, prepare css files for scripted color updates - update_colors.py is a python script which parses the css files and prints some details about their color usage into appropriate files in the css/colors directory. It also updates the <colors></colors> section for each css file. - Added <colors></colors> section to css files for automated color updates by update_colors.py * qt/contrib: Moved update_colors.py to update-css-files.py This also moves the file from src/qt/res/css to contrib/devtools * build: Remove files in src/qt/res/css/colors when running "make clean" * git: Add src/qt/res/css/colors/* to gitignore and remove the files from the repo * path -> css_folder_path * Resolve path and fail early * Create 'colors/' if it doesn't exist and fail if smth went wrong * Run git after all filesystem preparations are done * qt: Fix background-color of bgWidget in trad.css Its #AARRGGBB not #RRGGBBAA! Co-authored-by: UdjinM6 <[email protected]> * qt: Run update_colors.py * contrib: Use case insensitive regex for color matching * qt: Update colors in css files * contrib: Remove obsolete import in update-css-files.py Co-authored-by: UdjinM6 <[email protected]>
…ep track of color usage (dashpay#3508) * qt: Send tab - Generalized related CSS and some redesign - Removed grey boxes around labels of SendCoinEntry - Changed button styles for add/clear button - Removed padding for send button * qt: Overview tab - Generalized related CSS and some redesign - Removed grey boxes around balance labels * qt: Receive tab & QPushButton - Generalized related CSS and some redesign - Removed grey boxes around "Label", "Amount", "Message" and "Requested payment history" labels and increased their textsize - Changed the color of the "Requested payment history" label - Adjusted the style of the "Clear", "Remove" and "Show" buttons * qt: Transaction tab - Generalized related CSS and some redesign - Increased size of selected sum labels * qt: Masternode tab - Generalized related CSS and some redesign - Increased the size of the "Filter list" and "Node count" labels * qt: CoinControl dialog - Generalized related CSS and some redesign - Removed alternated coloring * qt: Sync overlay - Generalized related CSS and some redesign - Adjusted colors - Added rounded border * qt: About dialog - Generalized related CSS * qt: Edit address dialog - Generalized related CSS * qt: Help message dialog - Generalized related CSS * qt: RPC console - Generalized related CSS and some redesign - Changed colors for network activity legend (signal colors TBD in a code change commit) * qt: Options dialog - Generalized related CSS * qt: Ask passphrase dialog - Generalized related CSS * qt: Addressbook page - Generalized related CSS * qt: Sign/Verify dialog - Generalized related CSS * qt: Open URI dialog - Generalized related CSS * qt: Generalized remaining individual Qt classes * qt: Fixed indentation in css files * qt: Use newlines for multiple selector entries * qt: Formal cleanups in all css files * qt: Add copyright and file description to all css files * qt: Add update_colors.py, prepare css files for scripted color updates - update_colors.py is a python script which parses the css files and prints some details about their color usage into appropriate files in the css/colors directory. It also updates the <colors></colors> section for each css file. - Added <colors></colors> section to css files for automated color updates by update_colors.py * qt/contrib: Moved update_colors.py to update-css-files.py This also moves the file from src/qt/res/css to contrib/devtools * build: Remove files in src/qt/res/css/colors when running "make clean" * git: Add src/qt/res/css/colors/* to gitignore and remove the files from the repo * path -> css_folder_path * Resolve path and fail early * Create 'colors/' if it doesn't exist and fail if smth went wrong * Run git after all filesystem preparations are done * qt: Fix background-color of bgWidget in trad.css Its #AARRGGBB not #RRGGBBAA! Co-authored-by: UdjinM6 <[email protected]> * qt: Run update_colors.py * contrib: Use case insensitive regex for color matching * qt: Update colors in css files * contrib: Remove obsolete import in update-css-files.py Co-authored-by: UdjinM6 <[email protected]>





Prior to this PR
dark.cssandlight.csscontained a lot shared layout/style changes which were required to kept synced in both files when a design change happened. This PR generalises those shared layout/style changes and puts them intogeneral.csswhich is loaded before the actual theme css file.This is currently based on #3500 so the actual first commit of this PR is 5530541. Will rebase ondevelopas soon as the other PR is merged.Generalizations and some redesigns
e47ef8c to 2d5610b are the ones putting all shared changes into
general.css. They also contain some simple redesigns for that see the individual commit or below the before/after images.Cleanup
06482d9 to cadfd7f are cleaning up the css files, giving them the same structure and fix color issues happened due to the generalizations.
e64e046 adds copyright and a file description to all css files
Script
84cbfad adds the python script
update_colors.pywhich parses all the css files, generates a list of used colors and puts them into the appropriate css file's description section between<colors></colors>tags. It also generates the files insrc/qt/res/css/colors/. They contain some expandable "analyses" of the color usage in the css files. Currently those files contain:0d680abfab4649c2539f37d5ebe7c8fc77cc9ed2 just adds the results of running
update_colors.pyBefore/After
Here are some before/after images with the most significant changes highlighted in the light theme (they apply the same to the dark) compared to #3500.
Light
Dark