修复视觉验收夹具与运行态对比度
This commit is contained in:
@@ -121,9 +121,20 @@ public class MainWindow {
|
||||
menuButton.setFocusTraversable(true);
|
||||
menuButton.setOnAction(event -> navigationRail.toggle());
|
||||
|
||||
Label brand = new Label("WorkUtils", IconFactory.create(AppIcon.APP, 20));
|
||||
brand.setContentDisplay(ContentDisplay.LEFT);
|
||||
brand.setFont(Theme.sectionTitle());
|
||||
FontIcon brandIcon = IconFactory.create(AppIcon.APP, 18);
|
||||
StackPane brandIconContainer = new StackPane(brandIcon);
|
||||
brandIconContainer.setId("app-brand-icon-container");
|
||||
brandIconContainer.getStyleClass().add("app-brand-icon");
|
||||
brandIconContainer.setMinSize(32, 32);
|
||||
brandIconContainer.setPrefSize(32, 32);
|
||||
brandIconContainer.setMaxSize(32, 32);
|
||||
brandIconContainer.setAccessibleText("WorkUtils 应用图标");
|
||||
brandIconContainer.setFocusTraversable(false);
|
||||
|
||||
Label brandText = new Label("WorkUtils");
|
||||
brandText.setFont(Theme.sectionTitle());
|
||||
HBox brand = new HBox(Theme.S2, brandIconContainer, brandText);
|
||||
brand.setAlignment(Pos.CENTER_LEFT);
|
||||
|
||||
toolbarChevron = IconFactory.create(AppIcon.CHEVRON_RIGHT, 14);
|
||||
toolbarChevron.setVisible(false);
|
||||
|
||||
@@ -9,6 +9,7 @@ import javafx.application.Platform;
|
||||
import javafx.beans.property.ReadOnlyBooleanProperty;
|
||||
import javafx.beans.property.ReadOnlyBooleanWrapper;
|
||||
import javafx.css.PseudoClass;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.ContentDisplay;
|
||||
@@ -54,7 +55,13 @@ public final class NavigationRail extends VBox {
|
||||
buildBottomToggle();
|
||||
|
||||
Separator separator = new Separator();
|
||||
separator.setId("navigation-rail-separator");
|
||||
separator.getStyleClass().add(Theme.CSS_NAV_SEP);
|
||||
separator.setPadding(Insets.EMPTY);
|
||||
separator.setMinHeight(1);
|
||||
separator.setPrefHeight(1);
|
||||
separator.setMaxHeight(1);
|
||||
separator.setFocusTraversable(false);
|
||||
getChildren().addAll(itemBox, separator, collapseButton);
|
||||
|
||||
expanded.addListener((observable, oldValue, newValue) -> updateAppearance());
|
||||
|
||||
Reference in New Issue
Block a user