diff --git a/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift b/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift index 0ee6b5ecc..c3f169fd4 100644 --- a/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift +++ b/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift @@ -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") diff --git a/DarockBili Watch App/DarockBiliApp.swift b/DarockBili Watch App/DarockBiliApp.swift index af5fdc1ef..546a3c48f 100644 --- a/DarockBili Watch App/DarockBiliApp.swift +++ b/DarockBili Watch App/DarockBiliApp.swift @@ -25,7 +25,7 @@ import SDWebImageSVGCoder import SDWebImageWebPCoder //!!!: Debug Setting, Set false Before Release -var debug = false +var debug = true var pShowTipText = "" var pShowTipSymbol = "" @@ -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 { diff --git a/DarockBili Watch App/InMain/MainView.swift b/DarockBili Watch App/InMain/MainView.swift index 1c1884507..6bd7ba4e0 100644 --- a/DarockBili Watch App/InMain/MainView.swift +++ b/DarockBili Watch App/InMain/MainView.swift @@ -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") })