|
| 1 | +@file:Suppress("UnusedReceiverParameter") |
| 2 | + |
| 3 | +package org.schabi.newpipe.ui.components.menu.icons |
| 4 | + |
| 5 | +import androidx.compose.foundation.layout.size |
| 6 | +import androidx.compose.material.icons.Icons |
| 7 | +import androidx.compose.material.icons.materialIcon |
| 8 | +import androidx.compose.material.icons.materialPath |
| 9 | +import androidx.compose.material3.Icon |
| 10 | +import androidx.compose.runtime.Composable |
| 11 | +import androidx.compose.ui.Modifier |
| 12 | +import androidx.compose.ui.graphics.vector.ImageVector |
| 13 | +import androidx.compose.ui.tooling.preview.Preview |
| 14 | +import androidx.compose.ui.unit.dp |
| 15 | + |
| 16 | +/** |
| 17 | + * Obtained by combining Filled.Headset and Filled.PlaylistPlay |
| 18 | + */ |
| 19 | +val Icons.Filled.BackgroundFromHere: ImageVector by lazy { |
| 20 | + materialIcon(name = "Filled.HeadsetPlus") { |
| 21 | + materialPath { |
| 22 | + moveTo(7.200f, 0.000f) |
| 23 | + curveToRelative(-3.976f, 0.000f, -7.200f, 3.224f, -7.200f, 7.200f) |
| 24 | + verticalLineToRelative(5.600f) |
| 25 | + curveToRelative(0.000f, 1.328f, 1.072f, 2.400f, 2.400f, 2.400f) |
| 26 | + horizontalLineToRelative(2.400f) |
| 27 | + verticalLineToRelative(-6.400f) |
| 28 | + horizontalLineTo(1.600f) |
| 29 | + verticalLineToRelative(-1.600f) |
| 30 | + curveToRelative(0.000f, -3.096f, 2.504f, -5.600f, 5.600f, -5.600f) |
| 31 | + reflectiveCurveToRelative(5.600f, 2.504f, 5.600f, 5.600f) |
| 32 | + verticalLineToRelative(1.600f) |
| 33 | + horizontalLineToRelative(-3.200f) |
| 34 | + verticalLineToRelative(6.400f) |
| 35 | + horizontalLineToRelative(2.400f) |
| 36 | + curveToRelative(1.328f, 0.000f, 2.400f, -1.072f, 2.400f, -2.400f) |
| 37 | + verticalLineToRelative(-5.600f) |
| 38 | + curveToRelative(0.000f, -3.976f, -3.224f, -7.200f, -7.200f, -7.200f) |
| 39 | + close() |
| 40 | + } |
| 41 | + materialPath { |
| 42 | + moveTo(15.817f, 16.202f) |
| 43 | + lineToRelative(-0.916f, 0.916f) |
| 44 | + lineToRelative(2.977f, 2.983f) |
| 45 | + lineToRelative(-2.977f, 2.983f) |
| 46 | + lineToRelative(0.916f, 0.916f) |
| 47 | + lineToRelative(3.900f, -3.900f) |
| 48 | + close() |
| 49 | + } |
| 50 | + materialPath { |
| 51 | + moveTo(20.100f, 16.202f) |
| 52 | + lineToRelative(-0.916f, 0.916f) |
| 53 | + lineToRelative(2.977f, 2.983f) |
| 54 | + lineToRelative(-2.977f, 2.983f) |
| 55 | + lineToRelative(0.916f, 0.916f) |
| 56 | + lineToRelative(3.900f, -3.900f) |
| 57 | + close() |
| 58 | + } |
| 59 | + } |
| 60 | +} |
| 61 | + |
| 62 | +@Preview(showBackground = true, backgroundColor = 0xFFFFFFFF) |
| 63 | +@Composable |
| 64 | +private fun BackgroundFromHerePreview() { |
| 65 | + Icon( |
| 66 | + imageVector = Icons.Filled.BackgroundFromHere, |
| 67 | + contentDescription = null, |
| 68 | + modifier = Modifier.size(240.dp), |
| 69 | + ) |
| 70 | +} |
0 commit comments