import 'package:flutter/material.dart';

import 'player_panel_controller.dart';


String panelCategoryLabel(PlayerPanelCategory c) {
  switch (c) {
    case PlayerPanelCategory.subtitle:
      return '字幕';
    case PlayerPanelCategory.audio:
      return '音轨';
    case PlayerPanelCategory.speed:
      return '播放速度';
    case PlayerPanelCategory.fit:
      return '画面比例';
    case PlayerPanelCategory.episode:
      return '选集';
    case PlayerPanelCategory.danmaku:
      return '弹幕';
  }
}


IconData panelCategoryIcon(PlayerPanelCategory c) {
  switch (c) {
    case PlayerPanelCategory.subtitle:
      return Icons.subtitles_outlined;
    case PlayerPanelCategory.audio:
      return Icons.audiotrack;
    case PlayerPanelCategory.speed:
      return Icons.speed;
    case PlayerPanelCategory.fit:
      return Icons.aspect_ratio;
    case PlayerPanelCategory.episode:
      return Icons.format_list_numbered;
    case PlayerPanelCategory.danmaku:
      return Icons.forum_outlined;
  }
}
