This commit is contained in:
Eric85710 2026-06-10 14:53:10 +08:00
parent df9d3f4bb7
commit e0aa616227
2 changed files with 5 additions and 4 deletions

View file

@ -36,7 +36,7 @@ object NetworkModule {
@Singleton
fun provideRetrofit(moshi: Moshi, okHttpClient: OkHttpClient): Retrofit {
return Retrofit.Builder()
.baseUrl("http://192.168.0.217/")
.baseUrl("http://192.168.0.189/")
.client(okHttpClient) // 關鍵:將攔截器綁定到 Retrofit
.addConverterFactory(MoshiConverterFactory.create(moshi))
.build()

View file

@ -141,11 +141,12 @@ fun ChatMenuButton(
imageVector: ImageVector,
label: String,
enabled: Boolean = true,
tint: Color = Color(0xFFDA7029),
tint: Color = Color.White, // 💡 將這裡的 Color(0xFFDA7029) 改成 Color.White
onClick: () -> Unit
) {
val contentColor = if (enabled) tint else Color.LightGray
val textColor = if (enabled) Color.DarkGray else Color.LightGray
val contentColor = if (enabled) tint else Color.LightGray.copy(alpha = 0.5f)
// 💡 既然圖標變白了,文字建議也同步改成白色(或帶點透明度的白),在深色背景上才看得清楚
val textColor = if (enabled) Color.White else Color.LightGray.copy(alpha = 0.5f)
Column(
horizontalAlignment = Alignment.CenterHorizontally,