Boo*_*Roo 18 windows firefox themes
最新的 Firefox 89 版更新对我在 Windows 10 (20H2) 上的主题选择失去了尊重。现在标题栏都是一种颜色,我再也无法轻松区分活动窗口和非活动窗口之间的区别。
现在,活动窗口和非活动窗口的 Firefox 89 标题栏是相同的:

当我更新到 Firefox 89 时,我选择了“系统主题”,其中指出:“按照按钮、菜单和窗口的操作系统设置”。不幸的是,它并没有这样做。我确保 Windows 有设置>个性化>颜色>“标题栏和窗口边框”仍然被选中。其他程序仍然正常运行。
我可以使用以下命令将常规标题栏放回窗口:
关于:配置>“browser.tabs.drawInTitlebar = false”
这部分有效,至少它遵循正确的配色方案,但它使选项卡没有颜色。由于控制描述在标题栏中绘制选项卡的设置,在我看来它应该遵循标题栏配色方案。
关闭“质子”显然最终会被禁用,因此按照本答案中的建议制作 userChrome.css似乎是一个不错的部分解决方法。不幸的是,每个窗口都有自己的活动/非活动选项卡。
这是 userChrome.css 定义的标题栏的显示方式(忽略黑色文本,标题栏颜色是问题):

如您所见,所有选项卡的颜色都相同,无论它是活动窗口还是非活动窗口。
那么,如何让 Firefox 尊重我的操作系统颜色选择?
Ull*_*loo 16
从 Firefox 91 开始,不再可以禁用 Proton;从 Firefox 92 开始,不再有使用 Windows 强调色的内置选项。
您可以使用 Firefox 主题为某些元素添加设置颜色,但如果您确实想恢复使用系统主题颜色的能力,则必须使用 userChrome.css 文件。
/* Show active colors on main menu bar */
#TabsToolbar,
#navigator-toolbox,
#tabs-newtab-button,
#titlebar toolbarbutton:not(:hover):not(:active),
#scrollbutton-up:not(:hover):not(:active),
#scrollbutton-down:not(:hover):not(:active),
.titlebar-color {
background: AccentColor !important;
color: AccentColorText;
fill: AccentColorText !important;
}
#TabsToolbar:-moz-window-inactive,
#navigator-toolbox:-moz-window-inactive,
#tabs-newtab-button:-moz-window-inactive,
#titlebar toolbarbutton:not(:hover):not(:active):-moz-window-inactive,
#scrollbutton-up:not(:hover):not(:active):-moz-window-inactive,
#scrollbutton-down:not(:hover):not(:active):-moz-window-inactive,
.titlebar-color {
background: unset !important;
color: unset;
fill: unset !important;
transition: none !important;
}
Run Code Online (Sandbox Code Playgroud)
将其添加到您的 userChrome.css 文件中,您应该可以恢复原来的颜色。(至少在 Mozilla 再次破坏之前是这样。)
我无法分辨活动窗口和非活动窗口之间的区别。
它们是选项卡,而不是窗口。
有几种方法可以改变颜色。
禁用质子。
可以通过设置browser.proton.enabled为来禁用它false。
Mozilla 确实有禁用此类选项的习惯,因此它可能无法在 Firefox 90 中使用。
您可以修改userChrome.css以更改这些颜色。
例子:
Run Code Online (Sandbox Code Playgroud).tabbrowser-tab[selected] .tab-label { color: black !important; font-weight: bold !important; } .tabbrowser-tab[selected] .tab-content { background: #fcb731 ! important; } .tabbrowser-tab:not([selected]) .tab-content { background: #585060;
另一个例子:
Run Code Online (Sandbox Code Playgroud)/* Use color and shape to make the tabs look more like tabs */ .tab-background { background: #585060; border-radius: 9px 9px 0 0 !important; margin-bottom: 0px !important; box-shadow: 0 0 2px 2px rgba(0,0,0,0.1) !important; border: 1px solid rgba(0,0,0,.5) !important; border-bottom-width: 0px !important; } /* Selected tabs I want a bright background with a dark foreground */ .tabbrowser-tab[selected] .tab-background { background: #fcb731 !important; } .tabbrowser-tab[selected] .tab-label { color: black !important; font-weight: bold !important; } /* Draw a solid line underneath to make the selected tab look connected* to the rest of the browser */ #TabsToolbar { border-bottom: 2px solid #fcb731 !important; } /* Hover over tabs */ .tabbrowser-tab:hover .tab-background:not([selected]) { background: #686070 !important; }
安装Firefox Color扩展:
构建、保存和分享漂亮的 Firefox 主题。
转到高级颜色/选项卡选定设置。
来源: Amit's Thoughts:Firefox 89 标签页外观
小智 5
右键单击工具栏的任何按钮并Customize Toolbar...从上下文菜单中选择。自定义页面打开。在左下角,勾选复选框Title bar。
这将恢复 Firefox 89 版之前的行为。如果未选中该复选框,Firefox 会告诉您的窗口管理器不要添加标题栏。
| 归档时间: |
|
| 查看次数: |
2940 次 |
| 最近记录: |