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".

Learn More

How can I change the tab colors so they're different from the bookmarks toolbar color? I'm on a Mac.

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

more options

Firefox automatically updated on my iMac to v. 65 which moved things around and changed the colors. I just was able through the community forum to get the tabs back below the bookmarks toolbar, where they make more sense. However, the tab colors are now the same as the background for the address bar (I guess it's called that) and the bookmarks toolbar. In the previous version, the tabs were slightly darker so they stood out, and the selected tab was lighter so you could easily see which tab you were on. That's gone too. I've looked at theme add-ons and none of them will work for me. I just want a simple uncluttered browser page with easily visible tabs. The current theme I have is called Soft Aqua by Tracee. The color is fine; just need a way to make the tabs stand out. I've attached a screenshot of the way the browser used to appear and hope that someone can help me approximate the way it was. Thanks.

Firefox automatically updated on my iMac to v. 65 which moved things around and changed the colors. I just was able through the community forum to get the tabs back below the bookmarks toolbar, where they make more sense. However, the tab colors are now the same as the background for the address bar (I guess it's called that) and the bookmarks toolbar. In the previous version, the tabs were slightly darker so they stood out, and the selected tab was lighter so you could easily see which tab you were on. That's gone too. I've looked at theme add-ons and none of them will work for me. I just want a simple uncluttered browser page with easily visible tabs. The current theme I have is called Soft Aqua by Tracee. The color is fine; just need a way to make the tabs stand out. I've attached a screenshot of the way the browser used to appear and hope that someone can help me approximate the way it was. Thanks.
Đính kèm ảnh chụp màn hình

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

more options

The text color for tabs is set via the ".tabbrowser-tab .tab-text {}" selector for all tabs. Choose your own color.

.tabbrowser-tab[selected="true"] .tab-text {
 color: rgb(x,x,x) !important;
}

.tabbrowser-tab:not([selected="true"]) .tab-text {
 color: rgb(x,x,x) !important;
}
more options

Hi, Thanks for this. However I guess I wasn't clear about what I was trying to do. The TEXT color is fine as is. I want to be able to have the color of the selected tab itself different from the rest of the tabs. Is there a way to do that?

Much appreciated, Judy

more options

Do you mean the background color of the tabs or the text color? The text color for the selected tabs and not selected tabs can be set via the code I posted sbove.

The background-color can be set on this selector:

/* background color for selected tab */
.tabbrowser-tab[selected="true"] { background-color: rgb(x,x,x) !important; }

/* background color for not selected tabs */
.tabbrowser-tab:not([selected="true"]) { background-color: rgb(x,x,x) !important; }

Add the code to the userChrome.css file below the default @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

It is not that difficult to create userChrome.css if you have never used it.

The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder.

You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name chrome in this folder (name is all lowercase). In the chrome folder you need to create a text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted.

In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named userChrome.css.txt. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".

You need to close and restart Firefox when you create or modify the userChrome.css file.

more options

OK. Getting closer. (I really appreciate this!) I meant the background color of the tabs. I tried the addition to the css file, but it only changes the background color of the tab when the cursor is actually ON the tab. And it's weird, because I set the RGB values to be darker for the unopened (not selected) tabs and lighter on the open (selected) tab. This did the opposite: the not-in-use tabs stayed the lighter of the two colors and the selected tab changed to the darker color, but only when the cursor was on it. Once I clicked on the tab it reverted to the lighter color. So once again the tabs all appear the same color unless the cursor is over any one of them. The RGB values I used were: dark—R190 G220 B196; and light—R212 G255 B223. Thanks for any help you can give!

more options

Maybe add :hover styles as well.

.tabbrowser-tab[selected="true"]:hover .tab-text {
 color: rgb(x,x,x) !important;
}

.tabbrowser-tab:not([selected="true"]):hover .tab-text {
 color: rgb(x,x,x) !important;
}

See also:

more options

I'll try that. thanks. Not spending too much time on computer right now. Just had eye surgery 2 days ago and the world's a bit off kilter at the moment. Thanks again. I'll let you know how that works.