From a43a3dcf34a398b0fe693304fa00feb83a876ce8 Mon Sep 17 00:00:00 2001
From: younger_times <841720330@qq.com>
Date: 星期一, 24 四月 2023 18:46:36 +0800
Subject: [PATCH] 项目搭建工作 完成登录UI 完成主页UI布局

---
 BrokerDriver/Def.swift |   34 +++++++++++++++++++++++++---------
 1 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/BrokerDriver/Def.swift b/BrokerDriver/Def.swift
index 6c087d2..a2d15f3 100644
--- a/BrokerDriver/Def.swift
+++ b/BrokerDriver/Def.swift
@@ -1,16 +1,31 @@
-//
-//  Def.swift
-//  BrokerDriver
-//
-//  Created by 无故事王国 on 2023/4/24.
-//
+    //
+    //  Def.swift
+    //  BrokerDriver
+    //
+    //  Created by 无故事王国 on 2023/4/24.
+    //
 
 import Foundation
 import UIKit
 @_exported import JQTools
+@_exported import QMUIKit
 
-// MARK: -- Shorthand
+    // MARK: -- Shorthand
 let app = UIApplication.shared.delegate as! AppDelegate
+
+var screnDelegate:SceneDelegate? = {
+    var uiScreen:UIScene?
+    UIApplication.shared.connectedScenes.forEach { scenes in
+        uiScreen = scenes
+    }
+    return (uiScreen?.delegate as? SceneDelegate)
+}()
+
+var topSafeHeight:Double{
+    return JQ_currentNavigationController().navigationBar.frame.height + UIApplication.shared.statusBarFrame.height
+}
+
+
 let notiCenter = NotificationCenter.default
 
 func LogSuccess(_ items:Any...,separator:String=" ",file:String=#file,function:String=#function,line:Int=#line){
@@ -35,10 +50,11 @@
 }
 
 
-// MARK: -- Front
+    // MARK: -- Front
 let Def_NavFont:UIFont = UIFont.systemFont(ofSize: 19, weight: .bold)
 
 
-// MARK: -- Color
+    // MARK: -- Color
 let Def_NavFontColor:UIColor = .color(light: .color("#333333"), dark: .color("#333333"))
 let Def_backgroundColor:UIColor = .color(light: .white, dark: .white)
+let Def_ThemeColor:UIColor = .color(light: .color("#FED703"), dark: .color("#FED703"))

--
Gitblit v1.7.1