Skip to content

Commit

Permalink
Added new icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Isira-Seneviratne committed Jul 14, 2024
1 parent cc49d7c commit abeff9a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
11 changes: 2 additions & 9 deletions app/src/main/java/org/schabi/newpipe/about/AboutTab.kt
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
package org.schabi.newpipe.about

import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.layout.wrapContentWidth
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.runtime.NonRestartableComposable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
Expand Down Expand Up @@ -53,11 +49,8 @@ fun AboutTab() {
horizontalAlignment = Alignment.CenterHorizontally
) {
Image(
painter = painterResource(R.mipmap.ic_launcher_foreground),
contentDescription = stringResource(R.string.app_name),
modifier = Modifier
.clip(CircleShape)
.background(Color.Red)
painter = painterResource(R.drawable.icon),
contentDescription = stringResource(R.string.app_name)
)
Text(
style = MaterialTheme.typography.titleLarge,
Expand Down
18 changes: 18 additions & 0 deletions app/src/main/res/drawable/icon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="100dp"
android:height="100dp"
android:viewportWidth="100"
android:viewportHeight="100">
<path
android:pathData="M50,50m-50,0a50,50 0,1 1,100 0a50,50 0,1 1,-100 0"
android:fillColor="#CD201F"/>
<path
android:pathData="M47,28.2c-9,-5.3 -15.3,-9 -15.3,-9v61.7c0,0 30.4,-18 52.3,-30.9C72.1,43 57.7,34.5 47,28.2z"
android:fillColor="#FFFFFF"/>
<path
android:pathData="M48.4,40.1c-4.1,-2.4 -7,-4.1 -7,-4.1V64c0,0 13.9,-8.2 23.8,-14C59.8,46.8 53.3,42.9 48.4,40.1z"
android:fillColor="#CD201F"/>
<path
android:pathData="M41.4,55.6h6.2v21h-6.2z"
android:fillColor="#CD201F"/>
</vector>

0 comments on commit abeff9a

Please sign in to comment.