Kaynağa Gözat

Resolve indicator/divider color of server list screen and change word theme to appearance

Khubaib 8 ay önce
ebeveyn
işleme
c21b270420

+ 1 - 1
.idea/deploymentTargetSelector.xml

@@ -4,7 +4,7 @@
     <selectionStates>
       <SelectionState runConfigName="app">
         <option name="selectionMode" value="DROPDOWN" />
-        <DropdownSelection timestamp="2024-08-20T09:42:15.158245620Z">
+        <DropdownSelection timestamp="2024-08-20T15:30:26.598679158Z">
           <Target type="DEFAULT_BOOT">
             <handle>
               <DeviceId pluginId="LocalEmulator" identifier="path=/home/ubuntu/.android/avd/Television_1080p_API_31.avd" />

+ 9 - 1
app/src/main/java/com/vpn/fastestvpnservice/screens/ServerListScreen.kt

@@ -7,6 +7,7 @@ import androidx.compose.foundation.ExperimentalFoundationApi
 import androidx.compose.foundation.LocalOverscrollConfiguration
 import androidx.compose.foundation.background
 import androidx.compose.foundation.gestures.detectTapGestures
+import androidx.compose.foundation.interaction.MutableInteractionSource
 import androidx.compose.foundation.layout.Arrangement
 import androidx.compose.foundation.layout.Box
 import androidx.compose.foundation.layout.BoxScope
@@ -26,6 +27,7 @@ import androidx.compose.foundation.pager.HorizontalPager
 import androidx.compose.foundation.pager.rememberPagerState
 import androidx.compose.foundation.selection.selectable
 import androidx.compose.foundation.shape.RoundedCornerShape
+import androidx.compose.material.Divider
 import androidx.compose.material.icons.Icons
 import androidx.compose.material.icons.automirrored.filled.ArrowBack
 import androidx.compose.material3.DockedSearchBar
@@ -478,6 +480,13 @@ fun ColumnScope.ShowAllLocationsList(
     ScrollableTabRow(
         selectedTabIndex = selectedIndex,
         containerColor = Color.Transparent,
+        divider = {
+            Divider(
+                color = colorResource(id = R.color.gray_icon),
+                thickness = 1.dp,
+                modifier = Modifier.alpha(0.6F)
+            )
+        },
         modifier = Modifier
             .fillMaxWidth()
             .padding(top = 0.dp)
@@ -549,7 +558,6 @@ fun ColumnScope.ShowAllLocationsList(
                     )
                 },
                 modifier = Modifier
-
                     .background(
 //                        color = color.value,
                         color = Color.Transparent,

+ 2 - 2
app/src/main/java/com/vpn/fastestvpnservice/screens/bottomNavBarScreens/SettingsScreen.kt

@@ -222,7 +222,7 @@ fun Settings(navHostController: NavHostController, activity: ComponentActivity)
                 )
                 AddRowDarkLightTheme(
                     icon = Icons.Default.DarkMode,
-                    text = "Theme")
+                    text = "Appearance")
 
 //                SelectLanguage(icon = Icons.Default.Language, text = "Language")
                 
@@ -959,7 +959,7 @@ fun AddRowDarkLightTheme(
                     horizontalAlignment = Alignment.Start
                 ) {
                     AddTextSettings(
-                        text = "Theme",
+                        text = "Appearance",
                         size = 18.sp,
                         color = MaterialTheme.colorScheme.primary,
                         bottomPadding = 20.dp,

+ 2 - 2
app/src/main/java/com/vpn/fastestvpnservice/screensTV/SettingsScreenTV.kt

@@ -241,7 +241,7 @@ fun SettingsTV(navHostController: NavHostController) {
                 )
                 AddRowDarkLightThemeTV(
                     icon = Icons.Default.DarkMode,
-                    text = "Theme")
+                    text = "Appearance")
             }
         }
     }
@@ -1252,7 +1252,7 @@ fun AddRowDarkLightThemeTV(
                     horizontalAlignment = Alignment.Start
                 ) {
                     AddTextSettings(
-                        text = "Theme",
+                        text = "Appearance",
                         size = 18.sp,
                         color = MaterialTheme.colorScheme.primary,
                         bottomPadding = 20.dp,