Parcourir la source

update and fix ui

kevin il y a 3 ans
Parent
commit
5e98d7b725

+ 1 - 0
appbuilder-ios/AppBuilder/AppBuilder/AppDelegate.swift

@@ -149,6 +149,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
         if #available(iOS 15.0, *) {
             UITabBar.appearance().scrollEdgeAppearance = tabBarAppearance
         }
+        Thread.sleep(forTimeInterval: 2.0)
         return true
     }
 

+ 2 - 2
appbuilder-ios/AppBuilder/AppBuilder/Base.lproj/LaunchScreen.storyboard

@@ -17,7 +17,7 @@
                         <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                         <subviews>
-                            <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pb_button" translatesAutoresizingMaskIntoConstraints="NO" id="Dki-8X-fvw">
+                            <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pb_icon" translatesAutoresizingMaskIntoConstraints="NO" id="Dki-8X-fvw">
                                 <rect key="frame" x="107" y="348" width="200" height="200"/>
                                 <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                                 <constraints>
@@ -40,7 +40,7 @@
         </scene>
     </scenes>
     <resources>
-        <image name="pb_button" width="128" height="128"/>
+        <image name="pb_icon" width="169" height="168"/>
         <systemColor name="systemBackgroundColor">
             <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
         </systemColor>

+ 1 - 0
appbuilder-ios/NexilisLite/NexilisLite/Resource/id.lproj/Localizable.strings

@@ -59,6 +59,7 @@
 
 "Settings" = "Pengaturan";
 "User Profile Management" = "Manajemen Profil Pengguna";
+"Personal Information" = "Informasi Pengguna";
 "Email" = "Email";
 "Logout" = "Keluar Akun";
 "IMI Membership Cards" = "Kartu Keanggotaan IMI";

+ 11 - 0
src/mainIOS.py

@@ -163,6 +163,7 @@ def change_logo(c_code_path, lib_dest, logo, logo_float=None):
     app_icon_set = [29,40,57,58,60,80,87,114,120,180,1024]
     app_icon_dir = os.path.join(c_code_path, 'Assets.xcassets/AppIcon.appiconset')
     app_float_dir = os.path.join(lib_dest, 'NexilisLite/Resource/Assets.xcassets/pb_button.imageset')
+    app_launch_dir = os.path.join(c_code_path, 'Assets.xcassets/pb_icon.imageset')
     if isinstance(logo, str):
         # try:
         #     logo_url = requests.get('https://newuniverse.io/dashboardv2/uploads/logo/{}'.format(logo))
@@ -197,6 +198,16 @@ def change_logo(c_code_path, lib_dest, logo, logo_float=None):
             #         l = l.resize((512, 512))
             #     l.save(img_path, "PNG")
             # except:
+            try:
+                logo_launch_path = os.path.join(app.asset_folder, "logofloat", "{}".format(logo_float))
+                img_path = os.path.join(app_launch_dir, "nexilis_icon.png".format(size))
+                with open(logo_launch_path, "rb") as f:
+                    l = Image.open(f)
+                    l = l.resize((size, size))
+                l.save(img_path, "PNG")
+            except:
+                print("error logolaunch: {}".format(logo_float))
+                return
             try:
                 logo_float_path = os.path.join(app.asset_folder, "logofloat", "{}".format(logo_float))
                 img_path = os.path.join(app_float_dir, "pb_button.png".format(size))