color update with small UI changes

This commit is contained in:
2025-04-09 15:37:26 +02:00
parent b3efbb3331
commit f73932cc98
6 changed files with 83 additions and 48 deletions
+9 -12
View File
@@ -77,15 +77,22 @@ Color _getColorFromName(String colorName) {
return Colors.lime;
case 'mint':
return Colors.greenAccent;
case 'sky':
case 'orange':
return Colors.orange;
case 'violet':
return Colors.deepPurpleAccent;
case 'amber':
return Colors.amber;
case 'brown':
return Colors.brown;
case 'grey':
return Colors.grey;
default:
return Colors.blue; // fallback
}
}
// Load the target data files from the directory
void _loadTargetDataFiles() async {
try {
@@ -590,15 +597,6 @@ Widget _buildFolderRow(String folderName) {
color: isExpanded ? _bulletColor : Colors.transparent,
width: 1.5,
),
boxShadow: isExpanded
? [
BoxShadow(
color: _bulletColor.withOpacity(0.2),
blurRadius: 6,
offset: const Offset(0, 2),
),
]
: [],
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
@@ -611,7 +609,6 @@ Widget _buildFolderRow(String folderName) {
? '🏆 $folderName'
: folderName,
style: const TextStyle(fontSize: 16, fontWeight: FontWeight.w600),
overflow: TextOverflow.ellipsis,
),
subtitle: Padding(
padding: const EdgeInsets.only(top: 4.0),
@@ -626,7 +623,7 @@ Widget _buildFolderRow(String folderName) {
IconButton(
iconSize: 22,
visualDensity: VisualDensity.compact,
icon: const Icon(Icons.my_location, color: Colors.grey),
icon: Icon(Icons.my_location, color: _bulletColor),
onPressed: () => _openFolderTargetView(folderName),
),
IconButton(