mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
* Revert "feat(base/ui/native): Convert rem to px (#15934)" This reverts commit057dc0e4d2. * Revert "fix(StageParticipantNameLabel): size" This reverts commita01f4468a0. * Revert "fix(subtitles): position part1" This reverts commit6c6ed8d7a8. * Revert "fix(ITypographyType): wrong type of fontSize and lineHeight props" This reverts commitbffcc9092b. * revert(Tokens): font sizes and line heights back to px from rem Turns out there are many places that does not expect rem. Temporary reverting this change from commit6fa94b0bb4. We should bring it back along with proper handling of rem everywhere.
23 lines
529 B
TypeScript
23 lines
529 B
TypeScript
import { DefaultTheme } from 'react-native-paper';
|
|
|
|
import { createColorTokens } from './utils';
|
|
|
|
/**
|
|
* Creates a React Native Paper theme based on local UI tokens.
|
|
*
|
|
* @param {Object} arg - The ui tokens.
|
|
* @returns {Object}
|
|
*/
|
|
export function createNativeTheme({ font, colorMap, shape, spacing, typography }: any): any {
|
|
return {
|
|
...DefaultTheme,
|
|
palette: createColorTokens(colorMap),
|
|
shape,
|
|
spacing,
|
|
typography: {
|
|
font,
|
|
...typography
|
|
}
|
|
};
|
|
}
|