@@ -940,21 +940,6 @@ private fun AppearanceSettingsScreen(
|
940 | 940 | ) |
941 | 941 | } |
942 | 942 | } |
943 | | -ClawPanel { |
944 | | -Column(verticalArrangement = Arrangement.spacedBy(10.dp)) { |
945 | | -Text(text = "Palette", style = ClawTheme.type.section, color = ClawTheme.colors.text) |
946 | | -Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.spacedBy(8.dp)) { |
947 | | -AppearancePaletteSwatch("Canvas", ClawTheme.colors.canvas, modifier = Modifier.weight(1f)) |
948 | | -AppearancePaletteSwatch("Surface", ClawTheme.colors.surfaceRaised, modifier = Modifier.weight(1f)) |
949 | | -AppearancePaletteSwatch( |
950 | | -"Accent", |
951 | | -ClawTheme.colors.primary, |
952 | | - contentColor = ClawTheme.colors.canvas, |
953 | | - modifier = Modifier.weight(1f), |
954 | | - ) |
955 | | - } |
956 | | - } |
957 | | - } |
958 | 943 | } |
959 | 944 | } |
960 | 945 | |
@@ -964,25 +949,6 @@ internal fun appearanceThemeOptions(): List<String> = AppearanceThemeMode.entrie
|
964 | 949 | |
965 | 950 | internal fun appearanceThemeModeForLabel(label: String): AppearanceThemeMode = AppearanceThemeMode.fromDisplayLabel(label) |
966 | 951 | |
967 | | -@Composable |
968 | | -private fun AppearancePaletteSwatch( |
969 | | -label: String, |
970 | | -color: Color, |
971 | | -contentColor: Color = ClawTheme.colors.text, |
972 | | -modifier: Modifier = Modifier, |
973 | | -) { |
974 | | -Surface( |
975 | | - modifier = modifier.height(58.dp), |
976 | | - shape = RoundedCornerShape(ClawTheme.radii.control), |
977 | | - color = color, |
978 | | - border = BorderStroke(1.dp, ClawTheme.colors.border), |
979 | | - ) { |
980 | | -Box(modifier = Modifier.fillMaxSize().padding(8.dp), contentAlignment = Alignment.BottomStart) { |
981 | | -Text(text = label, style = ClawTheme.type.caption, color = contentColor, maxLines = 1) |
982 | | - } |
983 | | - } |
984 | | -} |
985 | | - |
986 | 952 | /** Converts raw gateway connection text into stable settings metric labels. */ |
987 | 953 | private fun gatewayStatusLabel( |
988 | 954 | statusText: String, |
|