From dece22afe46967db8e3ea62838fad61e56343544 Mon Sep 17 00:00:00 2001 From: Mark Chan <45706356+WindowsMEMZ@users.noreply.github.com> Date: Sun, 17 Dec 2023 01:07:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=AE=9E=E6=97=B6=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=A0=B7=E5=BC=8F=20(#37)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update DarockBiliApp.swift * Update MainView.swift * Update DarockBili_Watch_App_UI_Tests.swift * Update DarockBiliApp.swift --- .../DarockBili_Watch_App_UI_Tests.swift | 5 +++++ DarockBili Watch App/DarockBiliApp.swift | 4 ++-- DarockBili Watch App/InMain/MainView.swift | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) 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") })