diff --git a/internal/tests/disk.go b/internal/tests/disk.go index f865c64..6797a9d 100644 --- a/internal/tests/disk.go +++ b/internal/tests/disk.go @@ -12,12 +12,12 @@ func DiskTest(language, testMethod, testPath string, isMultiCheck bool, autoChan if runtime.GOOS == "android" { realTestMethod = "disabled" if language == "en" { - res = "Disk test is not supported on Android platform.\n\n" + + res = "Disk test is not supported on Android platform.\n" + "Reason: Android security sandbox prevents apps from executing\n" + "Alternative: Please use Termux to run the binary test from:\n" + "https://github.com/oneclickvirt/ecs\n" } else { - res = "Android 平台不支持硬盘测试。\n\n" + + res = "Android 平台不支持硬盘测试。\n" + "原因:Android 安全沙箱机制禁止应用直接执行外部二进制文件\n" + "替代方案:请使用 Termux 执行以下项目的二进制文件测试:\n" + "https://github.com/oneclickvirt/ecs\n" diff --git a/internal/tests/memory.go b/internal/tests/memory.go index 0af03ea..a6329fe 100644 --- a/internal/tests/memory.go +++ b/internal/tests/memory.go @@ -17,12 +17,12 @@ func MemoryTest(language, testMethod string) (realTestMethod, res string) { if runtime.GOOS == "android" { realTestMethod = "disabled" if language == "en" { - res = "Memory test is not supported on Android platform.\n\n" + + res = "Memory test is not supported on Android platform.\n" + "Reason: Android security sandbox prevents apps from executing\n" + "Alternative: Please use Termux to run the binary test from:\n" + "https://github.com/oneclickvirt/ecs\n" } else { - res = "Android 平台不支持内存测试。\n\n" + + res = "Android 平台不支持内存测试。\n" + "原因:Android 安全沙箱机制禁止应用直接执行外部二进制文件\n" + "替代方案:请使用 Termux 执行以下项目的二进制文件测试:\n" + "https://github.com/oneclickvirt/ecs\n" diff --git a/ui/theme.go b/ui/theme.go index 1439240..a12d55a 100644 --- a/ui/theme.go +++ b/ui/theme.go @@ -12,6 +12,10 @@ type CustomTheme struct{} var _ fyne.Theme = (*CustomTheme)(nil) func (m *CustomTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color { + // 禁用状态的文字也使用深色显示(而不是默认的淡色) + if name == theme.ColorNameDisabled { + return theme.DefaultTheme().Color(theme.ColorNameForeground, theme.VariantLight) + } // 强制使用浅色主题 return theme.DefaultTheme().Color(name, theme.VariantLight) } diff --git a/ui/ui_main.go b/ui/ui_main.go index c17c6d1..a03f864 100644 --- a/ui/ui_main.go +++ b/ui/ui_main.go @@ -73,9 +73,9 @@ func (ui *TestUI) createResultTab() fyne.CanvasObject { ) // 导出按钮 - copyButton := widget.NewButton("复制结果", ui.copyResults) - exportButton := widget.NewButton("导出结果", ui.exportResults) - clearButton := widget.NewButton("清空输出", ui.clearResults) + copyButton := widget.NewButton("复制", ui.copyResults) + exportButton := widget.NewButton("导出", ui.exportResults) + clearButton := widget.NewButton("清空", ui.clearResults) topBar := container.NewBorder( nil, nil, diff --git a/ui/ui_terminal.go b/ui/ui_terminal.go index 6fe7488..6932bef 100644 --- a/ui/ui_terminal.go +++ b/ui/ui_terminal.go @@ -27,7 +27,7 @@ func NewTerminalOutput() *TerminalOutput { terminal.MultiLine = true terminal.Wrapping = fyne.TextWrapOff // 禁用自动换行,支持水平滚动 terminal.TextStyle = fyne.TextStyle{Monospace: true} - + terminal.Disable() // 禁用编辑 return terminal }