Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

refactor: simplify onboarding navigation

quanru9da06acc7b96
diff --git a/src/doubao_input/ui/control_window.py b/src/doubao_input/ui/control_window.py
index 9157c6d..ff8a6f4 100644
--- a/src/doubao_input/ui/control_window.py
+++ b/src/doubao_input/ui/control_window.py
@@ -258,11 +258,13 @@ class ControlWindow:
navigation = Gtk.Box(spacing=8, homogeneous=True)
navigation.add_css_class("step-navigation")
- self._back_button = Gtk.Button(label=tr("← Previous", "← 上一步"))
+ self._back_button = Gtk.Button(label="←")
+ self._back_button.set_tooltip_text(tr("Previous step", "上一步"))
self._back_button.connect("clicked", self._go_previous)
self._step_label = Gtk.Label(xalign=0.5, wrap=True)
self._step_label.add_css_class("step-current")
- self._next_button = Gtk.Button(label=tr("Next →", "下一步 →"))
+ self._next_button = Gtk.Button(label="→")
+ self._next_button.set_tooltip_text(tr("Next step", "下一步"))
self._next_button.connect("clicked", self._go_next)
navigation.append(self._back_button)
navigation.append(self._step_label)
diff --git a/src/doubao_input/ui/style.py b/src/doubao_input/ui/style.py
index a9721e6..3d89e75 100644
--- a/src/doubao_input/ui/style.py
+++ b/src/doubao_input/ui/style.py
@@ -28,6 +28,8 @@ _CSS = """
border-radius: 11px;
padding-left: 6px;
padding-right: 6px;
+ font-size: 22px;
+ font-weight: 600;
}
.doubao-window .step-current {
diff --git a/tests/e2e/cases/onboarding.yaml b/tests/e2e/cases/onboarding.yaml
index b038722..52e9132 100644
--- a/tests/e2e/cases/onboarding.yaml
+++ b/tests/e2e/cases/onboarding.yaml
@@ -6,14 +6,14 @@ cases:
- wait: { duration: 1500 }
- aiAssert: A Synthetic Doubao sign-in window is visible and explicitly says it is CI-only, makes no network request, and uses no real credentials.
- aiAct: In the Synthetic Doubao sign-in window, click Simulate successful sign-in exactly once, then stop immediately.
- - aiAssert: The synthetic sign-in window closed and Doubao Say automatically advanced to the Microphone step with Next in the fixed top navigation.
- - aiAct: Click Next in the Doubao Say fixed top navigation exactly once. Do not click Next a second time.
+ - aiAssert: The synthetic sign-in window closed and Doubao Say automatically advanced to the Microphone step with a right-arrow Next button in the fixed top navigation.
+ - aiAct: Click the right-arrow Next button in the Doubao Say fixed top navigation exactly once. Do not click it a second time.
- aiAssert: The current Doubao Say step is Trigger key.
- aiAct: Stay on Trigger key. Scroll inside the light-gray central content panel until the Voice polishing heading and its controls are visible.
- aiAct: On Trigger key, click Test endpoint in the visible Voice polishing section and wait for the endpoint result.
- aiAct: If needed, scroll down slightly inside the central content panel until Synthetic endpoint response is visible below Endpoint works. Keep both results on screen.
- aiAssert: A visible message says the endpoint works and includes Synthetic endpoint response.
- - aiAct: Click Next in the fixed top navigation exactly once. Do not click Next a second time.
+ - aiAct: Click the right-arrow Next button in the fixed top navigation exactly once. Do not click it a second time.
- aiAssert: The current Doubao Say step is Voice test.
- aiAssert: The Voice test heading and introductory text are clearly visible near the top of the current content panel.
- aiAct: Scroll within Voice test content if needed and click Finish setup exactly once. Stop when the button changes to the disabled status Setup completed by the synthetic E2E fixture.