Product Name in Desktop Title Bar
desktop-apps specs/desktop-apps/title-bar.kmd
Como exibir o nome do produto na barra de título de apps desktop Koder (Linux/macOS/Windows). Define formato canônico, casos de tela, sufixos (Untitled, dirty marker), e proibições.
Quando esta spec se aplica
Todos os triggers
- Configurar título da janela em app desktop Koder (Flutter/Tauri/native)
- Adicionar sufixo de estado (modificado, untitled) ao título
Corpo da especificação
Spec — Product Name in Desktop Title Bar
Applicability
Any Koder product (koder-*) that ships a desktop GUI — Flutter desktop, GTK, Qt, Electron, etc. Does not apply to mobile-only, web-only, or CLI products.
Required Behavior
The product's name must appear in the window title bar of the main window.
Implementation
- Set the window title via the native framework's window API.
- Kroma (go-forward): the winit backend sets the title at window creation
(
engines/sdk/kroma/src/window_titlebar.rs+ therun_appwinit setup); passappNameas the window title. Custom-decoration drag/double-click pertitle-bar-double-click.kmd. - Legacy (Flutter, migrating):
windowManager.setTitle(appName)and, additionally,MaterialApp(title: appName).
- Kroma (go-forward): the winit backend sets the title at window creation
(
- Use the constant
appNamedefined inlib/core/constants.dartof the product, e.g.:const String appName = 'Koder Video';
Deterministic Audit Checks
A checker can verify:
lib/core/constants.dart(or equivalent) exports anappNamestring constant.- The main window creation code passes
appNameto the title bar setter (Kroma: the winit window builder inwindow_titlebar.rs/run_app). MaterialApp(title: ...)usesappName(Flutter legacy only — Flutter sunset).
Referências
specs/koder-app/behaviors.kmdspecs/binaries-and-cli/naming.kmd