From c582a3651a06a80fd9bcff59c65ab46173b27a79 Mon Sep 17 00:00:00 2001
From: kmmiio99o <164557248+kmmiio99o@users.noreply.github.com>
Date: Wed, 10 Dec 2025 00:50:25 +0100
Subject: [PATCH] Slightly redesign Community part in ShiggyCord settings
---
src/core/ui/settings/pages/General/index.tsx | 130 +++++++++++++++----
1 file changed, 104 insertions(+), 26 deletions(-)
diff --git a/src/core/ui/settings/pages/General/index.tsx b/src/core/ui/settings/pages/General/index.tsx
index 976f1ce..267c1ba 100644
--- a/src/core/ui/settings/pages/General/index.tsx
+++ b/src/core/ui/settings/pages/General/index.tsx
@@ -14,12 +14,14 @@ import {
AlertActionButton,
AlertActions,
AlertModal,
+ Card,
Stack,
TableRow,
TableRowGroup,
TableSwitchRow,
+ Text,
} from "@metro/common/components";
-import { Linking, ScrollView } from "react-native";
+import { Linking, ScrollView, View, TouchableOpacity } from "react-native";
import React from "react";
@@ -29,6 +31,77 @@ export default function General() {
const debugInfo = getDebugInfo();
const navigation = NavigationNative.useNavigation();
+ // Custom Community Card Button
+ const CommunityCardButton = ({ icon, label, subLabel, color, onPress }) => (
+
+
+
+
+
+
+
+
+ {label}
+
+ {subLabel && (
+
+ {subLabel}
+
+ )}
+
+
+
+
+ );
+
return (
}
+ icon={}
trailing={
}
+ icon={}
trailing={
}
@@ -67,13 +140,13 @@ export default function General() {
}
+ icon={}
onPress={() => BundleUpdaterManager.reload()}
/>
}
+ icon={}
value={isSafeMode()}
onValueChange={(to: boolean) => {
toggleSafeMode({ to, reload: false });
@@ -106,7 +179,7 @@ export default function General() {
}
+ icon={}
value={settings.developerSettings}
onValueChange={(v: boolean) => {
settings.developerSettings = v;
@@ -115,33 +188,38 @@ export default function General() {
}
+ icon={}
value={settings.enableDiscordDeveloperSettings}
onValueChange={(v: boolean) => {
settings.enableDiscordDeveloperSettings = v;
}}
/>
+
- }
- onPress={() => Linking.openURL(DISCORD_SERVER)}
- />
-
- }
- onPress={() => Linking.openURL(GITHUB)}
- />
+
+ Linking.openURL(DISCORD_SERVER)}
+ />
+ Linking.openURL(GITHUB)}
+ />
+
+
}
onPress={() =>