mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 03:29:28 +01:00
comment out call icons and menu
As this is (at least for now) only used for the search results window, calls button and menu doesn't make sense. At some later point in time this could be used when chat activity is migrated to compose.. Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
971cc79b76
commit
225291fe20
@ -17,7 +17,6 @@ import androidx.compose.foundation.layout.Arrangement
|
|||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
import androidx.compose.foundation.layout.Spacer
|
|
||||||
import androidx.compose.foundation.layout.fillMaxHeight
|
import androidx.compose.foundation.layout.fillMaxHeight
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
@ -45,9 +44,7 @@ import androidx.compose.runtime.remember
|
|||||||
import androidx.compose.runtime.setValue
|
import androidx.compose.runtime.setValue
|
||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.draw.alpha
|
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.res.painterResource
|
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import androidx.compose.ui.unit.sp
|
import androidx.compose.ui.unit.sp
|
||||||
@ -158,28 +155,28 @@ class ContextChatCompose(val bundle: Bundle) {
|
|||||||
val name = bundle.getString(BundleKeys.KEY_CONVERSATION_NAME)!!
|
val name = bundle.getString(BundleKeys.KEY_CONVERSATION_NAME)!!
|
||||||
Text(name, fontSize = 24.sp)
|
Text(name, fontSize = 24.sp)
|
||||||
}
|
}
|
||||||
Spacer(modifier = Modifier.weight(1f))
|
// Spacer(modifier = Modifier.weight(1f))
|
||||||
val cInt = context.resources.getColor(R.color.high_emphasis_text, null)
|
// val cInt = context.resources.getColor(R.color.high_emphasis_text, null)
|
||||||
Icon(
|
// Icon(
|
||||||
painterResource(R.drawable.ic_call_black_24dp),
|
// painterResource(R.drawable.ic_call_black_24dp),
|
||||||
"",
|
// "",
|
||||||
tint = Color(cInt),
|
// tint = Color(cInt),
|
||||||
modifier = Modifier
|
// modifier = Modifier
|
||||||
.padding()
|
// .padding()
|
||||||
.padding(end = 16.dp)
|
// .padding(end = 16.dp)
|
||||||
.alpha(HALF_ALPHA)
|
// .alpha(HALF_ALPHA)
|
||||||
)
|
// )
|
||||||
|
//
|
||||||
Icon(
|
// Icon(
|
||||||
painterResource(R.drawable.ic_baseline_videocam_24),
|
// painterResource(R.drawable.ic_baseline_videocam_24),
|
||||||
"",
|
// "",
|
||||||
tint = Color(cInt),
|
// tint = Color(cInt),
|
||||||
modifier = Modifier
|
// modifier = Modifier
|
||||||
.padding()
|
// .padding()
|
||||||
.alpha(HALF_ALPHA)
|
// .alpha(HALF_ALPHA)
|
||||||
)
|
// )
|
||||||
|
//
|
||||||
ComposeChatMenu(colorScheme.background, false)
|
// ComposeChatMenu(colorScheme.background, false)
|
||||||
}
|
}
|
||||||
if (shouldShow) {
|
if (shouldShow) {
|
||||||
Icon(
|
Icon(
|
||||||
|
Loading…
Reference in New Issue
Block a user