Skip to content
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

Support themes for the user interface #25

Open
jbax opened this issue Jan 11, 2020 · 6 comments
Open

Support themes for the user interface #25

jbax opened this issue Jan 11, 2020 · 6 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jbax
Copy link
Member

jbax commented Jan 11, 2020

The ChartWindow will fire up a test UI I'm writing in plain java swing.

All colors, fonts and other settings used to plot the charts are currently hard coded in the controller classes. Would be great to be able to save any changes made via UI into a new theme file as well.

These should, in addition to using the given defaults, load a properties or json or maybe a limited CSS file (whatever makes sense) which define a theme. Ideally the user could load the preferred theme on the fly with the program running. This is partly supported already through implementations of the UpdateProcessor interface.

I'm opening this issue if anyone wants to lend a hand here.

@jbax jbax added help wanted Extra attention is needed enhancement New feature or request good first issue Good for newcomers labels Jan 11, 2020
@weisJ
Copy link

weisJ commented Apr 28, 2020

I know this doesn’t exactly relate to the issue of hard coded colour but if you are generally looking for a look and feel you might want to check out darklaf.

@jbax
Copy link
Member Author

jbax commented Apr 29, 2020

Thanks @weisJ, it looks great and I added it to the univocity-trader-chart subproject already.

@dev590t
Copy link

dev590t commented May 18, 2021

Hello @jbax, I have a question that I don't understand. Why have you decided implements univocity-trader-chart with java swing, and not a data visualization library? It will be much easier.
It exists many great data visualization lib like https://plotly.com/javascript/, and it is possible to use thought a java API.

I think It exists also java data visualization library, I give the example of plotly because it allow draw interactive and 3D chart. So it could be util for advanced data analysis.

@jbax
Copy link
Member Author

jbax commented May 18, 2021 via email

@dev590t
Copy link

dev590t commented May 19, 2021

@jbax

Because I like to control everything and charts in very specific ways.
These libs end up limiting you one way or another, especially if you need speed

I don't know what specific requirement you need. But if the main issue is the speed, maybe you can take a look at SwiftVis2.
It is a data visualization library design for the speed, parallelism, big data. The Swing/Java2D version of SwiftVis2 has a good benchmark:
https://dynamicsofprogramming.blogspot.com/2018/08/swiftvis2-and-speed-problems-with.html

For more info about the project,
https://www.researchgate.net/publication/330845267_SwiftVis2_Plotting_with_Spark_using_Scala
https://github.com/MarkCLewis/SwiftVis2

@jbax
Copy link
Member Author

jbax commented May 19, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants