Skip to content

Commit

Permalink
Remove specific portrait setting with aim of using photo modes instead
Browse files Browse the repository at this point in the history
  • Loading branch information
IzaakBH committed Feb 12, 2025
1 parent 494e349 commit f7e4d8f
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions app/src/main/java/co/stonephone/stonecamera/plugins/Portrait.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import java.util.Objects
import kotlin.math.max
import kotlin.math.min


class PortraitModePlugin : IPlugin {
override val id: String = "portraitModePlugin"
override val name: String = "Portrait Mode"
Expand Down Expand Up @@ -270,41 +269,6 @@ class PortraitModePlugin : IPlugin {
return img
}

override val settings: (StoneCameraViewModel) -> List<PluginSetting> = { viewModel ->
listOf(
PluginSetting.EnumSetting(
key = "portraitMode",
defaultValue = "OFF",
options = listOf("OFF", "ON"),
render = { isEnabled, isSelected ->
Icon(
imageVector = when (isEnabled) {
"OFF" -> Icons.Default.PersonOff
"ON" -> Icons.Default.Portrait
else -> {
Icons.Default.PersonOff
}
},
contentDescription = when (isEnabled) {
"OFF" -> "Portrait Mode Off"
"ON" -> "Portrait Mode On"
else -> {
"Portrait Mode Off"
}
},
tint = if (isSelected) Color(0xFFFFCC00) else Color.White
)

},
onChange = { viewModel, value ->
viewModel.recreateUseCases()
},
renderLocation = SettingLocation.TOP,
label = "Portrait Mode"
)
)
}

private fun setupImageSegmenter() {
val baseOptionsBuilder = BaseOptions.builder()
baseOptionsBuilder.setDelegate(Delegate.GPU)
Expand Down

0 comments on commit f7e4d8f

Please sign in to comment.