Skip to content

Commit

Permalink
[#254] Use new play icon provided by design team
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinea committed Sep 8, 2022
1 parent 960d345 commit 894650a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ import androidx.compose.foundation.verticalScroll
import androidx.compose.material.Divider
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.Icon
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.PlayArrow
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import com.orange.ods.compose.component.list.OdsListItem
import com.orange.ods.compose.text.OdsTextSubtitle2
Expand Down Expand Up @@ -95,7 +94,7 @@ fun ComponentDetailScreen(
@Composable
private fun ComponentDetailLinkItem(label: String, onClick: () -> Unit) {
OdsListItem(
icon = { Icon(imageVector = Icons.Filled.PlayArrow, contentDescription = null) },
icon = { Icon(painter = painterResource(id = R.drawable.ic_play_outline), contentDescription = null) },
text = label,
modifier = Modifier.clickable { onClick() })
}
4 changes: 4 additions & 0 deletions demo/src/main/res/drawable/ic_play_outline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<vector android:height="24dp" android:viewportHeight="1000"
android:viewportWidth="1000" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:fillType="evenOdd" android:pathData="M500,75c234.7,0 425,190.3 425,425S734.7,925 500,925 75,734.7 75,500 265.3,75 500,75ZM500,100c220.9,0 400,179.1 400,400S720.9,900 500,900 100,720.9 100,500 279.1,100 500,100ZM550.5,582.9L418.4,652.3a15,15 0,0 1,-22 -13.3L396.3,364.9a15,15 0,0 1,22 -13.3L550.5,421 675.6,488.7a15,15 0,0 1,0 26.4Z"/>
</vector>

0 comments on commit 894650a

Please sign in to comment.