diff --git a/plugins/Commands/settings/components/BetterTableRowGroup.tsx b/plugins/Commands/settings/components/BetterTableRowGroup.tsx index 42fdec7..1d7edab 100644 --- a/plugins/Commands/settings/components/BetterTableRowGroup.tsx +++ b/plugins/Commands/settings/components/BetterTableRowGroup.tsx @@ -1,5 +1,5 @@ import { React, ReactNative as RN, stylesheet } from "@vendetta/metro/common"; -import { semanticColors } from "@vendetta/ui"; +import { rawColors, semanticColors } from "@vendetta/ui"; import { getAssetIDByName } from "@vendetta/ui/assets"; export default function BetterTableRowGroup({ @@ -14,8 +14,8 @@ export default function BetterTableRowGroup({ }>) { const styles = stylesheet.createThemedStyleSheet({ main: { - backgroundColor: semanticColors.CARD_PRIMARY_BG, - borderColor: semanticColors.BORDER_FAINT, + backgroundColor: rawColors.PLUM_18, + borderColor: semanticColors.CARD_BACKGROUND_DEFAULT, borderWidth: 1, borderRadius: 16, overflow: "hidden", diff --git a/plugins/Commands/settings/components/Header.tsx b/plugins/Commands/settings/components/Header.tsx index bf6007d..f16bb7c 100644 --- a/plugins/Commands/settings/components/Header.tsx +++ b/plugins/Commands/settings/components/Header.tsx @@ -92,7 +92,7 @@ export default function Header() { title: { fontSize: 28, fontWeight: "700", - color: semanticColors.HEADER_PRIMARY, + color: semanticColors.MOBILE_TEXT_HEADING_PRIMARY, marginBottom: 4, textAlign: "left", }, diff --git a/plugins/Commands/settings/pages/CreditsPage.tsx b/plugins/Commands/settings/pages/CreditsPage.tsx index 652ee46..adbb2ab 100644 --- a/plugins/Commands/settings/pages/CreditsPage.tsx +++ b/plugins/Commands/settings/pages/CreditsPage.tsx @@ -1,50 +1,88 @@ import { React, ReactNative as RN, stylesheet } from "@vendetta/metro/common"; -import { semanticColors } from "@vendetta/ui"; +import { rawColors, semanticColors } from "@vendetta/ui"; import { getAssetIDByName } from "@vendetta/ui/assets"; import BetterTableRowGroup from "../components/BetterTableRowGroup"; +type Credit = { + command: string; + author: string; + avatar: string; + github: string; +}; + export default function CreditsPage() { const styles = stylesheet.createThemedStyleSheet({ container: { flex: 1, backgroundColor: semanticColors.BACKGROUND_PRIMARY, }, - creditItem: { + + scrollContent: { + paddingVertical: 16, + paddingHorizontal: 12, + alignItems: "stretch", + }, + + groupWrapper: { + marginHorizontal: 16, + marginTop: 16, + maxWidth: "100%", + }, + groupMain: { + backgroundColor: rawColors.PLUM_18, + borderColor: semanticColors.CARD_BACKGROUND_DEFAULT, + borderWidth: 1, + borderRadius: 16, + overflow: "hidden", + flex: 1, + maxWidth: "100%", + }, + + cardPressable: { flexDirection: "row", alignItems: "center", - paddingVertical: 16, - paddingHorizontal: 20, - backgroundColor: semanticColors.CARD_PRIMARY_BG, + paddingVertical: 12, + paddingHorizontal: 12, + }, + + avatarContainer: { + width: 56, + height: 56, borderRadius: 12, - marginHorizontal: 16, - marginVertical: 6, + overflow: "hidden", + backgroundColor: semanticColors.BACKGROUND_SECONDARY, + justifyContent: "center", + alignItems: "center", + marginRight: 12, }, avatar: { - width: 48, - height: 48, - borderRadius: 24, - marginRight: 16, - backgroundColor: semanticColors.BACKGROUND_SECONDARY, + width: 56, + height: 56, + borderRadius: 12, + resizeMode: "cover", }, + textContainer: { flex: 1, + justifyContent: "center", }, commandText: { - fontSize: 17, - fontWeight: "600", - color: semanticColors.HEADER_PRIMARY, - marginBottom: 4, + fontSize: 16, + fontWeight: "700", + color: semanticColors.MOBILE_TEXT_HEADING_PRIMARY, + marginBottom: 2, }, authorText: { - fontSize: 15, + fontSize: 14, color: semanticColors.TEXT_MUTED, - marginBottom: 2, + marginBottom: 6, }, linkText: { fontSize: 13, - color: semanticColors.TEXT_MUTED, - fontWeight: "500", + color: semanticColors.LINK, + fontWeight: "600", }, + infoText: { fontSize: 14, color: semanticColors.TEXT_MUTED, @@ -61,7 +99,7 @@ export default function CreditsPage() { }, }); - const credits = [ + const credits: Credit[] = [ { command: "Facts Commands", author: "jdev082", @@ -128,52 +166,66 @@ export default function CreditsPage() { RN.Linking.openURL(githubUrl); }; + // Resolve asset IDs (some assets may be numeric IDs or URIs depending on bundling) + const heartIconRaw = getAssetIDByName("HeartIcon"); + const infoIconRaw = getAssetIDByName("ic_information_24px"); + const heartIcon = + typeof heartIconRaw === "number" ? (heartIconRaw as number) : undefined; + const infoIcon = + typeof infoIconRaw === "number" ? (infoIconRaw as number) : undefined; + return ( - Thanks to this developers for creating such a nice plugins!{"\n"} - Tap on any developer to visit their GitHub profile. + Thanks to these developers for creating such great plugins! + {"\n"}Tap any developer to visit their GitHub profile. - {credits.map((credit, index) => ( - handleProfilePress(credit.github)} - android_ripple={{ - color: semanticColors.ANDROID_RIPPLE, - radius: 200, - }} - > - - - {credit.command} - by {credit.author} - - {credit.github.replace("https://github.com/", "@")} - + {credits.map((credit) => ( + + + + handleProfilePress(credit.github)} + android_ripple={{ + color: semanticColors.ANDROID_RIPPLE, + borderless: false, + radius: 200, + }} + accessibilityRole="button" + > + + + + + + + {credit.command} + + + by {credit.author} + + + + - + ))} - + Commands Plugin Collection{"\n"} Version 1.3.0