Skip to content

Commit dc67683

Browse files
authored
fix(ui): change Android StatusBar background color (synonymdev#1119)
1 parent a01f4fb commit dc67683

File tree

6 files changed

+10
-182
lines changed

6 files changed

+10
-182
lines changed

.flowconfig

Lines changed: 0 additions & 67 deletions
This file was deleted.

boost.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/bump-version.sh

Lines changed: 0 additions & 103 deletions
This file was deleted.

src/screens/Activity/ActivityDetail.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,11 @@ const Glow = ({
123123
}: {
124124
color: string;
125125
size: { width: number; height: number };
126-
}): ReactElement => {
127-
return (
128-
<Rect x={0} y={0} width={size.width} height={size.height} opacity={0.3}>
129-
<RadialGradient c={vec(0, 100)} r={600} colors={[color, 'transparent']} />
130-
</Rect>
131-
);
132-
};
126+
}): ReactElement => (
127+
<Rect x={0} y={0} width={size.width} height={size.height} opacity={0.3}>
128+
<RadialGradient c={vec(0, 100)} r={600} colors={[color, 'transparent']} />
129+
</Rect>
130+
);
133131

134132
const ZigZag = ({ color }: { color: string }): ReactElement => {
135133
const step = 12;
@@ -893,7 +891,7 @@ const ActivityDetail = ({
893891
return (
894892
<ThemedView style={styles.root} onLayout={handleLayout}>
895893
<SafeAreaInset type="top" />
896-
<Canvas style={[styles.canvas, size]}>
894+
<Canvas style={styles.canvas}>
897895
<Glow color={glowColor} size={size} />
898896
</Canvas>
899897
<NavigationHeader
@@ -940,7 +938,7 @@ const styles = StyleSheet.create({
940938
position: 'relative',
941939
},
942940
canvas: {
943-
position: 'absolute',
941+
...StyleSheet.absoluteFillObject,
944942
},
945943
title: {
946944
flexDirection: 'row',

src/styles/components.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,13 @@ export const RefreshControl = styled.RefreshControl.attrs((props) => ({
188188

189189
export const StatusBar = styled.StatusBar.attrs((props) => ({
190190
animated: true,
191+
translucent: true,
191192
...Platform.select({
192193
ios: {
193194
barStyle: props.theme.id === 'light' ? 'dark-content' : 'light-content',
194195
},
195196
android: {
196-
backgroundColor: 'black',
197+
backgroundColor: 'transparent',
197198
barStyle: 'light-content',
198199
},
199200
}),

src/utils/i18n/locales/en/lightning.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"int_blocked": "Open a Lightning connection and send or receive bitcoin instantly.\n\nUnfortunately, Bitkit cannot provide automatic Lightning connections to residents of the United States (yet).",
2+
"int_blocked": "Open a Lightning connection and send or receive bitcoin instantly.\n\nUnfortunately, Bitkit cannot provide automatic Lightning connections to residents of the United States & Canada (yet).",
33
"int_text": "Open a Lightning connection and send or receive bitcoin instantly.",
44
"int_header": "Instant\n<purple>Payments.</purple>",
55
"int_quick": "Quick Setup",

0 commit comments

Comments
 (0)