refactor(dashboard): remove chart icon from stats button overlay (#21)

* refactor(dashboard): remove chart icon from stats button overlay

Keep only the arrow indicator for the stats navigation button
on the car image, making the UI cleaner and less cluttered.

* docs: add changelog entry for stats button simplification
This commit is contained in:
Davide Ferrari
2026-01-06 21:25:18 +01:00
committed by GitHub
parent 3f0fc1da61
commit f738c840af
2 changed files with 6 additions and 12 deletions

View File

@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **Stats Sync**: Pull-to-refresh in Stats screen now triggers a background sync
- **Stats Sync**: Automatic sync every 60 seconds while Stats screen is visible
### Changed
- **Dashboard**: Simplified stats button overlay on car image - now shows only arrow indicator
## [0.8.0] - 2026-01-05
### Added

View File

@@ -43,7 +43,6 @@ import androidx.compose.material.icons.filled.DriveEta
import androidx.compose.material.icons.filled.Terrain
import androidx.compose.material.icons.filled.Thermostat
import androidx.compose.material.icons.filled.Timeline
import androidx.compose.material.icons.filled.Analytics
import androidx.compose.material.icons.filled.ArrowDropDown
import androidx.compose.material.icons.filled.Check
import com.matedroid.ui.icons.CustomIcons
@@ -476,28 +475,20 @@ private fun CarImage(
)
// Stats button on middle-right side
if (onNavigateToStats != null) {
Row(
Box(
modifier = Modifier
.align(Alignment.CenterEnd)
.padding(end = 4.dp)
.clip(RoundedCornerShape(8.dp))
.background(MaterialTheme.colorScheme.primaryContainer.copy(alpha = 0.9f))
.padding(horizontal = 8.dp, vertical = 6.dp),
verticalAlignment = Alignment.CenterVertically
.padding(horizontal = 6.dp, vertical = 6.dp)
) {
Icon(
imageVector = Icons.Default.Analytics,
imageVector = Icons.AutoMirrored.Filled.KeyboardArrowRight,
contentDescription = "View stats",
tint = MaterialTheme.colorScheme.onPrimaryContainer,
modifier = Modifier.size(20.dp)
)
Spacer(modifier = Modifier.width(2.dp))
Icon(
imageVector = Icons.AutoMirrored.Filled.KeyboardArrowRight,
contentDescription = null,
tint = MaterialTheme.colorScheme.onPrimaryContainer,
modifier = Modifier.size(18.dp)
)
}
}
}