From 7de59a2abd10d0433c9dabb8d01d07fb3a3f50d1 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Tue, 10 Sep 2024 15:04:57 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=20#248=20=E7=94=B5=E8=AF=9D?= =?utf8?q?=E7=82=B9=E5=87=BB=E6=9C=89=E8=93=9D=E8=89=B2=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/phone/src/DialingMethodView.cpp | 10 +++++----- .../fd230app/nativeui/phone/src/MainPhoneView.cpp | 2 +- .../fd230app/nativeui/phone/src/PhoneDirView.cpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/phone/src/DialingMethodView.cpp b/code/sdk/application/wearable/fd230app/nativeui/phone/src/DialingMethodView.cpp index ca2a58c61..ff442963e 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/phone/src/DialingMethodView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/phone/src/DialingMethodView.cpp @@ -257,7 +257,7 @@ namespace OHOS .height = 100, .viewId = BACK_MAIN_HFP_VIEWID, .backgroundColor = 0xff191919, - .pressedBackgroundColor = 0xff1996ff, + .pressedBackgroundColor = 0xff191919, }; No_HFP_Button = TelephonyInitInterface::ButtonViewInit(buttonParam); No_HFP_Button->SetImageSrc(PNG_466x100BUTTON_IMAGE, PNG_466x100BUTTON_IMAGE); @@ -398,7 +398,7 @@ namespace OHOS .height = 100, .viewId = BACK_MAIN_SIM_VIEWID, .backgroundColor = 0xff191919, - .pressedBackgroundColor = 0xff1996ff, + .pressedBackgroundColor = 0xff191919, }; NO_SIM_Button = TelephonyInitInterface::ButtonViewInit(buttonParam); NO_SIM_Button->SetImageSrc(PNG_466x100BUTTON_IMAGE, PNG_466x100BUTTON_IMAGE); @@ -594,7 +594,7 @@ namespace OHOS .height = 100, .viewId = BACK_MAIN_OPEN_HFP_VIEWID, .backgroundColor = 0xff191919, - .pressedBackgroundColor = 0xff1996ff, + .pressedBackgroundColor = 0xff191919, }; OPEN_HFP_Button = TelephonyInitInterface::ButtonViewInit(buttonParam); OPEN_HFP_Button->SetPosition(43, BTNoteLabel3->GetY() + BTNoteLabel3->GetTextHeight() + 40, 380, 100); @@ -727,7 +727,7 @@ namespace OHOS .height = 100, .viewId = USINGWATCHSIMBUTTON_VIEWID, .backgroundColor = 0xff191919, - .pressedBackgroundColor = 0xff1996ff, + .pressedBackgroundColor = 0xff191919, }; UsingWatchSimButton = TelephonyInitInterface::ButtonViewInit(buttonParam); if (UsingWatchSimButton == nullptr) @@ -743,7 +743,7 @@ namespace OHOS .height = 100, .viewId = USINGPHONEBUTTON_VIEWID, .backgroundColor = 0xff191919, - .pressedBackgroundColor = 0xff1996ff, + .pressedBackgroundColor = 0xff191919, }; UsingPhoneButton = TelephonyInitInterface::ButtonViewInit(buttonParam); if (UsingPhoneButton == nullptr) diff --git a/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp b/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp index 3d3a6741f..89ed3a113 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp @@ -187,7 +187,7 @@ namespace OHOS .height = 140, .viewId = DIALINGMETHODBUTTON_VIEWID, .backgroundColor = 0xff4fc34c, - .pressedBackgroundColor = 0xff1996ff, + .pressedBackgroundColor = 0xff4fc34c, }; DialingMethodButton = TelephonyInitInterface::ButtonViewInit(buttonParam); if (DialingMethodButton == nullptr) diff --git a/code/sdk/application/wearable/fd230app/nativeui/phone/src/PhoneDirView.cpp b/code/sdk/application/wearable/fd230app/nativeui/phone/src/PhoneDirView.cpp index 300dd8eb3..e198a81d4 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/phone/src/PhoneDirView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/phone/src/PhoneDirView.cpp @@ -48,7 +48,7 @@ namespace OHOS if(buttonconfig.ImageSrc) button->SetImageSrc(buttonconfig.ImageSrc, buttonconfig.ImageSrc); - button->SetStyleForState(STYLE_BORDER_COLOR, 0xff0b1928, UIButton::PRESSED); + //button->SetStyleForState(STYLE_BORDER_COLOR, 0xff191919, UIButton::PRESSED); if(clickListener!=NULL) button->SetOnClickListener(clickListener); @@ -56,7 +56,7 @@ namespace OHOS button->SetAlign(TEXT_ALIGNMENT_LEFT); button->SetLabelPosition(buttonconfig.label_x,buttonconfig.label_y ); button->SetFont(DEFAULT_VECTOR_FONT_FILENAME, buttonconfig.Fontsize); - button->SetStyleForState(STYLE_BORDER_COLOR, 0xff0b1928, UIButton::PRESSED); + button->SetStyleForState(STYLE_BACKGROUND_COLOR, 0xff191919, UIButton::PRESSED); button->SetImagePosition(25, 25); return button; -- 2.17.1