Increase top navigation button text size for Japanese locale

This commit is contained in:
wiz 2019-08-24 02:16:36 +09:00
parent 0d9d1bdd8c
commit d32f390809
No known key found for this signature in database
GPG key ID: A394E332255A6173
2 changed files with 8 additions and 0 deletions

View file

@ -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;

View file

@ -809,6 +809,10 @@ public class MainView extends InitializableView<StackPane, MainViewModel>
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));