//
|
// 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")
|