Skip to content

Commit b18ea12

Browse files
committed
fix: Vertical ScrollBar Change to White
1 parent a5c71c9 commit b18ea12

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

composeApp/src/commonMain/kotlin/ui/components/PageHeader.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ fun PageHeader(
8787
) {
8888
val coroutineScope = rememberCoroutineScope()
8989

90+
9091
//Background
9192
DropShadow(
9293
modifier = Modifier
@@ -128,6 +129,10 @@ fun PageHeader(
128129
interactionSource = MutableInteractionSource()
129130
)
130131
){
132+
133+
//PageTopMask()
134+
135+
131136
Column {
132137
Row(
133138
Modifier

composeApp/src/commonMain/kotlin/ui/screens/GlobalBackgroundScreen.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ val gradientBottom = Brush.verticalGradient(
5858
Black
5959
)
6060
)
61+
val gradientTop = Brush.verticalGradient(
62+
colors = listOf(
63+
Black,
64+
Transparent,
65+
)
66+
)
6167

6268
//lateinit var backgroundScreenHazeState : HazeState
6369
val bgModified = mutableStateOf(false)

composeApp/src/commonMain/kotlin/utils/app/AppTheme.kt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import androidx.compose.foundation.layout.displayCutout
1616
import androidx.compose.foundation.layout.fillMaxHeight
1717
import androidx.compose.foundation.layout.fillMaxSize
1818
import androidx.compose.foundation.layout.fillMaxWidth
19+
import androidx.compose.foundation.layout.height
1920
import androidx.compose.foundation.layout.padding
2021
import androidx.compose.foundation.lazy.LazyListState
2122
import androidx.compose.foundation.lazy.grid.LazyGridState
@@ -55,6 +56,7 @@ import setKeyboardDarkMode
5556
import ui.components.PAGE_HEADER_HEIGHT
5657
import ui.screens.globalHazeBlur
5758
import ui.screens.gradientBottom
59+
import ui.screens.gradientTop
5860

5961
val Purple80 = Color(0xFFD0BCFF)
6062
val PurpleGrey80 = Color(0xFFCCC2DC)
@@ -275,6 +277,14 @@ fun PageBottomMask(modifier: Modifier = Modifier) {
275277
)
276278
}
277279
}
280+
@Composable
281+
fun PageTopMask(modifier: Modifier = Modifier) {
282+
Box(Modifier.fillMaxSize()) {
283+
Box(
284+
modifier = Modifier.fillMaxWidth().height(PAGE_HEADER_HEIGHT).background(gradientTop).align(Alignment.TopCenter)
285+
)
286+
}
287+
}
278288

279289
@Composable
280290
fun FontShadow() = TextStyle(shadow = Shadow(color = Color.Black, offset = Offset(2.0f, 2.0f)))
@@ -310,8 +320,8 @@ fun SG3ScrollbarStyle(): ScrollbarStyle {
310320
hoverDurationMillis = 300,
311321
thumbStyle = ThumbStyle(
312322
shape = RoundedCornerShape(4.dp),
313-
unhoverColor = Color.Black.copy(0.5f),
314-
hoverColor = Color.Black.copy(0.5f),
323+
unhoverColor = Color.White.copy(0.5f),
324+
hoverColor = Color.White.copy(0.5f),
315325
),
316326
trackStyle = TrackStyle(
317327
shape = RoundedCornerShape(4.dp),

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#Fri May 09 11:36:24 HKT 2025
1+
#Fri May 09 11:59:36 HKT 2025
22
APP_PLATFORM=Android
33
APP_PROFILE=BETA
44
APP_VERSION=2025.05.09
55
APP_VERSION_BETA=3.0.1
6-
APP_VERSION_CODE=9159
6+
APP_VERSION_CODE=9175
77
APP_VERSION_CODENAME=Firefly
88
APP_VERSION_CODENAME_BETA=Echo
99
APP_VERSION_DESKTOP=1.0.4

0 commit comments

Comments
 (0)