From: hcj <1224667075@qq.com> Date: Tue, 10 Sep 2024 07:04:57 +0000 (+0800) Subject: 修复 #248 电话点击有蓝色效果 X-Git-Tag: release_V1.2.70_20241020_135402~513 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=7de59a2abd10d0433c9dabb8d01d07fb3a3f50d1;p=mirrors%2FFD230.git 修复 #248 电话点击有蓝色效果 --- 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;