Skip to content

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

update colors and font weight

ammarahm-edc5be1f3021e3
diff --git a/apps/mobile/src/components/Button/index.js b/apps/mobile/src/components/Button/index.js
index e99fb907c..e51ace45c 100644
--- a/apps/mobile/src/components/Button/index.js
+++ b/apps/mobile/src/components/Button/index.js
@@ -6,6 +6,7 @@ import {BUTTON_TYPES, showTooltip} from '../../utils';
import {ph, pv, SIZE} from '../../utils/SizeUtils';
import {PressableButton} from '../PressableButton';
import Heading from '../Typography/Heading';
+import Paragraph from '../Typography/Paragraph';
/**
*
@@ -82,7 +83,7 @@ export const Button = ({
): null}
{!title ? null : (
- <Heading
+ <Paragraph
color={textColor}
size={fontSize}
numberOfLines={1}
@@ -94,7 +95,7 @@ export const Button = ({
textStyle,
]}>
{title}
- </Heading>
+ </Paragraph>
)}
{icon && !loading && iconPosition === 'right' ? (
diff --git a/apps/mobile/src/components/Header/index.js b/apps/mobile/src/components/Header/index.js
index e57bff812..dba5a97ea 100644
--- a/apps/mobile/src/components/Header/index.js
+++ b/apps/mobile/src/components/Header/index.js
@@ -44,7 +44,7 @@ export const Header = React.memo(
overflow: 'hidden',
borderBottomWidth: 1,
borderBottomColor: hide ? 'transparent' : colors.nav,
- justifyContent: 'space-between'
+ justifyContent: 'space-between',
}
]}>
<View style={styles.leftBtnContainer}>
diff --git a/apps/mobile/src/components/Header/title.js b/apps/mobile/src/components/Header/title.js
index c38ba4608..7206e3bd0 100644
--- a/apps/mobile/src/components/Header/title.js
+++ b/apps/mobile/src/components/Header/title.js
@@ -1,6 +1,7 @@
import React from 'react';
import {View} from 'react-native';
import {useTracked} from '../../provider';
+import { SIZE } from '../../utils/SizeUtils';
import Heading from '../Typography/Heading';
export const Title = ({heading, headerColor}) => {
diff --git a/apps/mobile/src/components/JumpToDialog/index.js b/apps/mobile/src/components/JumpToDialog/index.js
index 96ac59ac7..b8758b0e4 100644
--- a/apps/mobile/src/components/JumpToDialog/index.js
+++ b/apps/mobile/src/components/JumpToDialog/index.js
@@ -19,6 +19,7 @@ import {
} from '../../utils/Events';
import {SIZE} from '../../utils/SizeUtils';
import Heading from '../Typography/Heading';
+import Paragraph from '../Typography/Paragraph';
const offsets = [];
let timeout = null;
@@ -154,14 +155,14 @@ const JumpToDialog = ({scrollRef, data, type, screen}) => {
borderRadius: 100,
height: 25,
}}>
- <Heading
+ <Paragraph
size={SIZE.sm}
color={colors.accent}
style={{
textAlign: 'center',
}}>
Top
- </Heading>
+ </Paragraph>
</PressableButton>
{notes
.filter(i => i.type === 'header')
@@ -179,7 +180,7 @@ const JumpToDialog = ({scrollRef, data, type, screen}) => {
borderRadius: 100,
height: 25,
}}>
- <Heading
+ <Paragraph
size={SIZE.sm}
color={
currentIndex === index ? colors.light : colors.accent
@@ -188,7 +189,7 @@ const JumpToDialog = ({scrollRef, data, type, screen}) => {
textAlign: 'center',
}}>
{item.title}
- </Heading>
+ </Paragraph>
</PressableButton>
) : null;
})}
diff --git a/apps/mobile/src/components/SimpleList/header.js b/apps/mobile/src/components/SimpleList/header.js
index c24c947d9..c49bff451 100644
--- a/apps/mobile/src/components/SimpleList/header.js
+++ b/apps/mobile/src/components/SimpleList/header.js
@@ -38,34 +38,35 @@ export const Header = React.memo(
padding: 0,
width: '100%',
justifyContent: 'center',
- alignItems: 'center',
+ alignItems: 'center'
}}>
{messageCard && (
<Card color={COLORS_NOTE[title.toLowerCase()] || colors.accent} />
)}
+
</View>
) : (
<View
style={{
- width: '100%',
+ width: '100%'
}}>
<View
style={{
- minHeight:height || 195,
+ minHeight: height || 195,
padding: 12,
width: '100%',
zIndex: 10,
justifyContent: 'flex-end',
backgroundColor: COLORS_NOTE[title.toLowerCase()]
? hexToRGBA(COLORS_NOTE[title.toLowerCase()], 0.15)
- : color || colors.shade,
+ : color || colors.shade
}}>
<View
style={{
right: 0,
paddingRight: 12,
bottom: 0,
- position: 'absolute',
+ position: 'absolute'
}}>
<Placeholder
color={COLORS_NOTE[title.toLowerCase()] || colors.accent}
@@ -77,7 +78,7 @@ export const Header = React.memo(
<View
style={{
- marginTop: 15,
+ marginTop: 15
}}>
<Heading
style={{marginBottom: paragraph ? 0 : 0}}
@@ -96,10 +97,10 @@ export const Header = React.memo(
icon={icon}
style={{
alignSelf: 'flex-start',
- paddingLeft: 0,
+ paddingLeft: 0
}}
textStyle={{
- fontWeight: 'normal',
+ fontWeight: 'normal'
}}
iconSize={SIZE.sm}
fontSize={SIZE.sm}
@@ -110,5 +111,5 @@ export const Header = React.memo(
</View>
</View>
);
- },
+ }
);
diff --git a/apps/mobile/src/utils/ColorUtils.js b/apps/mobile/src/utils/ColorUtils.js
index c3a04d30e..6f9dd28d6 100644
--- a/apps/mobile/src/utils/ColorUtils.js
+++ b/apps/mobile/src/utils/ColorUtils.js
@@ -1,6 +1,6 @@
import { Appearance } from "react-native";
import { eSendEvent, eSubscribeEvent, eUnSubscribeEvent } from "../services/EventManager";
-import { COLOR_SCHEME, COLOR_SCHEME_DARK, COLOR_SCHEME_LIGHT, setAccentColor, setColorScheme } from "./Colors";
+import { ACCENT, COLOR_SCHEME, COLOR_SCHEME_DARK, COLOR_SCHEME_LIGHT, setAccentColor, setColorScheme } from "./Colors";
import { eThemeUpdated } from "./Events";
import { MMKV } from "./MMKV";
@@ -69,8 +69,8 @@ export async function getColorScheme(useSystemTheme) {
if (!accentColor ) {
- await MMKV.setItem('accentColor', '#00c853');
- setAccentColor('#00c853');
+ await MMKV.setItem('accentColor', ACCENT.color);
+ setAccentColor(ACCENT.color);
} else {
setAccentColor(accentColor);
}
diff --git a/apps/mobile/src/utils/Colors.js b/apps/mobile/src/utils/Colors.js
index 5dae9aa16..42f6d8e3f 100644
--- a/apps/mobile/src/utils/Colors.js
+++ b/apps/mobile/src/utils/Colors.js
@@ -4,7 +4,7 @@ import {Platform, StatusBar} from 'react-native';
import {AndroidModule} from '.';
export const ACCENT = {
- color: '#0088373',
+ color: '#008837',
shade: '#00883712',
};