Skip to content

feat: flat settings design with the enable switch in section headers - #123

Merged
LeanBitLab merged 1 commit into
mainfrom
feat/settings-flat-design
Dec 5, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
feat/settings-flat-design

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Settings screen

  • One flat tonal style for all section cards (Widget.Lwidget.SectionCard): no outlines or shadows. The tab bar and preview lose their outlines too.
  • Each section's Enable switch sits in its header (icon, title, switch, chevron). The row is moved at bind time, so ids and listeners are unchanged. Removed updateToggleCardStyle and the unused label_enable string.
  • Consistent sizes: rows at least 48dp tall, headers 56dp, 16dp side padding.
  • Preview backdrop is plain white or black, picked to contrast with the widget. Tapping the preview flips it, and the tap no longer reaches the widget's own click intents. With events and tasks both on, the preview shows the events page. The wallpaper read is removed: it needed a storage permission and always failed on recent Android.
  • Reorder list: Material drag indicator icon, hint text removed (11 locales).
  • The preset strip keeps its scroll position when a preset recreates the screen (it now has an id).

Fixes

  • A tap on the widget's events block opens the calendar app, the same one the date opens. On the tasks page it opens Tasks. Before, it only refreshed the widget.
  • Hidden settings tabs always finish binding in the background. Idle handlers run once per idle period, so the chain now posts between steps instead of waiting for unrelated messages.

Verification

  • testDebugUnitTest passes, with a new PresetSelectionTest. MainActivitySmokeTest failed before the idle-binding fix and passes after it.
  • lintDebug (no errors) and scripts/check_strings.py pass.
  • Checked on the device: header switches, preview tap, events tap, preset selection.

- Section cards share one flat tonal style (no outline, no shadow); the tab
  bar and widget preview lose their outlines too
- Each section's Enable switch moves into its header; the separate Enable
  row and its card styling are gone
- Rows get a 48dp minimum height, headers 56dp, 16dp side padding
- Preview backdrop is plain white or black; tap the preview to flip it, and
  with events and tasks both on it shows the events page
- Reorder list uses the Material drag indicator; the hint text is removed
- Preset strip keeps its scroll position when a preset recreates the screen
- A tap on the events block opens the calendar app (tasks page: Tasks)
- Hidden settings tabs now always finish binding in the background
@LeanBitLab
LeanBitLab merged commit 83abef3 into main Dec 5, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the feat/settings-flat-design branch December 5, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant