Add Inter font
7
react-native.config.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
module.exports = {
|
||||||
|
project: {
|
||||||
|
ios:{},
|
||||||
|
android:{}
|
||||||
|
},
|
||||||
|
assets:['./assets/fonts/'],
|
||||||
|
};
|
||||||
BIN
src/assets/fonts/Inter-VariableFont_slnt,wght.ttf
Normal file
93
src/assets/fonts/OFL.txt
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter)
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 935 B After Width: | Height: | Size: 935 B |
|
Before Width: | Height: | Size: 531 B After Width: | Height: | Size: 531 B |
|
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 422 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 808 B After Width: | Height: | Size: 808 B |
|
Before Width: | Height: | Size: 483 B After Width: | Height: | Size: 483 B |
|
Before Width: | Height: | Size: 558 B After Width: | Height: | Size: 558 B |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 806 B After Width: | Height: | Size: 806 B |
|
Before Width: | Height: | Size: 713 B After Width: | Height: | Size: 713 B |
|
Before Width: | Height: | Size: 684 B After Width: | Height: | Size: 684 B |
|
Before Width: | Height: | Size: 714 B After Width: | Height: | Size: 714 B |
|
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 444 B |
|
Before Width: | Height: | Size: 666 B After Width: | Height: | Size: 666 B |
|
Before Width: | Height: | Size: 732 B After Width: | Height: | Size: 732 B |
|
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 363 B |
|
Before Width: | Height: | Size: 758 B After Width: | Height: | Size: 758 B |
|
Before Width: | Height: | Size: 848 B After Width: | Height: | Size: 848 B |
|
Before Width: | Height: | Size: 717 B After Width: | Height: | Size: 717 B |
|
Before Width: | Height: | Size: 695 B After Width: | Height: | Size: 695 B |
|
Before Width: | Height: | Size: 964 B After Width: | Height: | Size: 964 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -1,9 +1,9 @@
|
|||||||
import React, { useEffect, useMemo, useRef } from 'react';
|
import React, { useEffect, useMemo, useRef } from 'react';
|
||||||
import { useTypedSelector } from 'store';
|
import { useTypedSelector } from 'store';
|
||||||
import CloudIcon from 'assets/cloud.svg';
|
import CloudIcon from 'assets/icons/cloud.svg';
|
||||||
import CloudDownArrow from 'assets/cloud-down-arrow.svg';
|
import CloudDownArrow from 'assets/icons/cloud-down-arrow.svg';
|
||||||
import CloudExclamationMarkIcon from 'assets/cloud-exclamation-mark.svg';
|
import CloudExclamationMarkIcon from 'assets/icons/cloud-exclamation-mark.svg';
|
||||||
import InternalDriveIcon from 'assets/internal-drive.svg';
|
import InternalDriveIcon from 'assets/icons/internal-drive.svg';
|
||||||
import useDefaultStyles from './Colors';
|
import useDefaultStyles from './Colors';
|
||||||
import { EntityId } from '@reduxjs/toolkit';
|
import { EntityId } from '@reduxjs/toolkit';
|
||||||
import Svg, { Circle, CircleProps } from 'react-native-svg';
|
import Svg, { Circle, CircleProps } from 'react-native-svg';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React, { useCallback, useState } from 'react';
|
import React, { useCallback, useState } from 'react';
|
||||||
import { TouchableOpacityProps } from 'react-native';
|
import { TouchableOpacityProps } from 'react-native';
|
||||||
import ChevronRight from 'assets/chevron-right.svg';
|
import ChevronRight from 'assets/icons/chevron-right.svg';
|
||||||
import styled, { css } from 'styled-components/native';
|
import styled, { css } from 'styled-components/native';
|
||||||
import { THEME_COLOR } from 'CONSTANTS';
|
import { THEME_COLOR } from 'CONSTANTS';
|
||||||
import useDefaultStyles from './Colors';
|
import useDefaultStyles from './Colors';
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import { FlatList } from 'react-native-gesture-handler';
|
|||||||
import { SafeAreaView } from 'react-native-safe-area-context';
|
import { SafeAreaView } from 'react-native-safe-area-context';
|
||||||
import { useTypedSelector } from 'store';
|
import { useTypedSelector } from 'store';
|
||||||
import formatBytes from 'utility/formatBytes';
|
import formatBytes from 'utility/formatBytes';
|
||||||
import TrashIcon from 'assets/trash.svg';
|
import TrashIcon from 'assets/icons/trash.svg';
|
||||||
import ArrowClockwise from 'assets/arrow-clockwise.svg';
|
import ArrowClockwise from 'assets/icons/arrow-clockwise.svg';
|
||||||
import { THEME_COLOR } from 'CONSTANTS';
|
import { THEME_COLOR } from 'CONSTANTS';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
import { EntityId } from '@reduxjs/toolkit';
|
import { EntityId } from '@reduxjs/toolkit';
|
||||||
|
|||||||
@@ -9,16 +9,16 @@ import { THEME_COLOR } from 'CONSTANTS';
|
|||||||
import TouchableHandler from 'components/TouchableHandler';
|
import TouchableHandler from 'components/TouchableHandler';
|
||||||
import useCurrentTrack from 'utility/useCurrentTrack';
|
import useCurrentTrack from 'utility/useCurrentTrack';
|
||||||
import TrackPlayer from 'react-native-track-player';
|
import TrackPlayer from 'react-native-track-player';
|
||||||
import Play from 'assets/play.svg';
|
import Play from 'assets/icons/play.svg';
|
||||||
import Shuffle from 'assets/shuffle.svg';
|
import Shuffle from 'assets/icons/shuffle.svg';
|
||||||
import useDefaultStyles from 'components/Colors';
|
import useDefaultStyles from 'components/Colors';
|
||||||
import usePlayTracks from 'utility/usePlayTracks';
|
import usePlayTracks from 'utility/usePlayTracks';
|
||||||
import { EntityId } from '@reduxjs/toolkit';
|
import { EntityId } from '@reduxjs/toolkit';
|
||||||
import { WrappableButtonRow, WrappableButton } from 'components/WrappableButtonRow';
|
import { WrappableButtonRow, WrappableButton } from 'components/WrappableButtonRow';
|
||||||
import { MusicNavigationProp } from 'screens/Music/types';
|
import { MusicNavigationProp } from 'screens/Music/types';
|
||||||
import DownloadIcon from 'components/DownloadIcon';
|
import DownloadIcon from 'components/DownloadIcon';
|
||||||
import CloudDownArrow from 'assets/cloud-down-arrow.svg';
|
import CloudDownArrow from 'assets/icons/cloud-down-arrow.svg';
|
||||||
import Trash from 'assets/trash.svg';
|
import Trash from 'assets/icons/trash.svg';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
import { queueTrackForDownload, removeDownloadedTrack } from 'store/downloads/actions';
|
import { queueTrackForDownload, removeDownloadedTrack } from 'store/downloads/actions';
|
||||||
import { selectDownloadedTracks } from 'store/downloads/selectors';
|
import { selectDownloadedTracks } from 'store/downloads/selectors';
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ function Onboarding() {
|
|||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<TextContainer contentContainerStyle={{ flexGrow: 1, justifyContent: 'center' }}>
|
<TextContainer contentContainerStyle={{ flexGrow: 1, justifyContent: 'center' }}>
|
||||||
<Logo source={require('../../assets/app-icon-white.png')} />
|
<Logo source={require('../../assets/icons/app-icon-white.png')} />
|
||||||
<Text >
|
<Text >
|
||||||
{t('onboarding-welcome')}
|
{t('onboarding-welcome')}
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import { useNetInfo } from '@react-native-community/netinfo';
|
import { useNetInfo } from '@react-native-community/netinfo';
|
||||||
import { THEME_COLOR } from 'CONSTANTS';
|
import { THEME_COLOR } from 'CONSTANTS';
|
||||||
import styled from 'styled-components/native';
|
import styled from 'styled-components/native';
|
||||||
import CloudSlash from 'assets/cloud-slash.svg';
|
import CloudSlash from 'assets/icons/cloud-slash.svg';
|
||||||
import { Text } from 'react-native';
|
import { Text } from 'react-native';
|
||||||
import { t } from '@localisation';
|
import { t } from '@localisation';
|
||||||
import useDefaultStyles from 'components/Colors';
|
import useDefaultStyles from 'components/Colors';
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ import TrackPlayer, { Event, State, usePlaybackState, useTrackPlayerEvents } fro
|
|||||||
import { TouchableOpacity, useColorScheme } from 'react-native';
|
import { TouchableOpacity, useColorScheme } from 'react-native';
|
||||||
import styled from 'styled-components/native';
|
import styled from 'styled-components/native';
|
||||||
import { useHasNextQueue, useHasPreviousQueue } from 'utility/useQueue';
|
import { useHasNextQueue, useHasPreviousQueue } from 'utility/useQueue';
|
||||||
import ForwardIcon from 'assets/forwards.svg';
|
import ForwardIcon from 'assets/icons/forwards.svg';
|
||||||
import BackwardIcon from 'assets/backwards.svg';
|
import BackwardIcon from 'assets/icons/backwards.svg';
|
||||||
import PlayIcon from 'assets/play.svg';
|
import PlayIcon from 'assets/icons/play.svg';
|
||||||
import PauseIcon from 'assets/pause.svg';
|
import PauseIcon from 'assets/icons/pause.svg';
|
||||||
import RepeatIcon from 'assets/repeat.svg';
|
import RepeatIcon from 'assets/icons/repeat.svg';
|
||||||
// import ShuffleIcon from 'assets/shuffle.svg';
|
// import ShuffleIcon from 'assets/icons/shuffle.svg';
|
||||||
import { THEME_COLOR } from 'CONSTANTS';
|
import { THEME_COLOR } from 'CONSTANTS';
|
||||||
import Casting from './Casting';
|
import Casting from './Casting';
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { Switch } from 'react-native-gesture-handler';
|
|||||||
import styled, { css } from 'styled-components/native';
|
import styled, { css } from 'styled-components/native';
|
||||||
import { isSentryEnabled, setSentryStatus } from 'utility/Sentry';
|
import { isSentryEnabled, setSentryStatus } from 'utility/Sentry';
|
||||||
import Accordion from 'react-native-collapsible/Accordion';
|
import Accordion from 'react-native-collapsible/Accordion';
|
||||||
import ChevronIcon from 'assets/chevron-right.svg';
|
import ChevronIcon from 'assets/icons/chevron-right.svg';
|
||||||
import { THEME_COLOR } from 'CONSTANTS';
|
import { THEME_COLOR } from 'CONSTANTS';
|
||||||
import useDefaultStyles, { DefaultStylesProvider } from 'components/Colors';
|
import useDefaultStyles, { DefaultStylesProvider } from 'components/Colors';
|
||||||
import { t } from '@localisation';
|
import { t } from '@localisation';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { createBottomTabNavigator, BottomTabNavigationProp, BottomTabNavigationOptions } from '@react-navigation/bottom-tabs';
|
import { createBottomTabNavigator, BottomTabNavigationProp } from '@react-navigation/bottom-tabs';
|
||||||
import { createStackNavigator, StackNavigationProp } from '@react-navigation/stack';
|
import { createStackNavigator, StackNavigationProp } from '@react-navigation/stack';
|
||||||
import { CompositeNavigationProp } from '@react-navigation/native';
|
import { CompositeNavigationProp } from '@react-navigation/native';
|
||||||
import { THEME_COLOR } from 'CONSTANTS';
|
import { THEME_COLOR } from 'CONSTANTS';
|
||||||
@@ -12,10 +12,10 @@ import Onboarding from './Onboarding';
|
|||||||
import TrackPopupMenu from './modals/TrackPopupMenu';
|
import TrackPopupMenu from './modals/TrackPopupMenu';
|
||||||
import SetJellyfinServer from './modals/SetJellyfinServer';
|
import SetJellyfinServer from './modals/SetJellyfinServer';
|
||||||
|
|
||||||
import SearchIcon from 'assets/magnifying-glass.svg';
|
import SearchIcon from 'assets/icons/magnifying-glass.svg';
|
||||||
import NotesIcon from 'assets/notes.svg';
|
import NotesIcon from 'assets/icons/notes.svg';
|
||||||
import GearIcon from 'assets/gear.svg';
|
import GearIcon from 'assets/icons/gear.svg';
|
||||||
import DownloadsIcon from 'assets/arrow-down-to-line.svg';
|
import DownloadsIcon from 'assets/icons/arrow-down-to-line.svg';
|
||||||
import { useTypedSelector } from 'store';
|
import { useTypedSelector } from 'store';
|
||||||
import { ModalStackParams } from './types';
|
import { ModalStackParams } from './types';
|
||||||
import { t } from '@localisation';
|
import { t } from '@localisation';
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ import { useTypedSelector } from 'store';
|
|||||||
import { SubHeader } from 'components/Typography';
|
import { SubHeader } from 'components/Typography';
|
||||||
import styled from 'styled-components/native';
|
import styled from 'styled-components/native';
|
||||||
import { t } from '@localisation';
|
import { t } from '@localisation';
|
||||||
import PlayIcon from 'assets/play.svg';
|
import PlayIcon from 'assets/icons/play.svg';
|
||||||
import DownloadIcon from 'assets/cloud-down-arrow.svg';
|
import DownloadIcon from 'assets/icons/cloud-down-arrow.svg';
|
||||||
import QueueAppendIcon from 'assets/queue-append.svg';
|
import QueueAppendIcon from 'assets/icons/queue-append.svg';
|
||||||
import TrashIcon from 'assets/trash.svg';
|
import TrashIcon from 'assets/icons/trash.svg';
|
||||||
import Text from 'components/Text';
|
import Text from 'components/Text';
|
||||||
import { WrappableButton, WrappableButtonRow } from 'components/WrappableButtonRow';
|
import { WrappableButton, WrappableButtonRow } from 'components/WrappableButtonRow';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|||||||