feat: add file format library quality label

This commit is contained in:
zarzet
2026-08-27 16:50:46 +07:00
parent 4609e59806
commit 2b117415ae
20 changed files with 137 additions and 5 deletions
@@ -435,6 +435,9 @@ class _LibrarySettingsPageState extends ConsumerState<LibrarySettingsPage> {
}
String _getQualityLabelModeLabel(BuildContext context, String mode) {
if (mode == AppSettings.libraryQualityLabelFileFormat) {
return context.l10n.libraryQualityLabelFileFormat;
}
if (mode == AppSettings.libraryQualityLabelBitDepthOnly) {
return context.l10n.audioAnalysisBitDepth;
}
@@ -474,6 +477,11 @@ class _LibrarySettingsPageState extends ConsumerState<LibrarySettingsPage> {
'${context.l10n.audioAnalysisBitDepth} & '
'${context.l10n.trackConvertBitrate}',
),
(
AppSettings.libraryQualityLabelFileFormat,
Icons.audio_file_rounded,
context.l10n.libraryQualityLabelFileFormat,
),
];
showModalBottomSheet<void>(
context: context,
@@ -149,7 +149,16 @@ class SettingsSearchCatalog {
SettingsSearchEntry(
icon: Icons.graphic_eq_rounded,
title: l10n.trackAudioQuality,
keywords: const ['quality label', 'bitrate', 'bit depth', 'kbps'],
keywords: const [
'quality label',
'bitrate',
'bit depth',
'file format',
'codec',
'flac',
'mp3',
'kbps',
],
),
SettingsSearchEntry(
icon: Icons.library_music_outlined,