This commit is contained in:
cool.gitter.choco
2025-02-06 14:34:26 -06:00
parent f4edce82e3
commit 3eaea39c7f
2 changed files with 19 additions and 2 deletions

View File

@@ -140,6 +140,23 @@ body {
background: #1db954;
}
/* New Input Styling for Custom Format Fields */
.config-item input[type="text"] {
width: 100%;
padding: 0.8rem;
background: #2a2a2a;
border: 1px solid #404040;
border-radius: 8px;
color: #ffffff;
font-size: 0.95rem;
transition: border-color 0.3s ease;
}
.config-item input[type="text"]:focus {
outline: none;
border-color: #1db954;
}
/* Improved Toggle Switches */
.switch {
position: relative;

View File

@@ -300,8 +300,8 @@ function loadConfig() {
document.getElementById('deezerQualitySelect').value = saved.deezerQuality || 'MP3_128';
document.getElementById('realTimeToggle').checked = !!saved.realTime;
// Load the new formatting settings. If not set, you can choose to default to an empty string or a specific format.
document.getElementById('customDirFormat').value = saved.customDirFormat || '';
document.getElementById('customTrackFormat').value = saved.customTrackFormat || '';
document.getElementById('customDirFormat').value = saved.customDirFormat || '%ar_album%/%album%';
document.getElementById('customTrackFormat').value = saved.customTrackFormat || '%tracknum%. %music%';
}
function showConfigError(message) {