Skip to content

Commit

Permalink
style: Improve consistency of some icons (#137)
Browse files Browse the repository at this point in the history
Signed-off-by: starry-shivam <starry@krsh.dev>
  • Loading branch information
starry-shivam authored May 20, 2024
1 parent dd10743 commit a6725cd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -206,29 +206,28 @@ fun GoalItemClassic(

Spacer(
modifier = Modifier
.height(1.dp)
.weight(1f)
)

IconButton(onClick = { onInfoClicked() }) {
IconButton(onClick = onInfoClicked) {
Icon(
modifier = Modifier.size(24.dp),
modifier = Modifier.size(21.dp),
imageVector = ImageVector.vectorResource(id = R.drawable.ic_goal_info),
contentDescription = stringResource(id = R.string.info_button_description),
tint = MaterialTheme.colorScheme.onSurface
)
}
IconButton(onClick = { onEditClicked() }) {
IconButton(onClick = onEditClicked) {
Icon(
modifier = Modifier.size(24.dp),
modifier = Modifier.size(21.dp),
imageVector = ImageVector.vectorResource(id = R.drawable.ic_goal_edit),
contentDescription = stringResource(id = R.string.edit_button_description),
tint = MaterialTheme.colorScheme.onSurface
)
}
IconButton(onClick = { onDeleteClicked() }) {
IconButton(onClick = onDeleteClicked) {
Icon(
modifier = Modifier.size(24.dp),
modifier = Modifier.size(21.dp),
imageVector = ImageVector.vectorResource(id = R.drawable.ic_goal_delete),
contentDescription = stringResource(id = R.string.delete_button_description),
tint = MaterialTheme.colorScheme.onSurface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ import androidx.compose.animation.core.tween
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.statusBars
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.Sort
import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.filled.Menu
import androidx.compose.material.icons.filled.Search
Expand All @@ -57,10 +57,8 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.platform.LocalView
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.res.vectorResource
import androidx.compose.ui.text.input.ImeAction
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
Expand Down Expand Up @@ -147,9 +145,8 @@ private fun DefaultAppBar(
onFilterClicked()
}) {
Icon(
imageVector = ImageVector.vectorResource(id = R.drawable.ic_menu_filter),
imageVector = Icons.AutoMirrored.Filled.Sort,
contentDescription = stringResource(id = R.string.filter_button_desc),
modifier = Modifier.size(22.dp)
)
}
IconButton(onClick = {
Expand Down
14 changes: 0 additions & 14 deletions app/src/main/res/drawable/ic_menu_filter.xml

This file was deleted.

0 comments on commit a6725cd

Please sign in to comment.