Fix menu bar: height 21px, color #d4d0c8, 4 menus (File Controller Tools Help)

This commit is contained in:
accusys
2026-03-29 16:21:06 +08:00
parent 2589e7d6e6
commit 6e9aad2912
2 changed files with 9 additions and 9 deletions

View File

@@ -1,7 +1,6 @@
//! RAIDGuard X GUI Client - Main entry point
use slint::ComponentHandle;
use slint::SharedString;
use slint::{ComponentHandle, SharedString};
slint::include_modules!();

View File

@@ -100,30 +100,31 @@ export component AppWindow inherits Window {
VerticalLayout {
spacing: 0;
// Menu Bar - matches Java Swing menu
// Menu Bar - matches Java Swing JMenuBar (height 21)
Rectangle {
height: 21px;
background: #ece9d8;
background: #d4d0c8;
HorizontalLayout {
spacing: 0;
padding: 2px;
spacing: 4px;
Text {
text: "File";
font_size: 12px;
color: #000000;
}
Text { width: 12px; }
Text { width: 16px; }
Text {
text: "Controller";
font_size: 12px;
color: #000000;
}
Text { width: 12px; }
Text { width: 16px; }
Text {
text: "Tools";
font_size: 12px;
color: #000000;
}
Text { width: 12px; }
Text { width: 16px; }
Text {
text: "Help";
font_size: 12px;
@@ -135,7 +136,7 @@ export component AppWindow inherits Window {
// Toolbar - matches Java JToolBar (750x65)
Rectangle {
height: 65px;
background: #ece9d8;
background: #d4d0c8;
HorizontalLayout {
spacing: 2px;