about summary refs log tree commit diff
path: root/src/view/lib/hooks/usePalette.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/lib/hooks/usePalette.ts')
-rw-r--r--src/view/lib/hooks/usePalette.ts48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/view/lib/hooks/usePalette.ts b/src/view/lib/hooks/usePalette.ts
deleted file mode 100644
index 5b9929c7d..000000000
--- a/src/view/lib/hooks/usePalette.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-import {TextStyle, ViewStyle} from 'react-native'
-import {useTheme, PaletteColorName, PaletteColor} from '../ThemeContext'
-
-export interface UsePaletteValue {
-  colors: PaletteColor
-  view: ViewStyle
-  btn: ViewStyle
-  border: ViewStyle
-  borderDark: ViewStyle
-  text: TextStyle
-  textLight: TextStyle
-  textInverted: TextStyle
-  link: TextStyle
-  icon: TextStyle
-}
-export function usePalette(color: PaletteColorName): UsePaletteValue {
-  const palette = useTheme().palette[color]
-  return {
-    colors: palette,
-    view: {
-      backgroundColor: palette.background,
-    },
-    btn: {
-      backgroundColor: palette.backgroundLight,
-    },
-    border: {
-      borderColor: palette.border,
-    },
-    borderDark: {
-      borderColor: palette.borderDark,
-    },
-    text: {
-      color: palette.text,
-    },
-    textLight: {
-      color: palette.textLight,
-    },
-    textInverted: {
-      color: palette.textInverted,
-    },
-    link: {
-      color: palette.link,
-    },
-    icon: {
-      color: palette.icon,
-    },
-  }
-}