fix: Fix input text not showing

- Add global Input style with visible colors
- Ensure text color is set correctly
- Simplify component styles
- Remove conflicting styles
This commit is contained in:
JianFeeeee
2026-04-10 19:37:09 +08:00
parent 68ea1908fd
commit acd6c7174f
2 changed files with 26 additions and 25 deletions

View File

@ -5,6 +5,17 @@ GraphMemoryApp {
color: $text;
}
/* 全局Input样式 - 确保可见 */
Input {
background: $surface-lighten-1;
color: $text;
border: solid $primary;
}
Input:focus {
border: double $accent;
}
LeftPanel {
width: 1fr;
dock: left;

View File

@ -1,5 +1,20 @@
/* Component Styles for Graph Memory TUI */
/* Input Box - 最重要 */
InputBox {
background: $surface;
padding: 1 2;
height: auto;
border: solid $primary;
}
InputBox Input {
width: 100%;
background: $surface-lighten-1;
color: $text;
border: none;
}
/* Config Section */
ConfigSection {
background: $surface;
@ -32,31 +47,6 @@ ConfigSection Input {
color: $text;
}
ConfigSection Input:focus {
border: double $primary;
background: $surface-lighten-2;
}
/* Input Box */
InputBox {
background: $surface;
padding: 1;
height: auto;
}
InputBox Input {
width: 1fr;
background: $surface;
color: $text;
border: solid $primary;
padding: 1;
}
InputBox Input:focus {
border: double $accent;
background: $surface-lighten-1;
}
/* Other Components */
OperationLog {
background: $surface-darken-1;