feat(views): optional jump-to-today button in the toolbar (#60) #84
Reference in New Issue
Block a user
Delete Branch "feat/today-button-in-toolbar"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #60 (app-bar cleanup). Adds an opt-in Today button in toolbar setting (Settings → Appearance, off by default). When on, each calendar view (Month/Week/Day/Agenda) shows a persistent go-to-today icon button in its top bar — always visible, on today or not — and the fade-in FAB pill is suppressed. Same jump action, relocated. Off keeps the historical floating button.
Implementation
SettingsPrefs.todayButtonInToolbar(keytoday_button_in_toolbar, default off), exposed via CalendarHostViewModel → CalendarHost → atodayInToolbarparam on all four screens, mirroring the existing quickSwitchViews/drawerViewOrder plumbing.ui/common/TodayActioncomposable (Icons.Default.Today) dropped into each top bar'sactions; FAB usestodayVisible = !isOnX && !todayInToolbar.Notes
Verification