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

Increase top navigation button text size for Japanese locale #3133

Merged
merged 2 commits into from
Aug 25, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions desktop/src/main/java/bisq/desktop/bisq.css
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,10 @@ bg color of non edit textFields: fafafa
-fx-fill: -bs-rd-nav-deselected;
}

.nav-button-large .text {
-fx-font-size: 1em;
}

.nav-button:selected {
-fx-background-color: -bs-rd-white;
-fx-border-radius: 4;
Expand Down
4 changes: 4 additions & 0 deletions desktop/src/main/java/bisq/desktop/main/MainView.java
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,10 @@ private class NavButton extends AutoTooltipToggleButton {

this.setToggleGroup(navButtons);
this.getStyleClass().add("nav-button");
// Japanese fonts are dense, increase top nav button text size
if (model.getPreferences().getUserLanguage().equals("ja")) {
this.getStyleClass().add("nav-button-large");
}

this.selectedProperty().addListener((ov, oldValue, newValue) -> this.setMouseTransparent(newValue));

Expand Down