|
@@ -773,6 +773,16 @@ fun Home(
|
|
shape = RoundedCornerShape(28.dp),
|
|
shape = RoundedCornerShape(28.dp),
|
|
color = MaterialTheme.colorScheme.onBackground
|
|
color = MaterialTheme.colorScheme.onBackground
|
|
)
|
|
)
|
|
|
|
+ .pointerInput(Unit) {
|
|
|
|
+ detectTapGestures {
|
|
|
|
+ toChangeServer.value = false
|
|
|
|
+ navHostController.navigate(
|
|
|
|
+ Screen.ServerList.route
|
|
|
|
+ )
|
|
|
|
+ Screen.ServerList.isTrue = true
|
|
|
|
+ Log.d("button_click_change", "Pressed")
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.align(Alignment.CenterHorizontally),
|
|
.align(Alignment.CenterHorizontally),
|
|
contentAlignment = Alignment.CenterStart,
|
|
contentAlignment = Alignment.CenterStart,
|
|
) {
|
|
) {
|
|
@@ -985,8 +995,10 @@ fun Home(
|
|
),
|
|
),
|
|
interactionSource = remember { MutableInteractionSource() }
|
|
interactionSource = remember { MutableInteractionSource() }
|
|
) {
|
|
) {
|
|
- val connectedServer = basePreferenceHelper.getConnectedServer()
|
|
|
|
- val selectedProtocol = basePreferenceHelper.getProtocol().full_name
|
|
|
|
|
|
+ val connectedServer =
|
|
|
|
+ basePreferenceHelper.getConnectedServer()
|
|
|
|
+ val selectedProtocol =
|
|
|
|
+ basePreferenceHelper.getProtocol().full_name
|
|
|
|
|
|
if (!isFeedbackClicked) {
|
|
if (!isFeedbackClicked) {
|
|
isFeedbackClicked = true
|
|
isFeedbackClicked = true
|
|
@@ -1022,8 +1034,10 @@ fun Home(
|
|
),
|
|
),
|
|
interactionSource = remember { MutableInteractionSource() }
|
|
interactionSource = remember { MutableInteractionSource() }
|
|
) {
|
|
) {
|
|
- val connectedServer = basePreferenceHelper.getConnectedServer()
|
|
|
|
- val selectedProtocol = basePreferenceHelper.getProtocol().full_name
|
|
|
|
|
|
+ val connectedServer =
|
|
|
|
+ basePreferenceHelper.getConnectedServer()
|
|
|
|
+ val selectedProtocol =
|
|
|
|
+ basePreferenceHelper.getProtocol().full_name
|
|
|
|
|
|
if (!isFeedbackClicked) {
|
|
if (!isFeedbackClicked) {
|
|
isFeedbackClicked = true
|
|
isFeedbackClicked = true
|
|
@@ -1524,31 +1538,18 @@ fun BoxScope.AddRowSmart(
|
|
|
|
|
|
@Composable
|
|
@Composable
|
|
fun BoxScope.AddRowSelectServer(navHostController: NavHostController, isTablet: Boolean, context: Context) {
|
|
fun BoxScope.AddRowSelectServer(navHostController: NavHostController, isTablet: Boolean, context: Context) {
|
|
- Row(
|
|
|
|
|
|
+ Box(
|
|
modifier = Modifier
|
|
modifier = Modifier
|
|
.fillMaxWidth()
|
|
.fillMaxWidth()
|
|
|
|
+ .fillMaxHeight()
|
|
.padding(15.dp)
|
|
.padding(15.dp)
|
|
.background(Color.Transparent)
|
|
.background(Color.Transparent)
|
|
- .pointerInput(Unit) {
|
|
|
|
- detectTapGestures {
|
|
|
|
- toChangeServer.value = false
|
|
|
|
- navHostController.navigate(
|
|
|
|
- Screen.ServerList.route
|
|
|
|
- )
|
|
|
|
- Screen.ServerList.isTrue = true
|
|
|
|
- Log.d("button_click_change", "Pressed")
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-// .clickable {
|
|
|
|
-// Log.d("test_server_button", "ServerTab Clicked")
|
|
|
|
-// }
|
|
|
|
- ,
|
|
|
|
- horizontalArrangement = Arrangement.Start,
|
|
|
|
- verticalAlignment = Alignment.CenterVertically
|
|
|
|
|
|
+ .align(Alignment.CenterStart)
|
|
) {
|
|
) {
|
|
-
|
|
|
|
Surface(
|
|
Surface(
|
|
- modifier = Modifier.padding(start = 0.dp),
|
|
|
|
|
|
+ modifier = Modifier
|
|
|
|
+ .padding(start = 0.dp)
|
|
|
|
+ .align(Alignment.CenterStart),
|
|
color = Color.Transparent
|
|
color = Color.Transparent
|
|
) {
|
|
) {
|
|
Image(
|
|
Image(
|
|
@@ -1561,10 +1562,13 @@ fun BoxScope.AddRowSelectServer(navHostController: NavHostController, isTablet:
|
|
)
|
|
)
|
|
}
|
|
}
|
|
Surface(
|
|
Surface(
|
|
- modifier = Modifier.padding(start = 12.dp, end = 12.dp).weight(1f),
|
|
|
|
|
|
+ modifier = Modifier
|
|
|
|
+ .padding(start = 52.dp, end = 20.dp)
|
|
|
|
+ .align(Alignment.CenterStart),
|
|
color = Color.Transparent
|
|
color = Color.Transparent
|
|
) {
|
|
) {
|
|
- Text(text = context.getString(R.string.see_all_locations),
|
|
|
|
|
|
+ Text(
|
|
|
|
+ text = context.getString(R.string.see_all_locations),
|
|
style = MaterialTheme.typography.labelMedium.copy(
|
|
style = MaterialTheme.typography.labelMedium.copy(
|
|
fontSize = if (isTablet()) 20.sp else 16.sp
|
|
fontSize = if (isTablet()) 20.sp else 16.sp
|
|
),
|
|
),
|
|
@@ -1577,11 +1581,11 @@ fun BoxScope.AddRowSelectServer(navHostController: NavHostController, isTablet:
|
|
// .weight(1f)
|
|
// .weight(1f)
|
|
)
|
|
)
|
|
}
|
|
}
|
|
-// Spacer(modifier = Modifier.weight(1F))
|
|
|
|
Surface(
|
|
Surface(
|
|
- modifier = Modifier.padding(start = 0.dp),
|
|
|
|
- color = Color.Transparent
|
|
|
|
-
|
|
|
|
|
|
+ color = Color.Transparent,
|
|
|
|
+ modifier = Modifier
|
|
|
|
+ .padding(start = 0.dp)
|
|
|
|
+ .align(Alignment.CenterEnd)
|
|
) {
|
|
) {
|
|
Image(
|
|
Image(
|
|
painter = painterResource(id = R.drawable.frontarrow3x),
|
|
painter = painterResource(id = R.drawable.frontarrow3x),
|
|
@@ -1593,7 +1597,6 @@ fun BoxScope.AddRowSelectServer(navHostController: NavHostController, isTablet:
|
|
// .weight(1f),
|
|
// .weight(1f),
|
|
)
|
|
)
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|