0

Chrome 最近获得了更新(至少在 Canary 中),您可以在其中修改 Chrome 主题并更改地址栏的背景和文本颜色。但是,我找不到更改这些颜色所需的语法或关键词。

以下来自名为 Just Black 的主题的 manifest.json 文件。我添加"omnibox_background": [ 65, 65, 65 ]但它没有改变地址栏的背景颜色。

{
   "description": "Just Black: when you're feeling extra moody",
   "key": "(long random string of characters)",
   "manifest_version": 2,
   "name": "Just Black",
   "theme": {
      "colors": {
         "bookmark_text": [ 255, 255, 255 ],
         "frame": [ 0, 0, 0 ],
         "ntp_background": [ 0, 0, 0 ],
         "ntp_text": [ 125, 134, 142 ],
         "tab_background_text": [ 255, 255, 255 ],
         "tab_background_text_inactive": [ 255, 255, 255 ],
         "tab_background_text_incognito": [ 255, 255, 255 ],
         "tab_background_text_incognito_inactive": [ 255, 255, 255 ],
         "tab_text": [ 255, 255, 255 ],
         "toolbar": [ 45, 45, 45 ],
         "omnibox_background": [ 65, 65, 65 ]
      },
      "tints": {
         "buttons": [ 0.2, 0.2, 0.9 ],
         "frame_inactive": [ -1, -1, -1 ],
         "frame_incognito": [ -1, -1, -1 ],
         "frame_incognito_inactive": [ -1, -1, -1 ]
      }
   },
   "update_url": "https://clients2.google.com/service/update2/crx",
   "version": "2"
}
4

1 回答 1

1

我知道我迟到了四个月,但您实际上可以走在正确的轨道上,但是如果您将其复制并粘贴到清单中(突出显示整个清单),然后转到chrome://extensions,单击Load unpacked extensions右上角,然后找到主题文件并单击选择文件夹然后它应该可以工作,如果没有,请再次通过此线程与我联系(编辑:您也可以将RGB 值更改为您选择的 RGB 值"omnibox_background": [65, 65, 65]"omnibox_text": [255, 255, 255]

{
   "description": "Just Black: when you're feeling extra moody",
   "key": "(long random string of characters)",
   "manifest_version": 2,
   "name": "Just Black",
   "theme": {
      "colors": {
         "bookmark_text": [ 255, 255, 255 ],
         "frame": [ 0, 0, 0 ],
         "ntp_background": [ 0, 0, 0 ],
         "ntp_text": [ 125, 134, 142 ],
         "omnibox_background": [ 65, 65, 65 ],
         "omnibox_text": [ 255, 255, 255 ],
         "tab_background_text": [ 255, 255, 255 ],
         "tab_background_text_inactive": [ 255, 255, 255 ],
         "tab_background_text_incognito": [ 255, 255, 255 ],
         "tab_background_text_incognito_inactive": [ 255, 255, 255 ],
         "tab_text": [ 255, 255, 255 ],
         "toolbar": [ 45, 45, 45 ],
      },
      "tints": {
         "buttons": [ 0.2, 0.2, 0.9 ],
         "frame_inactive": [ -1, -1, -1 ],
         "frame_incognito": [ -1, -1, -1 ],
         "frame_incognito_inactive": [ -1, -1, -1 ]
      }
   },
   "update_url": "https://clients2.google.com/service/update2/crx",
   "version": "2"
}
于 2020-04-23T16:29:44.630 回答