Skip to content

Commit

Permalink
更改实时提示样式 (#37)
Browse files Browse the repository at this point in the history
* Update DarockBiliApp.swift

* Update MainView.swift

* Update DarockBili_Watch_App_UI_Tests.swift

* Update DarockBiliApp.swift
  • Loading branch information
WindowsMEMZ authored Dec 16, 2023
1 parent 28f4dba commit 8755676
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ final class DarockBili_Watch_App_UI_Tests: XCTestCase {
app.buttons["关闭"].firstMatch.tap()
sleep(1)
// Backed to suggestions view
if app.buttons["Debug"].exists {
app.buttons["Debug"].firstMatch.tap()
sleep(1)
takeScreenshot(of: app, named: "MainDebugged")
}
app.otherElements["MainTabView"].swipeLeft()
sleep(1)
takeScreenshot(of: app, named: "PersonalCenter")
Expand Down
4 changes: 2 additions & 2 deletions DarockBili Watch App/DarockBiliApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import SDWebImageSVGCoder
import SDWebImageWebPCoder

//!!!: Debug Setting, Set false Before Release
var debug = false
var debug = true

var pShowTipText = ""
var pShowTipSymbol = ""
Expand Down Expand Up @@ -76,7 +76,7 @@ struct DarockBili_Watch_AppApp: App {
.frame(width: 110, height: 40)
.lineLimit(1)
.minimumScaleFactor(0.1)
.background(.thinMaterial, in: RoundedRectangle(cornerRadius: 8, style: .continuous))
.background(.ultraThinMaterial, in: RoundedRectangle(cornerRadius: 8, style: .continuous))
.offset(y: tipBoxOffset)
.animation(.easeOut(duration: 0.4), value: tipBoxOffset)
} else {
Expand Down
4 changes: 2 additions & 2 deletions DarockBili Watch App/InMain/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ struct MainView: View {
Text("Debug Version. DO NOT Release!!")
.bold()
Button(action: {
//tipWithText("Test")
tipWithText("Test")
// Dynamic.PUICApplication.sharedPUICApplication._setStatusBarTimeHidden(true, animated: false, completion: nil)
Dynamic.WatchKit.sharedPUICApplication._setStatusBarTimeHidden(true, animated: false)
//Dynamic.WatchKit.sharedPUICApplication._setStatusBarTimeHidden(true, animated: false)
}, label: {
Text("Debug")
})
Expand Down

0 comments on commit 8755676

Please sign in to comment.