@fto-consult/expo-ui 7.20.4 → 7.20.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.20.4",
3
+ "version": "7.20.6",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -71,7 +71,7 @@
71
71
  "@expo/html-elements": "^0.5.1",
72
72
  "@expo/vector-icons": "^13.0.0",
73
73
  "@faker-js/faker": "^8.0.2",
74
- "@fto-consult/common": "^4.5.6",
74
+ "@fto-consult/common": "^4.6.0",
75
75
  "@fto-consult/electron-gen": "^2.3.1",
76
76
  "@fto-consult/expo-ui": "^7.17.9",
77
77
  "@pchmn/expo-material3-theme": "^1.3.1",
@@ -40,6 +40,7 @@ import { StyleSheet } from "react-native";
40
40
  import Logo from "$ecomponents/Logo";
41
41
  import AppEntryRootView from "./RootView";
42
42
  import { SafeAreaProvider } from 'react-native-safe-area-context';
43
+ import {isNeutralino} from "$cplatform";
43
44
 
44
45
  let MAX_BACK_COUNT = 1;
45
46
  let countBack = 0;
@@ -69,7 +70,7 @@ function App({init:initApp,initialRouteName:appInitialRouteName,children}) {
69
70
  hasCallInitApp : false,
70
71
  });
71
72
  React.useEffect(() => {
72
-
73
+ console.log(isNeutralino(),window,navigator.userAgent," is neutralino");
73
74
  const loadResources = ()=>{
74
75
  return new Promise((resolve)=>{
75
76
  loadFonts(FontsIconsFilter).catch((e)=>{
@@ -231,6 +231,12 @@ const Provider = ({children,getTableData,handleHelpScreen,navigation,swrConfig,a
231
231
  get customCSS(){
232
232
  const prevCSS = defaultStr(typeof customCSS ==='function'? customCSS(theme) : customCSS);
233
233
  return `
234
+ @media (prefers-color-scheme: dark) {
235
+ body {
236
+ color: ${theme.colors.text};
237
+ background: ${theme.colors.background};
238
+ }
239
+ }
234
240
  #root {
235
241
  overflow:hidden!important;
236
242
  width : 100%!important;
@@ -5,5 +5,8 @@ export default function print(pdfMakeInstance,options,...rest){
5
5
  if(isElectron()){
6
6
  return electronPrint(pdfMakeInstance,options,...rest);
7
7
  }
8
- return pdfMakeInstance[isTouchDevice()?"open":"print"](options,...rest);
8
+ if(isTouchDevice()){
9
+ return pdfMakeInstance.open({},window);
10
+ }
11
+ return pdfMakeInstance.print({...options,...rest});
9
12
  }