apply theme
This commit is contained in:
parent
6cee616ad5
commit
3c458c964b
6 changed files with 29 additions and 26 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { StyleSheet, Text, TouchableHighlight, View } from "react-native";
|
||||
import { useThemeColor } from "../../hooks/useThemeColor";
|
||||
import SearchBar from "../common/SearchBar";
|
||||
import { useTheme } from "../../app/contexts/ThemeContext";
|
||||
|
||||
type BudgetHeaderProperties = {
|
||||
selectedPage: string,
|
||||
|
|
@ -14,7 +14,8 @@ type PageSelectorButtonProperties = {
|
|||
}
|
||||
|
||||
const BudgetHeader = (properties: BudgetHeaderProperties) => {
|
||||
const backgroundColor = useThemeColor("backgroundColor");
|
||||
const {colors} = useTheme();
|
||||
const backgroundColor = colors.backgroundColor;
|
||||
|
||||
return (<>
|
||||
<View style={styles.containerStyle}>
|
||||
|
|
@ -38,11 +39,13 @@ const BudgetHeader = (properties: BudgetHeaderProperties) => {
|
|||
}
|
||||
|
||||
const PageSelectorButton = (properties: PageSelectorButtonProperties) => {
|
||||
const primaryTextColor = useThemeColor("primaryText");
|
||||
const secondaryTextColor = useThemeColor("secondaryText");
|
||||
const elementSelectedColor = useThemeColor("elementSelectedColor");
|
||||
const elementDefaultColor = useThemeColor("elementDefaultColor");
|
||||
const accentColor = useThemeColor("accentColor");
|
||||
const {colors} = useTheme();
|
||||
|
||||
const primaryTextColor = colors.primaryText;
|
||||
const secondaryTextColor = colors.secondaryText;
|
||||
const elementSelectedColor = colors.elementSelectedColor;
|
||||
const elementDefaultColor = colors.elementDefaultColor;
|
||||
const accentColor = colors.accentColor;
|
||||
|
||||
return (
|
||||
<TouchableHighlight
|
||||
|
|
|
|||
Reference in a new issue