A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
update colors and font weight
ammarahm-edc5be1f3021e3
diff --git a/apps/mobile/src/components/Button/index.js b/apps/mobile/src/components/Button/index.jsindex 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+ <Paragraphcolor={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.jsindex 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.jsindex 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.jsindex 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+ <Paragraphsize={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+ <Paragraphsize={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.jsindex 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>) : (<Viewstyle={{- width: '100%',+ width: '100%'}}><Viewstyle={{- 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}}><Viewstyle={{right: 0,paddingRight: 12,bottom: 0,- position: 'absolute',+ position: 'absolute'}}><Placeholdercolor={COLORS_NOTE[title.toLowerCase()] || colors.accent}@@ -77,7 +78,7 @@ export const Header = React.memo(<Viewstyle={{- marginTop: 15,+ marginTop: 15}}><Headingstyle={{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.jsindex 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.jsindex 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',};