// SPDX-FileCopyrightText: 2026 FocusFlow contributors
// SPDX-License-Identifier: AGPL-3.0-only

part of '../task_selection_modal.dart';

/// Top-level helper that performs the `_accentFor` operation for this file.
/// Keeping the helper private makes the surrounding flow easier to read while preventing unrelated libraries from depending on implementation detail.
Color _accentFor(TaskVisualKind kind) {
  return switch (kind) {
    TaskVisualKind.flexible => FocusFlowTokens.flexibleGreen,
    TaskVisualKind.required => FocusFlowTokens.requiredPink,
    TaskVisualKind.appointment => FocusFlowTokens.appointmentBlue,
    TaskVisualKind.freeSlot => FocusFlowTokens.restPurple,
    TaskVisualKind.completedSurprise => FocusFlowTokens.completedGray,
  };
}
