增加换肤功能

This commit is contained in:
启星
2025-08-14 10:07:49 +08:00
parent f6964c1e89
commit 4f9318d98e
8789 changed files with 978530 additions and 2 deletions

View File

@@ -0,0 +1,67 @@
//
// ButtonItemData.swift
// TUIRoomKit
//
// Created by janejntang on 2023/1/10.
// Copyright © 2023 Tencent. All rights reserved.
//
import Foundation
class ButtonItemData {
enum ButtonType {
case muteAudioItemType
case muteVideoItemType
case raiseHandItemType
case leaveSeatItemType
case shareScreenItemType
case moreItemType
case switchCamaraItemType
case raiseHandApplyItemType
case normal
}
enum Orientation {
case left
case right
}
var buttonType: ButtonType = .normal
var normalIcon: String = ""
var selectedIcon: String = ""
var disabledIcon: String = ""
var normalTitle: String = ""
var selectedTitle: String = ""
var titleFont: UIFont?
var titleColor: UIColor?
var resourceBundle: Bundle = Bundle.main
var action: ((Any)->Void)?
var normalImage: UIImage? {
return UIImage(named: normalIcon, in: resourceBundle, compatibleWith: nil)?.checkOverturn()
}
var selectedImage: UIImage? {
return UIImage(named: selectedIcon, in: resourceBundle, compatibleWith: nil)?.checkOverturn()
}
var disabledImage: UIImage? {
return UIImage(named: disabledIcon, in: resourceBundle, compatibleWith: nil)?.checkOverturn()
}
var hasNotice: Bool = false
var noticeText: String = ""
var cornerRadius: CGFloat?
var hasLineView: Bool = false
var orientation: Orientation = .left
var imageSize: CGSize?
var size: CGSize?
var backgroundColor: UIColor?
var isSelect: Bool = false
var isEnabled: Bool = true
var isHidden: Bool = false
var alpha: CGFloat = 1
}

View File

@@ -0,0 +1,42 @@
//
// ListCellItemData.swift
// TUIRoomKit
//
// Created by janejntang on 2023/1/6.
// Copyright © 2023 Tencent. All rights reserved.
//
import Foundation
class ListCellItemData {
enum ListCellType {
case resolutionType
case frameRateType
case normal
}
var type: ListCellType = .normal
var size: CGSize?
var backgroundColor: UIColor = .clear
//UILabel configuration
var titleText: String = ""
var messageText: String = ""
var titleColor: UIColor?
var messageColor: UIColor?
//UISwitch configuration
var hasSwitch: Bool = false
var isSwitchOn: Bool = false
//UIButton configuration
var hasRightButton: Bool = false
var buttonData: ButtonItemData?
//UISlider configuration
var hasSliderLabel: Bool = false
var hasSlider: Bool = false
var minimumValue: Float = 0
var maximumValue: Float = 100
var sliderStep: Float = 1
var sliderUnit: String = ""
var sliderDefault: Float = 0
var action: ((Any)->Void)?
var hasOverAllAction: Bool = false
var hasDownLineView: Bool = false
}

View File

@@ -0,0 +1,30 @@
//
// PrepareSettingItemData.swift
// TUIRoomKit
//
// Created by janejntang on 2023/1/6.
// Copyright © 2023 Tencent. All rights reserved.
//
import Foundation
import UIKit
class PrepareSettingItemData {
var titleText: String = ""
var messageText: String = ""
var fieldPlaceholderText: String = ""
var fieldText: String = ""
var fieldEnable: Bool = false
var isSwitchOn: Bool = false
var action: ((Any)->Void)?
var normalIcon: String = ""
var resourceBundle: Bundle = Bundle.main
var hasSwitch: Bool = false
var hasButton: Bool = false
var hasFieldView: Bool = false
var hasOverAllAction: Bool = false
var size: CGSize?
var backgroundColor: UIColor?
var hasDownLineView: Bool = true
}