mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-08 18:41:00 +00:00
Style fixes
This commit is contained in:
@@ -63,7 +63,6 @@ public class BrowserFileChooserSessionComp extends DialogComp {
|
||||
});
|
||||
var comp = new BrowserFileChooserSessionComp(stage, model);
|
||||
comp.apply(struc -> struc.get().setPrefSize(1200, 700))
|
||||
.apply(struc -> AppFontSizes.sm(struc.get()))
|
||||
.styleClass("browser")
|
||||
.styleClass("chooser");
|
||||
return comp;
|
||||
|
||||
@@ -87,7 +87,6 @@ public final class BrowserConnectionListComp extends SimpleComp {
|
||||
|
||||
var r = section.vgrow().createRegion();
|
||||
r.getStyleClass().add("bookmark-list");
|
||||
AppFontSizes.sm(r);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,8 +30,6 @@ public final class BrowserContextMenu extends ContextMenu {
|
||||
e.consume();
|
||||
});
|
||||
|
||||
AppFontSizes.sm(this.getStyleableNode());
|
||||
|
||||
var empty = source == null;
|
||||
var selected = new ArrayList<>(
|
||||
empty
|
||||
|
||||
@@ -135,9 +135,6 @@ public final class BrowserFileListComp extends SimpleComp {
|
||||
prepareTableEntries(table);
|
||||
prepareTableChanges(table, filenameCol, mtimeCol, modeCol, ownerCol);
|
||||
prepareTypedSelectionModel(table);
|
||||
|
||||
AppFontSizes.sm(table);
|
||||
|
||||
return table;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,6 @@ public class BrowserOverviewComp extends SimpleComp {
|
||||
|
||||
var vbox = new VerticalComp(List.of(recentPane, commonPane, rootsPane)).styleClass("overview");
|
||||
var r = vbox.createRegion();
|
||||
AppFontSizes.sm(r);
|
||||
return r;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,7 +82,6 @@ public class BrowserTransferComp extends SimpleComp {
|
||||
.grow(false, true);
|
||||
var dragNotice = new LabelComp(AppI18n.observable("dragLocalFiles"))
|
||||
.apply(struc -> struc.get().setGraphic(new FontIcon("mdi2h-hand-left")))
|
||||
.apply(struc -> AppFontSizes.sm(struc.get()))
|
||||
.apply(struc -> struc.get().setWrapText(true))
|
||||
.hide(model.getEmpty());
|
||||
|
||||
@@ -195,7 +194,6 @@ public class BrowserTransferComp extends SimpleComp {
|
||||
});
|
||||
|
||||
var r = stack.styleClass("transfer").createRegion();
|
||||
AppFontSizes.sm(r);
|
||||
return r;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,6 @@ public class AppLayoutComp extends Comp<AppLayoutComp.Structure> {
|
||||
}
|
||||
});
|
||||
});
|
||||
AppFontSizes.sm(pane);
|
||||
pane.getStyleClass().add("layout");
|
||||
return new Structure(pane, multiR, sidebarR, new ArrayList<>(multiR.getChildren()));
|
||||
}
|
||||
|
||||
@@ -84,7 +84,6 @@ public class StoreCategoryComp extends SimpleComp {
|
||||
var expandButton = new IconButtonComp(expandIcon, () -> {
|
||||
category.toggleExpanded();
|
||||
})
|
||||
.apply(struc -> AppFontSizes.sm(struc.get()))
|
||||
.apply(struc -> {
|
||||
struc.get().setAlignment(Pos.CENTER);
|
||||
struc.get().setFocusTraversable(false);
|
||||
@@ -188,8 +187,6 @@ public class StoreCategoryComp extends SimpleComp {
|
||||
category.getColor().subscribe((c) -> {
|
||||
DataColor.applyStyleClasses(c, struc.get());
|
||||
});
|
||||
|
||||
AppFontSizes.sm(struc.get());
|
||||
});
|
||||
|
||||
return v.createRegion();
|
||||
@@ -197,7 +194,6 @@ public class StoreCategoryComp extends SimpleComp {
|
||||
|
||||
private ContextMenu createContextMenu(Region text) {
|
||||
var contextMenu = ContextMenuHelper.create();
|
||||
AppFontSizes.sm(contextMenu.getStyleableNode());
|
||||
|
||||
if (AppPrefs.get().enableHttpApi().get()) {
|
||||
var copyId = new MenuItem(AppI18n.get("copyId"), new FontIcon("mdi2c-content-copy"));
|
||||
|
||||
@@ -269,7 +269,6 @@ public abstract class StoreEntryComp extends SimpleComp {
|
||||
|
||||
protected ContextMenu createContextMenu() {
|
||||
var contextMenu = ContextMenuHelper.create();
|
||||
AppFontSizes.sm(contextMenu.getStyleableNode());
|
||||
|
||||
var hasSep = false;
|
||||
for (var p : getWrapper().getActionProviders()) {
|
||||
|
||||
@@ -116,7 +116,6 @@ public class StoreEntryListOverviewComp extends SimpleComp {
|
||||
HBox.setHgrow(f, Priority.ALWAYS);
|
||||
|
||||
f.getStyleClass().add("filter-bar");
|
||||
AppFontSizes.sm(hbox);
|
||||
return hbox;
|
||||
}
|
||||
|
||||
@@ -125,7 +124,6 @@ public class StoreEntryListOverviewComp extends SimpleComp {
|
||||
menu.textProperty().bind(AppI18n.observable("addConnections"));
|
||||
menu.setAlignment(Pos.CENTER);
|
||||
menu.setTextAlignment(TextAlignment.CENTER);
|
||||
AppFontSizes.sm(menu);
|
||||
StoreCreationMenu.addButtons(menu);
|
||||
menu.setOpacity(0.85);
|
||||
menu.setMinWidth(Region.USE_PREF_SIZE);
|
||||
@@ -161,7 +159,6 @@ public class StoreEntryListOverviewComp extends SimpleComp {
|
||||
}
|
||||
});
|
||||
alphabetical.apply(alphabeticalR -> {
|
||||
AppFontSizes.sm(alphabeticalR.get());
|
||||
alphabeticalR
|
||||
.get()
|
||||
.opacityProperty()
|
||||
@@ -202,7 +199,6 @@ public class StoreEntryListOverviewComp extends SimpleComp {
|
||||
}
|
||||
});
|
||||
date.apply(dateR -> {
|
||||
AppFontSizes.sm(dateR.get());
|
||||
dateR.get()
|
||||
.opacityProperty()
|
||||
.bind(Bindings.createDoubleBinding(
|
||||
|
||||
@@ -82,7 +82,6 @@ public class AppGreetingsDialog {
|
||||
|
||||
var label = new Label(AppI18n.get("legalAccept"));
|
||||
label.setGraphic(cb);
|
||||
AppFontSizes.sm(label);
|
||||
label.setPadding(new Insets(20, 0, 10, 0));
|
||||
label.setOnMouseClicked(event -> accepted.set(!accepted.get()));
|
||||
label.setGraphicTextGap(10);
|
||||
|
||||
@@ -110,7 +110,6 @@ public class AppDialog {
|
||||
return Comp.of(() -> {
|
||||
var text = new Text(s);
|
||||
text.setWrappingWidth(450);
|
||||
AppFontSizes.sm(text);
|
||||
var sp = new StackPane(text);
|
||||
return sp;
|
||||
})
|
||||
|
||||
@@ -49,7 +49,6 @@ public class AppWindowHelper {
|
||||
public static Region alertContentText(String s, int width) {
|
||||
var text = new Text(s);
|
||||
text.setWrappingWidth(width);
|
||||
AppFontSizes.sm(text);
|
||||
var sp = new StackPane(text);
|
||||
sp.setPadding(new Insets(5));
|
||||
return sp;
|
||||
|
||||
@@ -170,7 +170,6 @@ public class ErrorHandlerComp extends SimpleComp {
|
||||
if (event.getThrowable() != null) {
|
||||
content.getChildren().add(new Separator(Orientation.HORIZONTAL));
|
||||
var details = createDetails();
|
||||
AppFontSizes.sm(details);
|
||||
layout.getChildren().add(details);
|
||||
layout.prefHeightProperty().bind(content.heightProperty().add(65).add(details.prefHeightProperty()));
|
||||
}
|
||||
|
||||
@@ -59,7 +59,6 @@ public class UserReportComp extends SimpleComp {
|
||||
protected Region createSimple() {
|
||||
var emailHeader = new Label(AppI18n.get("provideEmail"));
|
||||
emailHeader.setWrapText(true);
|
||||
AppFontSizes.sm(emailHeader);
|
||||
var email = new TextField();
|
||||
this.email.bind(email.textProperty());
|
||||
VBox.setVgrow(email, Priority.ALWAYS);
|
||||
@@ -129,7 +128,6 @@ public class UserReportComp extends SimpleComp {
|
||||
buttons.setAlignment(Pos.CENTER);
|
||||
buttons.getStyleClass().add("buttons");
|
||||
HBox.setHgrow(spacer, Priority.ALWAYS);
|
||||
AppFontSizes.sm(dataPolicyButton);
|
||||
return buttons;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,6 @@ public class AppPrefsComp extends SimpleComp {
|
||||
split.getStyleClass().add("prefs");
|
||||
var stack = new StackPane(split);
|
||||
stack.setPickOnBounds(false);
|
||||
AppFontSizes.sm(stack);
|
||||
return stack;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,7 +157,6 @@ public class IconsCategory extends AppPrefsCategory {
|
||||
tile.setRight(buttons);
|
||||
tile.setIconSize(1.0);
|
||||
tile.grow(true, false);
|
||||
tile.apply(struc -> AppFontSizes.sm(struc.get()));
|
||||
return tile;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +120,6 @@ public abstract class MultiExecuteSelectionAction implements BrowserBranchAction
|
||||
text.setWrapText(true);
|
||||
text.setEditable(false);
|
||||
text.setPrefRowCount(Math.max(8,( int) finalOut.lines().count()));
|
||||
AppFontSizes.sm(text);
|
||||
var sp = new StackPane(text);
|
||||
return sp;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user