Skip to content

Commit c55c322

Browse files
authored
Fixed demo app dark mode, changed to design tokens (#2209)
1 parent 6a49229 commit c55c322

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

demo/src/screens/MainScreen.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class MainScreen extends Component {
316316
return <SectionItem item={item} onPress={this.openScreen} onLongPress={this.setDefaultScreen}/>;
317317
} else {
318318
return (
319-
<View paddingH-s5 marginV-s1 height={20} bg-grey80>
319+
<View paddingH-s5 marginV-s1 height={20} bg-$backgroundNeutralLight>
320320
<Text text80M>{item.title}</Text>
321321
</View>
322322
);
@@ -387,7 +387,7 @@ class MainScreen extends Component {
387387

388388
{showNoResults && (
389389
<View padding-20>
390-
<Text grey40 text50>
390+
<Text $textNeutralLight text50>
391391
Sorry, nothing was found. Try Button or something..
392392
</Text>
393393
</View>
@@ -413,19 +413,19 @@ const SectionItem = React.memo(props => {
413413
activeOpacity={1}
414414
style={Dividers.d10}
415415
>
416-
<Text style={[item.deprecate && styles.entryTextDeprecated]} grey10 text80>
416+
<Text style={[item.deprecate && styles.entryTextDeprecated]} text80>
417417
{item.title}
418418
</Text>
419-
<Icon source={chevronIcon} style={{tintColor: Colors.grey10}} supportRTL/>
419+
<Icon source={chevronIcon} style={{tintColor: Colors.$iconDefault}} supportRTL/>
420420
</TouchableOpacity>
421421
);
422422
});
423423

424424
const SectionHeader = React.memo(props => {
425425
const {section} = props;
426426
return (
427-
<View backgroundColor={'white'}>
428-
<Text back marginV-20 marginH-20 text60M>
427+
<View bg-$backgroundDefault>
428+
<Text marginV-20 marginH-20 text60M>
429429
{section.title}
430430
</Text>
431431
</View>
@@ -449,15 +449,15 @@ const styles = StyleSheet.create({
449449
},
450450
selectedChipContainer: {
451451
height: 20,
452-
borderColor: Colors.blue30
452+
borderColor: Colors.$textPrimary
453453
},
454454
selectedChip: {
455-
color: Colors.blue30
455+
color: Colors.$textPrimary
456456
},
457457
scrollViewContainer: {
458-
borderBottomColor: Colors.grey60,
458+
borderBottomColor: Colors.$outlineDefault,
459459
borderBottomWidth: 1,
460-
borderTopColor: Colors.grey60,
460+
borderTopColor: Colors.$outlineDefault,
461461
borderTopWidth: 1
462462
},
463463
searchResultsContainer: {paddingTop: 20}

0 commit comments

Comments
 (0)