-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add dark mode #2286
Comments
YES !!!! |
also in other news... Jan 2021. Headlines read: " Bisq Becomes Less Platform...More Trading Protocol "a user by the name of 'ripcurlx' reportedly saying Bisq
with user 'cbeams' saying
(a user 'manfredkarrer' was not available for comment but was last seen touring with the band U2 ) |
Haha.... but not U2 please ;-) |
@ripcurlx I'd like to take this on if nobody has started it yet. Maybe it would be good to start with refactoring the CSS into smaller chunks using SASS (the colors would reside in a separate configuration, defined as variables), then introduce classes that Does that sound like a good plan? |
@peterzen Please request @ManfredKarrer to add you as contributor and I'm able to assign you to this task.
You can split up the css file in smaller chunks to make it easier to work with. For that, we either have to load them manually or we use additional tooling. I leave the decision to you as long as it works with our current setup and integrates nicely within IntelliJ without doing any manual work during development. bisq/desktop/src/main/java/bisq/desktop/app/BisqApp.java Lines 221 to 224 in bf94810
Still in the end I guess we'll need to load at least two files (colors + styles) or have two different compiled files (light style, dark style) that can be switched in the preferences. Do you have experience using SASS within JavaFX? |
I tested a number of gradle plugins - robfletcher/gradle-compass didn't quite work (issue with the maven repo) but the While it's indeed not a major difference in terms of savings in code lines, the ability to use SASS variables and mixins help a lot in keeping duplications low and the UI consistent down the line (not just in terms of color scheme but other things like typography and UI sizing). IntelliJ has a SASS language support plugin and a linter which makes the editing of the SCSS sources easier on the eye slightly. I'll play around more with it and see whether the cost/benefit of an extra build step makes sense or not. I don't have previous experience with SASS/JavaFX beyond reading up on it but found some articles that recommend it for the same reason as in the traditional web dev context. |
If you find a working setup it might help to clean up our CSS step by step. The css grew organically over the last couple of years by multiple developers and it would be great to get it more modular and easier to maintain. Maybe some time in the future if we decide to use Java modules for different sections we could also bundle separate css files with it to speed up loading times of the app even more. But I don't have experience with it yet and have to focus now more on the DAO until it is live on Mainnet. Thanks for helping out! |
Todos:
The text was updated successfully, but these errors were encountered: