修复 #248 电话点击有蓝色效果 930/2
authorhcj <1224667075@qq.com>
Tue, 10 Sep 2024 07:04:57 +0000 (15:04 +0800)
committerhcj <1224667075@qq.com>
Tue, 10 Sep 2024 07:04:57 +0000 (15:04 +0800)
code/sdk/application/wearable/fd230app/nativeui/phone/src/DialingMethodView.cpp
code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp
code/sdk/application/wearable/fd230app/nativeui/phone/src/PhoneDirView.cpp

index ca2a58c..ff44296 100644 (file)
@@ -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)
index 3d3a674..89ed3a1 100644 (file)
@@ -187,7 +187,7 @@ namespace OHOS
                 .height = 140,
                 .viewId = DIALINGMETHODBUTTON_VIEWID,
                 .backgroundColor = 0xff4fc34c,
-                .pressedBackgroundColor = 0xff1996ff,
+                .pressedBackgroundColor = 0xff4fc34c,
             };
             DialingMethodButton = TelephonyInitInterface::ButtonViewInit(buttonParam);
             if (DialingMethodButton == nullptr)
index 300dd8e..e198a81 100644 (file)
@@ -48,7 +48,7 @@ namespace OHOS
         if(buttonconfig.ImageSrc)\r
         button->SetImageSrc(buttonconfig.ImageSrc, buttonconfig.ImageSrc);\r
 \r
-        button->SetStyleForState(STYLE_BORDER_COLOR, 0xff0b1928, UIButton::PRESSED);\r
+        //button->SetStyleForState(STYLE_BORDER_COLOR, 0xff191919, UIButton::PRESSED);\r
         if(clickListener!=NULL)\r
         button->SetOnClickListener(clickListener);\r
 \r
@@ -56,7 +56,7 @@ namespace OHOS
         button->SetAlign(TEXT_ALIGNMENT_LEFT);\r
         button->SetLabelPosition(buttonconfig.label_x,buttonconfig.label_y );\r
         button->SetFont(DEFAULT_VECTOR_FONT_FILENAME, buttonconfig.Fontsize);\r
-        button->SetStyleForState(STYLE_BORDER_COLOR, 0xff0b1928, UIButton::PRESSED);\r
+        button->SetStyleForState(STYLE_BACKGROUND_COLOR, 0xff191919, UIButton::PRESSED);\r
 \r
         button->SetImagePosition(25, 25);\r
         return button;\r