|
@@ -135,7 +135,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
l.font = UIFont.systemFont(ofSize: 13)
|
|
l.font = UIFont.systemFont(ofSize: 13)
|
|
l.textColor = .white
|
|
l.textColor = .white
|
|
l.shadowColor = .black
|
|
l.shadowColor = .black
|
|
- l.shadowOffset = CGSize(width: 1, height: 1)
|
|
|
|
|
|
+ l.shadowOffset = CGSize(width: 0, height: 1)
|
|
l.text = "00:00"
|
|
l.text = "00:00"
|
|
return l
|
|
return l
|
|
}()
|
|
}()
|
|
@@ -170,6 +170,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
btn.backgroundColor = ThemeStyleColor
|
|
btn.backgroundColor = ThemeStyleColor
|
|
btn.setTitle("按住 录音", for: .normal)
|
|
btn.setTitle("按住 录音", for: .normal)
|
|
btn.addCorner(corner: 6)
|
|
btn.addCorner(corner: 6)
|
|
|
|
+ btn.titleLabel?.font = UIFont.boldSystemFont(ofSize: 18)
|
|
btn.adjustsImageWhenHighlighted = false
|
|
btn.adjustsImageWhenHighlighted = false
|
|
btn.addTarget(self, action: #selector(startRecord), for: .touchDown)
|
|
btn.addTarget(self, action: #selector(startRecord), for: .touchDown)
|
|
btn.addTarget(self, action: #selector(endRecord), for: .touchUpInside)
|
|
btn.addTarget(self, action: #selector(endRecord), for: .touchUpInside)
|
|
@@ -179,9 +180,11 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
|
|
|
lazy var deleteRecordBtn: UIButton = {
|
|
lazy var deleteRecordBtn: UIButton = {
|
|
let btn = UIButton(type: .custom)
|
|
let btn = UIButton(type: .custom)
|
|
- btn.backgroundColor = .red
|
|
|
|
|
|
+
|
|
|
|
+ btn.backgroundColor = UIColor.hexColor(hexadecimal: "#FF0000", alpha: 1)
|
|
btn.setTitle("删除录制", for: .normal)
|
|
btn.setTitle("删除录制", for: .normal)
|
|
btn.adjustsImageWhenHighlighted = false
|
|
btn.adjustsImageWhenHighlighted = false
|
|
|
|
+ btn.titleLabel?.font = UIFont.boldSystemFont(ofSize: 18)
|
|
btn.addCorner(corner: 6)
|
|
btn.addCorner(corner: 6)
|
|
btn.addTarget(self, action: #selector(deleteRecordAction), for: .touchUpInside)
|
|
btn.addTarget(self, action: #selector(deleteRecordAction), for: .touchUpInside)
|
|
btn.isHidden = true
|
|
btn.isHidden = true
|
|
@@ -257,7 +260,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
// 字幕设置
|
|
// 字幕设置
|
|
lazy var subtitleBtn: UIButton = {
|
|
lazy var subtitleBtn: UIButton = {
|
|
let btn = UIButton(type: .custom)
|
|
let btn = UIButton(type: .custom)
|
|
- btn.setImage(imageInRecordScreenKit(by: "subtitleBtn"), for: .normal)
|
|
|
|
|
|
+ btn.setImage(imageInRecordScreenKit(by: "subtitleBtn_on"), for: .normal)
|
|
btn.addTarget(self, action: #selector(subTitleClick), for: .touchUpInside)
|
|
btn.addTarget(self, action: #selector(subTitleClick), for: .touchUpInside)
|
|
return btn
|
|
return btn
|
|
}()
|
|
}()
|
|
@@ -725,6 +728,8 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
/// 设置字幕样式和位置
|
|
/// 设置字幕样式和位置
|
|
/// - Parameter settingModel: 样式model
|
|
/// - Parameter settingModel: 样式model
|
|
func setSubtitleStyle(settingModel: BFSubTitileSettingModel) {
|
|
func setSubtitleStyle(settingModel: BFSubTitileSettingModel) {
|
|
|
|
+
|
|
|
|
+ subtitleBtn.setImage(imageInRecordScreenKit(by: settingModel.subtitleIsShow ? "subtitleBtn_on" : "subtitleBtn_off"), for: .normal)
|
|
if settingModel.subtitleIsShow {
|
|
if settingModel.subtitleIsShow {
|
|
// 设置样式
|
|
// 设置样式
|
|
subtitleLabel.strokeColor = settingModel.strokeColor
|
|
subtitleLabel.strokeColor = settingModel.strokeColor
|
|
@@ -757,7 +762,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
progreddL.snp.makeConstraints { make in
|
|
progreddL.snp.makeConstraints { make in
|
|
make.width.equalTo(100)
|
|
make.width.equalTo(100)
|
|
make.centerX.equalToSuperview()
|
|
make.centerX.equalToSuperview()
|
|
- make.top.equalToSuperview()
|
|
|
|
|
|
+ make.top.equalToSuperview().offset(-8)
|
|
make.height.equalTo(18)
|
|
make.height.equalTo(18)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -798,16 +803,16 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
// make.height.equalTo(124)
|
|
// make.height.equalTo(124)
|
|
// }
|
|
// }
|
|
|
|
|
|
- subtitleBtn.snp.makeConstraints { make in
|
|
|
|
|
|
+ soundSettingBtn.snp.makeConstraints { make in
|
|
make.right.equalToSuperview().offset(-12)
|
|
make.right.equalToSuperview().offset(-12)
|
|
make.top.equalToSuperview().offset(98)
|
|
make.top.equalToSuperview().offset(98)
|
|
make.width.equalTo(40)
|
|
make.width.equalTo(40)
|
|
make.height.equalTo(62)
|
|
make.height.equalTo(62)
|
|
}
|
|
}
|
|
-
|
|
|
|
- soundSettingBtn.snp.makeConstraints { make in
|
|
|
|
- make.right.equalTo(subtitleBtn)
|
|
|
|
- make.top.equalTo(subtitleBtn.snp.bottom).offset(18)
|
|
|
|
|
|
+
|
|
|
|
+ subtitleBtn.snp.makeConstraints { make in
|
|
|
|
+ make.right.equalTo(soundSettingBtn)
|
|
|
|
+ make.top.equalTo(soundSettingBtn.snp.bottom).offset(18)
|
|
make.width.equalTo(40)
|
|
make.width.equalTo(40)
|
|
make.height.equalTo(62)
|
|
make.height.equalTo(62)
|
|
}
|
|
}
|