Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix menu colors

ammarahm-ed48c70d1c3f72
diff --git a/apps/mobile/src/components/Menu/MenuListItem.js b/apps/mobile/src/components/Menu/MenuListItem.js
index 69210882a..124d99885 100644
--- a/apps/mobile/src/components/Menu/MenuListItem.js
+++ b/apps/mobile/src/components/Menu/MenuListItem.js
@@ -78,7 +78,7 @@ export const MenuListItem = ({item, index, noTextMode, testID}) => {
textAlign: 'left',
}}
name={item.icon}
- color={colors.accent}
+ color={headerTextState?.id === item.name.toLowerCase() + '_navigation'? colors.accent : colors.pri}
size={SIZE.md}
/>
{headerTextState?.id === item.name.toLowerCase() + '_navigation' ? (
diff --git a/apps/mobile/src/components/Menu/TagsSection.js b/apps/mobile/src/components/Menu/TagsSection.js
index 1fa528901..c9e261f48 100644
--- a/apps/mobile/src/components/Menu/TagsSection.js
+++ b/apps/mobile/src/components/Menu/TagsSection.js
@@ -120,6 +120,7 @@ const PinItem = ({item, index, onPress}) => {
const {colors} = state;
const [visible, setVisible] = useState(false);
const [headerTextState, setHeaderTextState] = useState(null);
+ const color = headerTextState?.id === item.id ? colors.pri : colors.accent;
const onHeaderStateChange = (event) => {
if (event?.id === item.id) {
@@ -188,13 +189,13 @@ const PinItem = ({item, index, onPress}) => {
alignItems: 'flex-start',
}}>
{item.type === 'notebook' ? (
- <Icon color={colors.accent} size={SIZE.md} name="book-outline" />
+ <Icon color={color} size={SIZE.md} name="book-outline" />
) : item.type === 'tag' ? (
- <Icon color={colors.accent} size={SIZE.md} name="pound" />
+ <Icon color={color} size={SIZE.md} name="pound" />
) : (
<Paragraph
style={{textAlign: 'center', width: 12}}
- color={colors.accent}
+ color={color}
size={SIZE.md}>
T
</Paragraph>
@@ -209,7 +210,6 @@ const PinItem = ({item, index, onPress}) => {
<Heading
style={{
flexWrap: 'wrap',
-
}}
color={colors.heading}
size={SIZE.md}>
@@ -245,7 +245,9 @@ const PinItem = ({item, index, onPress}) => {
width: 7,
height: 7,
borderRadius: 100,
- ...getElevation(headerTextState?.id === item.id + '_navigation'? 1 : 0)
+ ...getElevation(
+ headerTextState?.id === item.id + '_navigation' ? 1 : 0,
+ ),
}}
/>
</PressableButton>