Skip to content

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

decrease elevation of indicator

ammarahm-edf2789790e437
diff --git a/apps/mobile/src/components/Menu/ColorSection.js b/apps/mobile/src/components/Menu/ColorSection.js
index 07c64b811..670caaf16 100644
--- a/apps/mobile/src/components/Menu/ColorSection.js
+++ b/apps/mobile/src/components/Menu/ColorSection.js
@@ -129,7 +129,7 @@ const ColorItem = ({item, index}) => {
width: 7,
height: 7,
borderRadius: 100,
- ...getElevation(headerTextState?.id === item.id + '_navigation'? 5 : 0)
+ ...getElevation(headerTextState?.id === item.id + '_navigation'? 1 : 0)
}}
/>
</PressableButton>
diff --git a/apps/mobile/src/components/Menu/MenuListItem.js b/apps/mobile/src/components/Menu/MenuListItem.js
index cd958d442..69210882a 100644
--- a/apps/mobile/src/components/Menu/MenuListItem.js
+++ b/apps/mobile/src/components/Menu/MenuListItem.js
@@ -106,7 +106,7 @@ export const MenuListItem = ({item, index, noTextMode, testID}) => {
width: 7,
height: 7,
borderRadius: 100,
- ...getElevation(headerTextState?.id === item.name.toLowerCase() + '_navigation'? 5 : 0)
+ ...getElevation(headerTextState?.id === item.name.toLowerCase() + '_navigation'? 1 : 0)
}}
/>
)}
diff --git a/apps/mobile/src/components/Menu/TagsSection.js b/apps/mobile/src/components/Menu/TagsSection.js
index 6b20510cb..1fa528901 100644
--- a/apps/mobile/src/components/Menu/TagsSection.js
+++ b/apps/mobile/src/components/Menu/TagsSection.js
@@ -245,7 +245,7 @@ const PinItem = ({item, index, onPress}) => {
width: 7,
height: 7,
borderRadius: 100,
- ...getElevation(headerTextState?.id === item.id + '_navigation'? 5 : 0)
+ ...getElevation(headerTextState?.id === item.id + '_navigation'? 1 : 0)
}}
/>
</PressableButton>
diff --git a/apps/mobile/src/components/Menu/UserSection.js b/apps/mobile/src/components/Menu/UserSection.js
index 562e00c2a..be034143a 100644
--- a/apps/mobile/src/components/Menu/UserSection.js
+++ b/apps/mobile/src/components/Menu/UserSection.js
@@ -1,16 +1,16 @@
import React from 'react';
-import { ActivityIndicator, TouchableOpacity, View } from 'react-native';
+import {ActivityIndicator, TouchableOpacity, View} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
-import { useTracked } from '../../provider';
-import { Actions } from '../../provider/Actions';
-import { DDS } from '../../services/DeviceDetection';
-import { eSendEvent, ToastEvent } from '../../services/EventManager';
-import { db } from '../../utils/DB';
-import { eOpenLoginDialog } from '../../utils/Events';
-import { pv, SIZE } from '../../utils/SizeUtils';
-import { PressableButton } from '../PressableButton';
+import {useTracked} from '../../provider';
+import {Actions} from '../../provider/Actions';
+import {DDS} from '../../services/DeviceDetection';
+import {eSendEvent, ToastEvent} from '../../services/EventManager';
+import {db} from '../../utils/DB';
+import {eOpenLoginDialog} from '../../utils/Events';
+import {pv, SIZE} from '../../utils/SizeUtils';
+import {PressableButton} from '../PressableButton';
import Paragraph from '../Typography/Paragraph';
-import { TimeSince } from './TimeSince';
+import {TimeSince} from './TimeSince';
export const UserSection = ({noTextMode}) => {
const [state, dispatch] = useTracked();
@@ -24,6 +24,8 @@ export const UserSection = ({noTextMode}) => {
alignSelf: 'center',
backgroundColor: colors.shade,
marginTop: 10,
+ borderWidth: 1,
+ borderColor: colors.accent,
}}>
{/* <View
style={{
@@ -72,17 +74,16 @@ export const UserSection = ({noTextMode}) => {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
- paddingRight: 5,
+ paddingRight: 12,
+ paddingLeft: 6,
paddingVertical: 12,
}}>
- <View
- style={{
- flexDirection: 'row',
- alignItems: 'center',
- }}>
+ <View>
<Paragraph
+ size={DDS.isLargeTablet() ? SIZE.xxs : SIZE.xs}
+ color={colors.icon}
style={{
- marginLeft: 5,
+ color: colors.icon,
}}>
{syncing ? 'Syncing ' : 'Last synced: '}
{!syncing ? (
@@ -92,15 +93,9 @@ export const UserSection = ({noTextMode}) => {
'never'
)
) : null}
- {'\n'}
- <Paragraph
- size={DDS.isLargeTablet() ? SIZE.xxs : SIZE.xs}
- color={colors.icon}
- style={{
- color: colors.icon,
- }}>
- {syncing ? 'Fetching your notes ' : 'Tap to sync '}
- </Paragraph>
+ </Paragraph>
+ <Paragraph color={colors.accent} >
+ {syncing ? 'Fetching your notes ' : 'Tap to sync '}
</Paragraph>
</View>
{syncing ? (