Skip to content

Commit

Permalink
Update settings icon
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Oct 5, 2023
1 parent 3626cf5 commit c47102c
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/*
* Copyright 2023 Sasikanth Miriyampalli
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package dev.sasikanth.rss.reader.resources.icons

import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.ImageVector.Builder
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val TwineIcons.Tune: ImageVector
get() {
if (tune != null) {
return tune!!
}
tune =
Builder(
name = "Tune",
defaultWidth = 24.0.dp,
defaultHeight = 24.0.dp,
viewportWidth = 24.0f,
viewportHeight = 24.0f
)
.apply {
path(
fill = SolidColor(Color(0xFF000000)),
stroke = null,
strokeLineWidth = 0.0f,
strokeLineCap = Butt,
strokeLineJoin = Miter,
strokeLineMiter = 4.0f,
pathFillType = NonZero
) {
moveTo(11.0f, 21.0f)
verticalLineTo(15.0f)
horizontalLineTo(13.0f)
verticalLineTo(17.0f)
horizontalLineTo(21.0f)
verticalLineTo(19.0f)
horizontalLineTo(13.0f)
verticalLineTo(21.0f)
horizontalLineTo(11.0f)
close()
moveTo(3.0f, 19.0f)
verticalLineTo(17.0f)
horizontalLineTo(9.0f)
verticalLineTo(19.0f)
horizontalLineTo(3.0f)
close()
moveTo(7.0f, 15.0f)
verticalLineTo(13.0f)
horizontalLineTo(3.0f)
verticalLineTo(11.0f)
horizontalLineTo(7.0f)
verticalLineTo(9.0f)
horizontalLineTo(9.0f)
verticalLineTo(15.0f)
horizontalLineTo(7.0f)
close()
moveTo(11.0f, 13.0f)
verticalLineTo(11.0f)
horizontalLineTo(21.0f)
verticalLineTo(13.0f)
horizontalLineTo(11.0f)
close()
moveTo(15.0f, 9.0f)
verticalLineTo(3.0f)
horizontalLineTo(17.0f)
verticalLineTo(5.0f)
horizontalLineTo(21.0f)
verticalLineTo(7.0f)
horizontalLineTo(17.0f)
verticalLineTo(9.0f)
horizontalLineTo(15.0f)
close()
moveTo(3.0f, 7.0f)
verticalLineTo(5.0f)
horizontalLineTo(13.0f)
verticalLineTo(7.0f)
horizontalLineTo(3.0f)
close()
}
}
.build()
return tune!!
}

private var tune: ImageVector? = null
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.MoreVert
import androidx.compose.material.icons.rounded.Search
import androidx.compose.material.icons.rounded.Settings
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
Expand All @@ -51,6 +50,7 @@ import dev.sasikanth.rss.reader.components.DropdownMenu
import dev.sasikanth.rss.reader.components.DropdownMenuItem
import dev.sasikanth.rss.reader.resources.icons.Bookmarks
import dev.sasikanth.rss.reader.resources.icons.RSS
import dev.sasikanth.rss.reader.resources.icons.Tune
import dev.sasikanth.rss.reader.resources.icons.TwineIcons
import dev.sasikanth.rss.reader.resources.strings.LocalStrings
import dev.sasikanth.rss.reader.ui.AppTheme
Expand Down Expand Up @@ -145,10 +145,7 @@ private fun OverflowMenu(onSettingsClicked: () -> Unit) {
DropdownMenuItem(
text = { Text(text = LocalStrings.current.settings) },
leadingIcon = {
Icon(
imageVector = Icons.Rounded.Settings,
contentDescription = LocalStrings.current.settings
)
Icon(imageVector = TwineIcons.Tune, contentDescription = LocalStrings.current.settings)
},
onClick = {
dropdownExpanded = false
Expand Down

0 comments on commit c47102c

Please sign in to comment.