Skip to content

Issue 3: [Feat/Control] Revamp Timer Controls & Toggle Interactions #655

Description

@arii

Labels: frontend, feature-timer

Description:
The mode toggle (Stopwatch/Tabata) and duration inputs need to be more intuitive and visually distinct. We will replace the standard toggle buttons with a segmented control style and enhance the duration input visibility.

Acceptance Criteria:

  • Replace ToggleButtonGroup in TimerControls.tsx with a "Segmented Control" style (smooth background transition).
  • Redesign the "Presets" buttons to include a subtle shine/sweep animation on hover.
  • Update the Duration Input display to use the "Big Number" style with a radial glow background.

Technical Implementation:

  • Segmented Control:
    <ToggleButtonGroup sx={{ background: 'rgba(15, 23, 42, 0.6)', border: '1px solid rgba(255, 255, 255, 0.1)' }}>
       {/* Selected state: background gradient + shadow */}
    </ToggleButtonGroup>
  • Duration Display:
    Wrap the number in a Box with a radial gradient background:
    background: 'radial-gradient(circle, rgba(244, 63, 94, 0.3) 0%, transparent 70%)',
    filter: 'blur(20px)',

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions