[bisq-network/bisq] Center align tick marks text for trading charts (#4740)

deusmax notifications at github.com
Mon Nov 2 21:37:38 CET 2020


New method addTickMarkLabelCssClass to grab the axis tick label and add a CSS class to it.

Signed-off-by: Deus Max <deusmax at gmx.com>
Acked-by: Deus Max <deusmax at gmx.com>

<!-- 
- make yourself familiar with the CONTRIBUTING.md if you have not already (https://github.com/bisq-network/bisq/blob/master/CONTRIBUTING.md)
- make sure you follow our [coding style guidelines][https://github.com/bisq-network/style/issues)
- pick a descriptive title
- provide some meaningful PR description below
- create the PR
- in case you receive a "Change request" and/or a NACK, please react within 30 days. If not, we will close your PR and it can not be up for compensation.
- After addressing the change request, __please re-request a review!__ Otherwise we might miss your PR as we tend to only look at pull requests tagged with a "review required".
-->

Your PR description here.
@ghubstan  as discussed in PR#4175. to center-align tick mark text.
Add a CSS class to the axis tick marks text. The CSS class can be used to add any css command, such as `-fx-text-align: center` to the labels.
Here is a screenshot of the results:
![Bisq-chartaxes-day_centeralign-2020-11-02](https://user-images.githubusercontent.com/142019/97916540-c9cfcb80-1d5b-11eb-9003-286aee9983c4.png)


You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq/pull/4740

-- Commit Summary --

  * Add CSS class to axis tick label text.

-- File Changes --

    M desktop/src/main/java/bisq/desktop/bisq.css (5)
    M desktop/src/main/java/bisq/desktop/main/market/trades/TradesChartsView.java (18)

-- Patch Links --

https://github.com/bisq-network/bisq/pull/4740.patch
https://github.com/bisq-network/bisq/pull/4740.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4740
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201102/16703d3c/attachment.html>


More information about the bisq-github mailing list