frontend/components: use theme color for buttons
Pedro Lucas Porcellis porcellis@eletrotupi.com · 5 months ago
a6c29bd016885a779e10d45eaf1d1cd6ea95d75c Browse filesParents
f26c847Changed files
1
Additions
+2
Deletions
-2
frontend/components/ui/Button.tsx
1 1
import React from 'react';
2 2
import {
3 3
TouchableOpacity,
4 4
Text,
5 5
StyleSheet,
29 29
style,
30 30
textStyle,
31 31
onPress,
32 32
...props
33 33
}) => {
34 -
const primaryColor = useThemeColor({ light: '#0a7ea4', dark: '#4fb3d1' }, 'tint');
34 +
const primaryColor = useThemeColor({}, 'tint');
35 35
const textColor = useThemeColor({}, 'text');
36 36
const backgroundColor = useThemeColor({}, 'background');
37 -
const borderColor = useThemeColor({ light: '#e0e0e0', dark: '#404040' }, 'border');
37 +
const borderColor = useThemeColor({}, 'border');
38 38
39 39
const getBackgroundColor = () => {
40 40
if (disabled) return useThemeColor({ light: '#e5e5e5', dark: '#404040' }, 'background');
41 41
switch (variant) {
42 42
case 'primary':
149 149
},
150 150
text: {
151 151
fontWeight: '600',
152 152
},
153 153
});