Skip to content

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

update header menu ui

ammarahm-ed6013441bde0c
diff --git a/apps/mobile/src/components/Header/HeaderMenu.js b/apps/mobile/src/components/Header/HeaderMenu.js
index 546d39662..69840d158 100644
--- a/apps/mobile/src/components/Header/HeaderMenu.js
+++ b/apps/mobile/src/components/Header/HeaderMenu.js
@@ -1,10 +1,12 @@
import React from 'react';
-import { TouchableOpacity } from 'react-native';
+import {TouchableOpacity} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
-import { useTracked } from '../../provider';
-import { eSendEvent } from '../../services/EventManager';
-import { eOpenSortDialog } from '../../utils/Events';
-import { SIZE } from '../../utils/SizeUtils';
+import {useTracked} from '../../provider';
+import {eSendEvent} from '../../services/EventManager';
+import {getElevation} from '../../utils';
+import {eOpenSortDialog} from '../../utils/Events';
+import {SIZE} from '../../utils/SizeUtils';
+import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
export const HeaderMenu = () => {
@@ -16,29 +18,35 @@ export const HeaderMenu = () => {
onPress={() => {
eSendEvent(eOpenSortDialog);
}}
- hitSlop={{top: 10, right: 10, left: 30, bottom: 15}}
+ hitSlop={{top: 15, right: 10, left: 30, bottom: 15}}
activeOpacity={1}
style={{
flexDirection: 'row',
alignItems: 'center',
- zIndex:10,
- height: 35,
+ zIndex: 10,
+ height: 22,
+ backgroundColor: colors.accent,
+ paddingHorizontal: 8,
+ borderRadius: 100,
+ ...getElevation(5)
}}>
- <Paragraph
+ <Heading
+ color={colors.light}
+ size={SIZE.sm}
style={{
marginRight: 5,
- textAlignVertical:'center'
+ textAlignVertical: 'center',
}}>
{settings.sort.slice(0, 1).toUpperCase() +
settings.sort.slice(1, settings.sort.length)}
- </Paragraph>
+ </Heading>
<Icon
- color={colors.pri}
+ color={colors.light}
name={
settings.sortOrder === 'asc' ? 'sort-ascending' : 'sort-descending'
}
style={{
- textAlignVertical:'center',
+ textAlignVertical: 'center',
}}
size={SIZE.md}
/>