Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Address bar on theme improperly displaying on one computer

  • 5 trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi confooseddesi89

more options

I have created and installed a theme (https://addons.mozilla.org/en-US/fire.../versions/). On my computer, when the text in the address bar is selected (e.g., if you hit Ctrl+A), the text is not highlighted blue as it should be - instead the text color changes to blue and there is no blue highlight; the background remains white. (This is only a problem with the address bar, not the search bar. This problem also does not happen with other themes). On other computers, however, the theme displays properly, with the address bar text highlighted in blue and the font color turning to white. See attached screenshots. I tried uninstalling and re-installing to no avail (Firefox "remembered" my settings so uninstalling didn't work).

I have created and installed a theme ([https://addons.mozilla.org/en-US/firefox/addon/pink-and-purple-blend/versions/]). On my computer, when the text in the address bar is selected (e.g., if you hit Ctrl+A), the text is not highlighted blue as it should be - instead the text color changes to blue and there is no blue highlight; the background remains white. (This is only a problem with the address bar, not the search bar. This problem also does not happen with other themes). On other computers, however, the theme displays properly, with the address bar text highlighted in blue and the font color turning to white. See attached screenshots. I tried uninstalling and re-installing to no avail (Firefox "remembered" my settings so uninstalling didn't work).
Đính kèm ảnh chụp màn hình

Được chỉnh sửa bởi cor-el vào

Giải pháp được chọn

Hi confooseddesi89, I took a quick look at the theme wizard and it seems to be missing boxes for those two fields.

You can right-click the install/remove button on the Add-ons site and use Save File As... to download your theme's .XPI file. Then "unzip" it and you can edit the manifest.json file. For a regular extension you then can zip together the manifest.json file and the image and upload that as a new version. I don't know whether themes allow that.

(Unfortunately I have to restart my computer right now so can't look into it further.)

Đọc câu trả lời này trong ngữ cảnh 👍 1

Tất cả các câu trả lời (5)

more options

Hi confooseddesi89, There were changes to the address bar in version 75 and maybe I'm just plucking at straws but, you might be able to find some help over at the:

Extensions Workshop

more options

Two properties were added in Firefox 67 that you could use as a workaround:

,
"toolbar_field_highlight": "rgba(0, 120, 215, 1)",
"toolbar_field_highlight_text": "rgba(255, 255, 255, 1)"
more options

Hi jscher2000,

I'm not that savvy with code and used the "create a theme" builder offered by Firefox, which doesn't have those options. Would I be able to export the current theme and then edit that code to include the mentioned parameters? I can't find any useful information describing how to export a theme for editing.

more options

Giải pháp được chọn

Hi confooseddesi89, I took a quick look at the theme wizard and it seems to be missing boxes for those two fields.

You can right-click the install/remove button on the Add-ons site and use Save File As... to download your theme's .XPI file. Then "unzip" it and you can edit the manifest.json file. For a regular extension you then can zip together the manifest.json file and the image and upload that as a new version. I don't know whether themes allow that.

(Unfortunately I have to restart my computer right now so can't look into it further.)

more options

jscher2000, worked beautifully. Thanks!