alt: remove background of some pages

This commit is contained in:
huanghongxun
2020-04-07 11:46:00 +08:00
parent dd94d2254f
commit 5ed42d1654
6 changed files with 4 additions and 20 deletions

View File

@@ -40,7 +40,6 @@ public class ListPageSkin extends SkinBase<ListPage<?>> {
spinnerPane.getStyleClass().add("large-spinner-pane");
Pane placeholder = new Pane();
VBox list = new VBox();
spinnerPane.getStyleClass().add("content-background");
StackPane contentPane = new StackPane();
{

View File

@@ -80,7 +80,6 @@ public class DecoratorController {
decorator.setOnCloseButtonAction(Launcher::stopApplication);
navigator = new Navigator();
navigator.setOnNavigating(this::onNavigating);
navigator.setOnNavigated(this::onNavigated);
navigator.init(mainPage);

View File

@@ -247,9 +247,7 @@ public class RootPage extends DecoratorTabPage {
control.transitionPane.getStyleClass().add("jfx-decorator-content-container");
control.transitionPane.getChildren().setAll(getSkinnable().getMainPage());
FXUtils.setOverflowHidden(control.transitionPane, 8);
StackPane wrapper = new StackPane(control.transitionPane);
wrapper.setPadding(new Insets(4));
root.setCenter(wrapper);
root.setCenter(control.transitionPane);
}
getChildren().setAll(root);

View File

@@ -73,7 +73,6 @@ public final class SettingsPage extends SettingsView implements DecoratorPage {
public SettingsPage() {
FXUtils.smoothScrolling(scroll);
addEventHandler(Navigator.NavigationEvent.NAVIGATED, this::onDecoratorPageNavigating);
// ==== Download sources ====
cboDownloadSource.getItems().setAll(DownloadProviders.providersById.keySet());

View File

@@ -57,7 +57,6 @@ public class GameList extends ListPageBase<GameListItem> implements DecoratorPag
});
Profiles.registerVersionsListener(this::loadVersions);
addEventHandler(Navigator.NavigationEvent.NAVIGATED, this::onDecoratorPageNavigating);
}
private void loadVersions(Profile profile) {

View File

@@ -266,18 +266,8 @@ public class VersionPage extends Control implements DecoratorPage {
// the root page, with the sidebar in left, navigator in center.
BorderPane root = new BorderPane();
{
StackPane drawerContainer = new StackPane();
FXUtils.setLimitWidth(drawerContainer, 200);
drawerContainer.getStyleClass().add("gray-background");
drawerContainer.getChildren().setAll(control.listView);
FXUtils.setOverflowHidden(drawerContainer, 8);
StackPane wrapper = new StackPane(drawerContainer);
wrapper.setPadding(new Insets(4, 0, 4, 4));
root.setLeft(wrapper);
}
FXUtils.setLimitWidth(control.listView, 200);
root.setLeft(control.listView);
TabHeader tabPane = new TabHeader();
tabPane.setPickOnBounds(false);
@@ -370,7 +360,7 @@ public class VersionPage extends Control implements DecoratorPage {
BorderPane titleBar = new BorderPane();
titleBar.setLeft(tabPane);
titleBar.setRight(toolBar);
control.state.set(new State(i18n("version.manage.manage"), titleBar, true, false, true));
control.state.set(new State(i18n("version.manage.manage"), titleBar, true, false, true, false, 200));
control.transitionPane.getStyleClass().add("gray-background");
FXUtils.setOverflowHidden(control.transitionPane, 8);