深色模式,模拟器中media查询不起作用,真机调试theme.json中配置不起作用?
发布于 4 年前 作者 weichang 10829 次浏览 来自 问答

1.03.2010240 Windows 64

同样darkmode模式,模拟器显示如下:

真机显示:

theme.json

{
  "light": {
      "navBgColor""#ffffff",
      "navTxtStyle""black",
      "bgColor""#ffffff",
      "bgTxtStyle""light",
      "bgColorTop""#eeeeee",
      "bgColorBottom""#efefef",
      "tabFontColor""#000000",
      "tabSelectedColor""#3cc51f",
      "tabBgColor""#ffffff",
      "tabBorderStyle""black"
  },
  "dark": {
      "navBgColor""#191919",
      "navTxtStyle""white",
      "bgColor""#1f1f1f",
      "bgTxtStyle""dark",
      "bgColorTop""#191919",
      "bgColorBottom""#1f1f1f",
      "tabFontColor""#ffffff",
      "tabSelectedColor""#51a937",
      "tabBgColor""#191919",
      "tabBorderStyle""white"
  }
}

真机调试的问题今天才出现,也不知道是更新编辑器的原因还是啥?

2 回复

你好,问题已恢复,麻烦重新编译小程序再试。

问题+1,开发者工具恢复到1.03.2009301,无效,难道是昨天下午小程序的SDK更新了?

回到顶部