Bold macos fixes

This commit is contained in:
crschnick 2024-08-15 09:36:16 +00:00
parent 9f597b1b06
commit 5cda797d5a
3 changed files with 17 additions and 5 deletions

View file

@ -6,6 +6,7 @@ import io.xpipe.app.core.AppLayoutModel;
import io.xpipe.app.fxcomps.SimpleComp; import io.xpipe.app.fxcomps.SimpleComp;
import io.xpipe.app.fxcomps.util.PlatformThread; import io.xpipe.app.fxcomps.util.PlatformThread;
import io.xpipe.core.process.OsType;
import javafx.scene.control.Label; import javafx.scene.control.Label;
import javafx.scene.layout.Region; import javafx.scene.layout.Region;
@ -24,7 +25,9 @@ public class BrowserGreetingComp extends SimpleComp {
}); });
}); });
AppFont.setSize(r, 7); AppFont.setSize(r, 7);
r.getStyleClass().add(Styles.TEXT_BOLD); if (OsType.getLocal() != OsType.MACOS) {
r.getStyleClass().add(Styles.TEXT_BOLD);
}
return r; return r;
} }

View file

@ -8,6 +8,7 @@ import io.xpipe.app.prefs.AppPrefs;
import io.xpipe.app.storage.DataStorage; import io.xpipe.app.storage.DataStorage;
import io.xpipe.app.util.ScanAlert; import io.xpipe.app.util.ScanAlert;
import io.xpipe.core.process.OsType;
import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.SimpleStringProperty;
import javafx.geometry.Insets; import javafx.geometry.Insets;
import javafx.geometry.Pos; import javafx.geometry.Pos;
@ -26,7 +27,9 @@ public class StoreIntroComp extends SimpleComp {
private Region createIntro() { private Region createIntro() {
var title = new Label(); var title = new Label();
title.textProperty().bind(AppI18n.observable("storeIntroTitle")); title.textProperty().bind(AppI18n.observable("storeIntroTitle"));
title.getStyleClass().add(Styles.TEXT_BOLD); if (OsType.getLocal() != OsType.MACOS) {
title.getStyleClass().add(Styles.TEXT_BOLD);
}
AppFont.setSize(title, 7); AppFont.setSize(title, 7);
var introDesc = new Label(); var introDesc = new Label();
@ -63,7 +66,9 @@ public class StoreIntroComp extends SimpleComp {
private Region createImportIntro() { private Region createImportIntro() {
var title = new Label(); var title = new Label();
title.textProperty().bind(AppI18n.observable("importConnectionsTitle")); title.textProperty().bind(AppI18n.observable("importConnectionsTitle"));
title.getStyleClass().add(Styles.TEXT_BOLD); if (OsType.getLocal() != OsType.MACOS) {
title.getStyleClass().add(Styles.TEXT_BOLD);
}
AppFont.setSize(title, 7); AppFont.setSize(title, 7);
var importDesc = new Label(); var importDesc = new Label();

View file

@ -11,6 +11,7 @@ import io.xpipe.app.util.Hyperlinks;
import io.xpipe.app.util.JfxHelper; import io.xpipe.app.util.JfxHelper;
import io.xpipe.app.util.OptionsBuilder; import io.xpipe.app.util.OptionsBuilder;
import io.xpipe.core.process.OsType;
import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.SimpleStringProperty;
import javafx.geometry.Insets; import javafx.geometry.Insets;
import javafx.scene.control.ScrollPane; import javafx.scene.control.ScrollPane;
@ -116,8 +117,11 @@ public class AboutCategory extends AppPrefsCategory {
"Version " + AppProperties.get().getVersion() + " (" "Version " + AppProperties.get().getVersion() + " ("
+ AppProperties.get().getArch() + ")"), + AppProperties.get().getArch() + ")"),
"logo.png"); "logo.png");
}) });
.styleClass(Styles.TEXT_BOLD);
if (OsType.getLocal() != OsType.MACOS) {
title.styleClass(Styles.TEXT_BOLD);
}
var section = new OptionsBuilder() var section = new OptionsBuilder()
.addComp(title, null) .addComp(title, null)