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 @Singleton
fun provideRetrofit(moshi: Moshi, okHttpClient: OkHttpClient): Retrofit { fun provideRetrofit(moshi: Moshi, okHttpClient: OkHttpClient): Retrofit {
return Retrofit.Builder() return Retrofit.Builder()
.baseUrl("http://192.168.0.217/") .baseUrl("http://192.168.0.189/")
.client(okHttpClient) // 關鍵:將攔截器綁定到 Retrofit .client(okHttpClient) // 關鍵:將攔截器綁定到 Retrofit
.addConverterFactory(MoshiConverterFactory.create(moshi)) .addConverterFactory(MoshiConverterFactory.create(moshi))
.build() .build()

View file

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