From 570172ca221d2a77444a930e46fba8cdc9ae20ae Mon Sep 17 00:00:00 2001 From: xianyi Date: Fri, 23 Jan 2026 16:48:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/search.tsx | 98 ++++++++++++-------------------------------------- 1 file changed, 23 insertions(+), 75 deletions(-) diff --git a/app/search.tsx b/app/search.tsx index ece5b1c..d0cddb7 100644 --- a/app/search.tsx +++ b/app/search.tsx @@ -113,8 +113,10 @@ export default function SearchScreen() { const { t } = useTranslation(); const insets = useSafeAreaInsets(); const isDark = theme === "dark"; + const textColor = isDark ? "#FFFFFF" : "#000000"; const cardBg = isDark ? "#1C1C1E" : "#FFFFFF"; - const borderColor = isDark ? "#2C2C2E" : "rgba(0,0,0,0.06)"; + const borderColor = isDark ? "#2C2C2E" : "rgba(0,0,0,0.1)"; + const pageBg = isDark ? Colors.dark.background : "#f2f2f7"; const { state } = useAppState(); const [searchType, setSearchType] = useState("all"); @@ -485,7 +487,7 @@ export default function SearchScreen() { + - - router.back()} - > - - - - {t("search.title")} - - {t("search.subtitle")} - - - - {renderSearchBar()} @@ -792,39 +773,6 @@ const styles = StyleSheet.create({ container: { flex: 1, }, - nav: { - flexDirection: "row", - alignItems: "center", - gap: 10, - paddingHorizontal: 12, - paddingBottom: 12, - position: "sticky", - top: 0, - zIndex: 40, - }, - iconBtn: { - width: 38, - height: 38, - borderRadius: 14, - alignItems: "center", - justifyContent: "center", - borderWidth: 1, - }, - brand: { - flex: 1, - minWidth: 0, - gap: 2, - }, - brandTitle: { - fontSize: 18, - fontWeight: "700", - letterSpacing: 0.2, - }, - brandSub: { - fontSize: 12, - opacity: 0.5, - fontWeight: "600", - }, content: { flex: 1, }, @@ -862,7 +810,7 @@ const styles = StyleSheet.create({ }, chip: { paddingHorizontal: 14, - paddingVertical: 8, + paddingVertical: 6, borderRadius: 999, borderWidth: 1, }, @@ -920,14 +868,14 @@ const styles = StyleSheet.create({ alignItems: "center", gap: 12, padding: 12, - borderRadius: 18, + borderRadius: 10, borderWidth: 1, marginBottom: 10, }, logoDot: { width: 34, height: 34, - borderRadius: 14, + borderRadius: 8, alignItems: "center", justifyContent: "center", borderWidth: 1,