杨锴
2024-11-07 62a24b3c7cf92919a93ee575e9460037e1a53816
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
//  Themes.swift
//  XQMuse
//
//  Created by 无故事王国 on 2024/8/12.
//
 
import UIKit
 
 
// MARK: -- Font
let Def_NavFont:UIFont = UIFont(name: "PingFangSC-Medium", size: 18) ?? .systemFont(ofSize: 18, weight: .medium)
 
func Def_SourceHanSansCN_Regular(fontSize:Double)->UIFont{
                return UIFont(name: "SourceHanSansCN-Regular", size: fontSize) ?? .systemFont(ofSize: fontSize,weight: .medium)
}
 
func Def_SourceHanSerifCN_Light(fontSize:Double)->UIFont{
                return UIFont(name: "SourceHanSerifCN-Light", size: fontSize) ?? .systemFont(ofSize: fontSize,weight: .medium)
}
 
 
func Def_Agenda_Light(fontSize:Double)->UIFont{
                return UIFont(name: "Agenda-Light", size: fontSize) ?? .systemFont(ofSize: fontSize)
}
 
func Def_FlyFlowerSong(fontSize:Double)->UIFont{
                return UIFont(name: "FlyFlowerSong", size: fontSize) ?? .systemFont(ofSize: fontSize)
}
 
func Def_SourceHanSerif_Regular(fontSize:Double)->UIFont{
                return UIFont(name: "SourceHanSerifCN-Regular", size: fontSize) ?? .systemFont(ofSize: fontSize)
}
 
func Def_SourceHanSerif_Semibold(fontSize:Double)->UIFont{
                return UIFont(name: "SourceHanSerifCN-Semibold", size: fontSize) ?? .systemFont(ofSize: fontSize)
}
 
func Def_SourceHanSerif_Medium(fontSize:Double)->UIFont{
                return UIFont(name: "SourceHanSerifCN-Medium", size: fontSize) ?? .systemFont(ofSize: fontSize)
}
 
func Def_PingFang(fontSize:Double)->UIFont{
    return UIFont(name: "PingFang SC", size: fontSize) ?? .systemFont(ofSize: fontSize)
}
 
 
// MARK: -- Color
let Def_ThemeColor:UIColor = UIColor(hexStr: "#8DA178")
let Def_NavFontColor = UIColor(hexStr: "#252A23")