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.
When this spec applies
All triggers
- Configurar título da janela em app desktop Koder (Flutter/Tauri/native)
- Adicionar sufixo de estado (modificado, untitled) ao título
Specification body
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
window_manager(windowManager.setTitle(appName)) or the native framework equivalent. - In Flutter, also set
MaterialApp(title: appName). - 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. MaterialApp(title: ...)usesappName(Flutter only).
References
specs/koder-app/behaviors.kmdspecs/binaries-and-cli/naming.kmd