mirror of
https://github.com/vide/matedroid.git
synced 2026-01-20 00:03:17 +08:00
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:
@@ -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**: Pull-to-refresh in Stats screen now triggers a background sync
|
||||||
- **Stats Sync**: Automatic sync every 60 seconds while Stats screen is visible
|
- **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
|
## [0.8.0] - 2026-01-05
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ import androidx.compose.material.icons.filled.DriveEta
|
|||||||
import androidx.compose.material.icons.filled.Terrain
|
import androidx.compose.material.icons.filled.Terrain
|
||||||
import androidx.compose.material.icons.filled.Thermostat
|
import androidx.compose.material.icons.filled.Thermostat
|
||||||
import androidx.compose.material.icons.filled.Timeline
|
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.ArrowDropDown
|
||||||
import androidx.compose.material.icons.filled.Check
|
import androidx.compose.material.icons.filled.Check
|
||||||
import com.matedroid.ui.icons.CustomIcons
|
import com.matedroid.ui.icons.CustomIcons
|
||||||
@@ -476,28 +475,20 @@ private fun CarImage(
|
|||||||
)
|
)
|
||||||
// Stats button on middle-right side
|
// Stats button on middle-right side
|
||||||
if (onNavigateToStats != null) {
|
if (onNavigateToStats != null) {
|
||||||
Row(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.align(Alignment.CenterEnd)
|
.align(Alignment.CenterEnd)
|
||||||
.padding(end = 4.dp)
|
.padding(end = 4.dp)
|
||||||
.clip(RoundedCornerShape(8.dp))
|
.clip(RoundedCornerShape(8.dp))
|
||||||
.background(MaterialTheme.colorScheme.primaryContainer.copy(alpha = 0.9f))
|
.background(MaterialTheme.colorScheme.primaryContainer.copy(alpha = 0.9f))
|
||||||
.padding(horizontal = 8.dp, vertical = 6.dp),
|
.padding(horizontal = 6.dp, vertical = 6.dp)
|
||||||
verticalAlignment = Alignment.CenterVertically
|
|
||||||
) {
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Default.Analytics,
|
imageVector = Icons.AutoMirrored.Filled.KeyboardArrowRight,
|
||||||
contentDescription = "View stats",
|
contentDescription = "View stats",
|
||||||
tint = MaterialTheme.colorScheme.onPrimaryContainer,
|
tint = MaterialTheme.colorScheme.onPrimaryContainer,
|
||||||
modifier = Modifier.size(20.dp)
|
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)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user