From d2031cc21b9ba070ceebb5371169318967f8bc6f Mon Sep 17 00:00:00 2001 From: WangLin305 Date: Sat, 5 Jul 2025 17:27:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86UI=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E5=A4=A7=E5=B0=8F=E5=92=8C=E5=B8=83=E5=B1=80=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/detail/src/main/ets/view/LiveHome.ets | 16 +++++++++++++++- .../src/main/resources/zh_CN/element/float.json | 4 ++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/features/detail/src/main/ets/view/LiveHome.ets b/features/detail/src/main/ets/view/LiveHome.ets index f0b522a..9b79a1f 100644 --- a/features/detail/src/main/ets/view/LiveHome.ets +++ b/features/detail/src/main/ets/view/LiveHome.ets @@ -13,7 +13,7 @@ * limitations under the License. */ -import { display } from '@kit.ArkUI'; +import { display, window } from '@kit.ArkUI'; import { Callback, deviceInfo } from '@kit.BasicServicesKit'; import { BreakpointConstants, BreakpointType, CommonConstants, Logger, ResourceUtil } from '@ohos/commons'; import { Live } from './Live'; @@ -179,5 +179,19 @@ export struct LiveHome { } .hideTitleBar(true) .expandSafeArea([SafeAreaType.KEYBOARD]) + .onShown(() => { + window.getLastWindow(this.context).then((topWindow) => { + topWindow.setWindowSystemBarProperties({ + statusBarContentColor: '#FFFFFF' + }) + }) + }) + .onHidden(() => { + window.getLastWindow(this.context).then((topWindow) => { + topWindow.setWindowSystemBarProperties({ + statusBarContentColor: '#000000' + }) + }) + }) } } \ No newline at end of file diff --git a/features/home/src/main/resources/zh_CN/element/float.json b/features/home/src/main/resources/zh_CN/element/float.json index 4c82247..186c2ba 100644 --- a/features/home/src/main/resources/zh_CN/element/float.json +++ b/features/home/src/main/resources/zh_CN/element/float.json @@ -750,11 +750,11 @@ }, { "name": "shop_card_font_2", - "value": "10vp" + "value": "16fp" }, { "name": "shop_card_font_3", - "value": "16fp" + "value": "10fp" }, { "name": "shop_card_line_1", -- Gitee