mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Bold macos fixes
This commit is contained in:
parent
9f597b1b06
commit
5cda797d5a
3 changed files with 17 additions and 5 deletions
|
@ -6,6 +6,7 @@ import io.xpipe.app.core.AppLayoutModel;
|
|||
import io.xpipe.app.fxcomps.SimpleComp;
|
||||
import io.xpipe.app.fxcomps.util.PlatformThread;
|
||||
|
||||
import io.xpipe.core.process.OsType;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.layout.Region;
|
||||
|
||||
|
@ -24,7 +25,9 @@ public class BrowserGreetingComp extends SimpleComp {
|
|||
});
|
||||
});
|
||||
AppFont.setSize(r, 7);
|
||||
if (OsType.getLocal() != OsType.MACOS) {
|
||||
r.getStyleClass().add(Styles.TEXT_BOLD);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ import io.xpipe.app.prefs.AppPrefs;
|
|||
import io.xpipe.app.storage.DataStorage;
|
||||
import io.xpipe.app.util.ScanAlert;
|
||||
|
||||
import io.xpipe.core.process.OsType;
|
||||
import javafx.beans.property.SimpleStringProperty;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.geometry.Pos;
|
||||
|
@ -26,7 +27,9 @@ public class StoreIntroComp extends SimpleComp {
|
|||
private Region createIntro() {
|
||||
var title = new Label();
|
||||
title.textProperty().bind(AppI18n.observable("storeIntroTitle"));
|
||||
if (OsType.getLocal() != OsType.MACOS) {
|
||||
title.getStyleClass().add(Styles.TEXT_BOLD);
|
||||
}
|
||||
AppFont.setSize(title, 7);
|
||||
|
||||
var introDesc = new Label();
|
||||
|
@ -63,7 +66,9 @@ public class StoreIntroComp extends SimpleComp {
|
|||
private Region createImportIntro() {
|
||||
var title = new Label();
|
||||
title.textProperty().bind(AppI18n.observable("importConnectionsTitle"));
|
||||
if (OsType.getLocal() != OsType.MACOS) {
|
||||
title.getStyleClass().add(Styles.TEXT_BOLD);
|
||||
}
|
||||
AppFont.setSize(title, 7);
|
||||
|
||||
var importDesc = new Label();
|
||||
|
|
|
@ -11,6 +11,7 @@ import io.xpipe.app.util.Hyperlinks;
|
|||
import io.xpipe.app.util.JfxHelper;
|
||||
import io.xpipe.app.util.OptionsBuilder;
|
||||
|
||||
import io.xpipe.core.process.OsType;
|
||||
import javafx.beans.property.SimpleStringProperty;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.scene.control.ScrollPane;
|
||||
|
@ -116,8 +117,11 @@ public class AboutCategory extends AppPrefsCategory {
|
|||
"Version " + AppProperties.get().getVersion() + " ("
|
||||
+ AppProperties.get().getArch() + ")"),
|
||||
"logo.png");
|
||||
})
|
||||
.styleClass(Styles.TEXT_BOLD);
|
||||
});
|
||||
|
||||
if (OsType.getLocal() != OsType.MACOS) {
|
||||
title.styleClass(Styles.TEXT_BOLD);
|
||||
}
|
||||
|
||||
var section = new OptionsBuilder()
|
||||
.addComp(title, null)
|
||||
|
|
Loading…
Reference in a new issue