diff --git a/assets/icons/moon.svg b/assets/icons/moon.svg
deleted file mode 100644
index 6687394..0000000
--- a/assets/icons/moon.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/assets/icons/sun.svg b/assets/icons/sun.svg
deleted file mode 100644
index e444c96..0000000
--- a/assets/icons/sun.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/components/Icons.java b/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/components/Icons.java
index b7026bc..e38e7db 100644
--- a/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/components/Icons.java
+++ b/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/components/Icons.java
@@ -119,12 +119,6 @@ public final class Icons {
public static Node refresh() { return refresh(SIZE_16); }
public static Node refresh(int size) { return of("refresh", size); }
- public static Node sun() { return sun(SIZE_16); }
- public static Node sun(int size) { return of("sun", size); }
-
- public static Node moon() { return moon(SIZE_16); }
- public static Node moon(int size) { return of("moon", size); }
-
public static Node arrowRight() { return arrowRight(SIZE_16); }
public static Node arrowRight(int size) { return of("arrow-right", size); }
diff --git a/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/components/SvgIcons.java b/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/components/SvgIcons.java
index 3fa5250..9e31d2f 100644
--- a/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/components/SvgIcons.java
+++ b/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/components/SvgIcons.java
@@ -577,63 +577,6 @@ public final class SvgIcons {
return box;
}
- /**
- * Ícone de Sol (Light Mode).
- */
- public static Node sunIcon(double size) {
- return AssetManager.getIconOrDefault("sun", size, () -> buildSunIcon(size));
- }
-
- public static Node buildSunIcon(double size) {
- StackPane box = new StackPane();
- box.setPrefSize(size, size);
- box.setMaxSize(size, size);
-
- Circle sunCore = new Circle(size * 0.5, size * 0.5, size * 0.24);
- sunCore.setFill(new LinearGradient(
- 0, 0, 1, 1, true, CycleMethod.NO_CYCLE,
- new Stop(0, Color.web("#f59e0b")),
- new Stop(1, Color.web("#d97706"))
- ));
-
- SVGPath rays = new SVGPath();
- rays.setContent("M 12 2 L 12 5 M 12 19 L 12 22 M 2 12 L 5 12 M 19 12 L 22 12 " +
- "M 4.93 4.93 L 7.05 7.05 M 16.95 16.95 L 19.07 19.07 " +
- "M 4.93 19.07 L 7.05 16.95 M 16.95 7.05 L 19.07 4.93");
- rays.setStroke(Color.web("#f59e0b"));
- rays.setStrokeWidth(2.0);
- rays.setScaleX(size / 24.0);
- rays.setScaleY(size / 24.0);
-
- box.getChildren().addAll(rays, sunCore);
- return box;
- }
-
- /**
- * Ícone de Lua (Dark Mode).
- */
- public static Node moonIcon(double size) {
- return AssetManager.getIconOrDefault("moon", size, () -> buildMoonIcon(size));
- }
-
- public static Node buildMoonIcon(double size) {
- StackPane box = new StackPane();
- box.setPrefSize(size, size);
- box.setMaxSize(size, size);
-
- SVGPath moon = new SVGPath();
- moon.setContent("M 21 12.79 A 9 9 0 1 1 11.21 3 A 7 7 0 0 0 21 12.79 Z");
- moon.setFill(new LinearGradient(
- 0, 0, 1, 1, true, CycleMethod.NO_CYCLE,
- new Stop(0, Color.web("#38bdf8")),
- new Stop(1, Color.web("#818cf8"))
- ));
- moon.setScaleX(size / 24.0);
- moon.setScaleY(size / 24.0);
-
- box.getChildren().add(moon);
- return box;
- }
/**
* Logotipo vetorial CyberShield.
diff --git a/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/view/MainAppView.java b/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/view/MainAppView.java
index 09c77ee..ba424c2 100644
--- a/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/view/MainAppView.java
+++ b/modules/cybercore-ui/src/main/java/br/com/cybercore/signer/ui/view/MainAppView.java
@@ -35,7 +35,6 @@ public final class MainAppView {
private final Stage stage;
private final VBox root = new VBox(16);
- private final Button themeToggleBtn = new Button();
private Runnable onSignPdf;
private Runnable onSignXml;
@@ -148,11 +147,8 @@ public final class MainAppView {
}
}
- // Configuração e inicialização do Tema
+ // Configuração e inicialização da folha de estilos global
ThemeManager.applyTheme(scene);
- updateThemeToggleButton();
-
- ThemeManager.addListener(theme -> updateThemeToggleButton());
stage.setTitle(CyberCoreUiConstants.APP_NAME);
stage.getIcons().addAll(br.com.cybercore.signer.ui.assets.AssetManager.getApplicationIcons());
@@ -207,38 +203,10 @@ public final class MainAppView {
Label statusBadge = new Label("● Agente Ativo • 127.0.0.1:21325");
statusBadge.getStyleClass().add("cyber-status-badge");
- // Botão Alternador de Tema (Claro / Escuro)
- themeToggleBtn.getStyleClass().add("theme-toggle-btn");
- themeToggleBtn.setOnAction(e -> {
- ThemeManager.toggleTheme();
- if (stage.getScene() != null) {
- ThemeManager.applyTheme(stage.getScene());
- }
- });
-
- headerBar.getChildren().addAll(brandLogo, titleBox, leftSpacer, statusBadge, themeToggleBtn);
+ headerBar.getChildren().addAll(brandLogo, titleBox, leftSpacer, statusBadge);
return headerBar;
}
- private void updateThemeToggleButton() {
- boolean dark = ThemeManager.isDark();
- HBox content = new HBox(8);
- content.setAlignment(Pos.CENTER);
-
- Node icon = dark ? Icons.sun(16) : Icons.moon(16);
- StackPane iconBox = new StackPane(icon);
- iconBox.setPrefSize(18, 18);
- iconBox.setMinSize(18, 18);
- iconBox.setMaxSize(18, 18);
- iconBox.setAlignment(Pos.CENTER);
-
- Label label = new Label(dark ? "Modo Claro" : "Modo Escuro");
- label.getStyleClass().add("text-bold");
-
- content.getChildren().addAll(iconBox, label);
- themeToggleBtn.setGraphic(content);
- }
-
private Button createActionButton(Node icon, String text, Runnable onAction) {
Button btn = new Button();
btn.getStyleClass().add("cyber-action-card");
diff --git a/modules/cybercore-ui/src/main/resources/assets/icons/moon.svg b/modules/cybercore-ui/src/main/resources/assets/icons/moon.svg
deleted file mode 100644
index 6687394..0000000
--- a/modules/cybercore-ui/src/main/resources/assets/icons/moon.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/modules/cybercore-ui/src/main/resources/assets/icons/sun.svg b/modules/cybercore-ui/src/main/resources/assets/icons/sun.svg
deleted file mode 100644
index e444c96..0000000
--- a/modules/cybercore-ui/src/main/resources/assets/icons/sun.svg
+++ /dev/null
@@ -1,11 +0,0 @@
-