fix(native): Slot-Ringe kleiner+dicker+langsamer, 'Lückenloser Schutz'-Text raus
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
e2e5a1003c
commit
227c30c3c9
@ -567,18 +567,8 @@ export default function DevicesScreen() {
|
|||||||
}}
|
}}
|
||||||
showsVerticalScrollIndicator={false}
|
showsVerticalScrollIndicator={false}
|
||||||
>
|
>
|
||||||
{/* Subtitle + progress */}
|
{/* Slot-Ringe */}
|
||||||
<View style={{ gap: 8, marginBottom: -12 }}>
|
<View style={{ marginBottom: -4 }}>
|
||||||
<Text
|
|
||||||
style={{
|
|
||||||
fontSize: 13,
|
|
||||||
color: colors.textMuted,
|
|
||||||
fontFamily: 'Nunito_400Regular',
|
|
||||||
lineHeight: 18,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{subtitle}
|
|
||||||
</Text>
|
|
||||||
<View style={{ flexDirection: 'row', gap: 12, marginTop: 4 }}>
|
<View style={{ flexDirection: 'row', gap: 12, marginTop: 4 }}>
|
||||||
<DeviceSlotDonut
|
<DeviceSlotDonut
|
||||||
count={mobileCount}
|
count={mobileCount}
|
||||||
|
|||||||
@ -3,8 +3,8 @@ import { Animated, Easing, Text, View } from 'react-native';
|
|||||||
import Svg, { Circle } from 'react-native-svg';
|
import Svg, { Circle } from 'react-native-svg';
|
||||||
import { useColors } from '../../lib/theme';
|
import { useColors } from '../../lib/theme';
|
||||||
|
|
||||||
const SIZE = 104;
|
const SIZE = 88;
|
||||||
const STROKE = 9;
|
const STROKE = 11;
|
||||||
const R = (SIZE - STROKE) / 2;
|
const R = (SIZE - STROKE) / 2;
|
||||||
const C = 2 * Math.PI * R;
|
const C = 2 * Math.PI * R;
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ export function DeviceSlotDonut({
|
|||||||
const l = anim.addListener(({ value }) => setProgress(value));
|
const l = anim.addListener(({ value }) => setProgress(value));
|
||||||
Animated.timing(anim, {
|
Animated.timing(anim, {
|
||||||
toValue: 1,
|
toValue: 1,
|
||||||
duration: 950,
|
duration: 1400,
|
||||||
easing: Easing.out(Easing.cubic),
|
easing: Easing.out(Easing.cubic),
|
||||||
useNativeDriver: false,
|
useNativeDriver: false,
|
||||||
}).start();
|
}).start();
|
||||||
@ -82,9 +82,9 @@ export function DeviceSlotDonut({
|
|||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text style={{ fontSize: 26, fontFamily: 'Nunito_900Black', color: colors.text, letterSpacing: -0.5 }}>
|
<Text style={{ fontSize: 22, fontFamily: 'Nunito_900Black', color: colors.text, letterSpacing: -0.5 }}>
|
||||||
{count}
|
{count}
|
||||||
<Text style={{ fontSize: 14, fontFamily: 'Nunito_700Bold', color: colors.textMuted }}>
|
<Text style={{ fontSize: 12, fontFamily: 'Nunito_700Bold', color: colors.textMuted }}>
|
||||||
/{max}
|
/{max}
|
||||||
</Text>
|
</Text>
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user