• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ideaweb/firefox-safari-style: A macOS compliant theme for Firefox

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

ideaweb/firefox-safari-style

开源软件地址:

https://github.com/ideaweb/firefox-safari-style

开源编程语言:

CSS 82.9%

开源软件介绍:

Firefox userChrome.css Safari style (macOS only)

This theme will make Firefox more compliant with macOS.

Firefox with NelliTab
Firefox with macOS theme and NelliTab new tab extension

Firefox with NelliTab
Firefox with legacy macOS theme (Branch 0.1)

Requirements

  • Firefox 71 or higher for macOS

Known issues

  • "Tinting" is currently not supported. IF you want that Firefox and macOS have the same colors please disable the option "Allow wallpaper tinting windows" in system preferences.
  • Dark theme is supported but Firefox not really have native dark mode (e.g. context menus are still "light", white line on top of the window etc.)

Installing

  • Clone (recommended) or just download this repository (for legacy theme please checkout branch 0.1)
  • Set toolkit.legacyUserProfileCustomizations.stylesheets to true in about:config
  • Open the userChrome.css file located in your profile folder of Firefox with any text editor
  • Add there one of the following lines below to import your chosen userChrome.css of this theme but please do not forget to update the path and do not mix up the imported file with the none working scss/userChrome.scss of this repository

Default light and dark theme with macOS colors

@import '/path/to/firefox-safari-style/css/userChrome.css';

or(!) for macOS colors with enabled transparency / blur effect

@import '/path/to/firefox-safari-style/css/userChrome-vibrancy.css';

or(!) use the following file to use the colors from chosen Firefox theme

@import '/path/to/firefox-safari-style/css/userChrome-theme.css';
  • Restart Firefox that changes can take effect

Updating

A Firefox release may change its styles and break this theme. To update please just run git pull in the cloned repository or just re-download it.

Extras

Some code snippets to add extra functionality. Just add any code below to the end of your userChrome.css.

Hide solo tab

Hides tab bar if there is only one tab open. Unfortunately currently its not possible to move the new tab button up and that's why it should be hidden as well.

#tabbrowser-tabs tab[first-visible-tab="true"][last-visible-tab="true"]:not([pinned]),
#tabbrowser-tabs tab[first-visible-tab="true"][last-visible-tab="true"]:not([pinned]) ~ toolbarbutton {
  visibility: collapse;
}

Shows favicons in bookmarks bar

#personal-bookmarks .bookmark-item .toolbarbutton-icon {
    display: inline !important;
}

Change the purple color in private windows

To change the purple color in private windows you need to add the following code to another file userContent.css. Please do not mix up with the file userChrome.css above for this theme.

html.private {
    --in-content-page-background: #838383 !important;
}

Troubleshooting

Make sure that your userChrome.css does not contain any lines beginning with @namespace, just only a single line with the above @import statement. Remove any extra code snippets as well.

If still nothing changes in Firefox make sure that the userChrome.css in your profile directory is loaded. It can be tested easily by adding the following line at the end which changes the entire browser to red.

* { background-color: red !important; }

Please add the same line to the imported userChrome.css of this theme but use another color like blue instead of red.

Restart Firefox and check the color. If still nothing changes the userChrome.css in your profile is not loaded. Please verify the first both steps of the install section above. If you see red and not blue the import of the theme failed e.g. by wrong path.

In case of blue, please check the list of known issues to see if it has been previously reported. Otherwise, please open a ticket here.

Development

If you want to contribute or to make your own changes please edit userChrome.scss file only. Then just run make in root folder of this repository to get more details how to create final CSS files.


Mozilla and Firefox are trademarks of the Mozilla Foundation in the U.S. and other countries. Safari and macOS are trademarks of Apple Inc., registered in the U.S. and other countries.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap