HarmonyOS promptAction.showDialog设置的背景在深色模式下无效?

promptAction.showDialog 设置的背景在深色模式下无效,按照如下代码显示弹框时,弹框的背景颜色设置为 白色(或者其他颜色也是一样的表现),但在深色模式下,该颜色自动变为深色,无法控制

promptAction.showDialog({
  title:"Demo",
  message: "demo message",
  backgroundColor: Color.White,
  buttons:[
    {
      text: "取消",
      color: "#FF0000"
    },
    {
      text: "确认",
      color: "#0000FF"
    }
  ]
})
阅读 463
1 个回答