toggle for enalbling/disablingposter label in catalogscreen

This commit is contained in:
tapframe 2025-12-16 15:38:51 +05:30
parent 601a4a0f1d
commit 8c0b47975c

View file

@ -592,6 +592,26 @@ const CatalogSettingsScreen = () => {
<MaterialIcons name="info-outline" size={14} color={colors.mediumGray} />
<Text style={styles.hintText}>Applies to phones only. Tablets keep adaptive layout.</Text>
</View>
{/* Show Titles Toggle */}
<View style={[styles.catalogItem, { borderBottomWidth: 0 }]}>
<View style={styles.catalogInfo}>
<Text style={styles.catalogName}>Show Poster Titles</Text>
<Text style={styles.catalogType}>Display title text below each poster</Text>
</View>
<Switch
value={showTitles}
onValueChange={async (value) => {
try {
await mmkvStorage.setItem('catalog_show_titles', value ? 'true' : 'false');
setShowTitles(value);
} catch { }
}}
trackColor={{ false: '#505050', true: colors.primary }}
thumbColor={Platform.OS === 'android' ? colors.white : undefined}
ios_backgroundColor="#505050"
/>
</View>
</View>
</View>
)}