Skip to content

Commit

Permalink
Move to semanticColors in Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
FieryFlames committed Feb 21, 2023
1 parent f864be0 commit 7c35590
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/ui/pages/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { findByDisplayName, findByProps } from "@vendetta/metro";
import { constants as Constants, NavigationNative, React, stylesheet as StyleSheet } from "@vendetta/metro/common";
import { storage } from "@vendetta/plugin";
import { useProxy } from "@vendetta/storage";
import { semanticColors } from "@vendetta/ui";
import { Forms, General } from "@vendetta/ui/components";
import { Rule } from "../../def";
import AddRuleButton from "../components/AddRuleButton";
Expand All @@ -12,17 +13,14 @@ import EditRule from "./EditRule";
const { ScrollView, TextInput } = General;
const { FormRow, FormSection, FormDivider } = Forms;

const colorModule = findByProps("SemanticColorsByThemeTable");
const colorMap = (colorModule?.SemanticColor ?? Constants.ThemeColorMap);

const styles = StyleSheet.createThemedStyleSheet({
input: {
fontSize: 16,
fontFamily: Constants.Fonts.PRIMARY_MEDIUM,
color: colorMap.TEXT_NORMAL
color: semanticColors.TEXT_NORMAL
},
placeholder: {
color: colorMap.INPUT_PLACEHOLDER_TEXT
color: semanticColors.INPUT_PLACEHOLDER_TEXT
}
})

Expand Down

0 comments on commit 7c35590

Please sign in to comment.