firefox-gnome-theme/README.md

77 lines
2.9 KiB
Markdown
Raw Normal View History

2019-06-13 06:54:29 +03:00
<h1 align="center">
2019-06-13 17:03:52 +03:00
<img src="icon.svg" alt="Firefox GNOME theme" width="100" height="100"/><br>
2019-06-13 06:54:29 +03:00
Firefox GNOME theme
</h1>
2019-06-13 06:49:25 +03:00
2019-06-13 17:03:52 +03:00
<p align="center">A GNOME theme for Firefox 60+</p>
2019-06-02 18:37:29 +03:00
2019-06-13 17:03:52 +03:00
<p align="center"><em>(This theme follows lastest GNOME default gtk theme adwaita)</em></p>
2019-06-04 03:00:43 +03:00
2017-12-02 01:18:56 +02:00
![Screenshot of the theme](screenshot.png)
## Description
2019-06-02 18:37:29 +03:00
This is a bunch of CSS code to make Firefox look closer to GNOME's default
2019-06-04 03:00:43 +03:00
theme.
2017-12-02 01:18:56 +02:00
2019-06-04 03:00:43 +03:00
The `master` branch track current Firefox and GNOME stable.
2018-03-31 11:50:39 +03:00
2017-12-02 01:18:56 +02:00
## Installation
2019-06-13 06:49:25 +03:00
### Installation script
*Coming soon!*
2019-06-04 18:26:47 +03:00
### Manual installation
1. Go to `about:support` in Firefox.
2. Application Basics > Profile Directory > Open Directory.
3. Create a folder named `chrome`.
2019-06-13 06:49:25 +03:00
4. Copy `theme` folder and `userChrome.css` file to your `chrome` Firefox folder.
5. If you are using Firefox 69+:
1. Go to `about:config` in Firefox.
2. Search for `toolkit.legacyUserProfileCustomizations.stylesheets` and set it to `true`.
2019-06-04 18:26:47 +03:00
7. Restart Firefox.
8. Open Firefox customization panel and:
1. Use *Title bar* option to toggle CSD if is not set by default.
2019-06-13 06:49:25 +03:00
2. Move the new tab button to headerbar.
2019-06-04 18:26:47 +03:00
3. Select light or dark variants on theme switcher.
9. Be happy with your new gnomish Firefox.
2019-06-13 06:49:25 +03:00
## Enabling optional features
Open `userChrome.css` with a text editor and follow instructions to enable extra features. Keep in mind this file might change in future versions and your configuration will be lost. You can copy the @imports you want to enable to a new file named `customChrome` directly in your `chrome` directory if you want it to survive updates. Remember all @imports must be at the top of the file, before other statements.
## Known bugs
### CSD have sharp corners
See upstream [bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1408360).
### Icons color broken
Icons might appear black where they should be white on some systems. I have no idea why, but you can adjust them in the `theme/colors/light.css` or `theme/colors/dark.css` files, look for `--gnome-icons-hack-filter` var and play with css filters.
2017-12-02 01:18:56 +02:00
## Development
If you wanna mess around the styles and change something, you might find these
things useful.
2017-12-02 01:18:56 +02:00
To use the Inspector to debug the UI, open the developer tools (F12) on any
page, go to options, check both of those:
2017-12-02 15:59:57 +02:00
- Enable browser chrome and add-on debugging toolboxes
- Enable remote debugging
2017-12-02 01:18:56 +02:00
Now you can close those tools and press Ctrl+Alt+Shift+I to Inspect the browser
UI.
Also you can inspect any GTK3 application, for example type this into a terminal
and it will run Epiphany with the GTK Inspector, so you can check the CSS styles
of its elements too.
2017-12-02 15:59:57 +02:00
```sh
GTK_DEBUG=interactive epiphany
```
2017-12-02 01:18:56 +02:00
Feel free to use any parts of my code to develop your own themes, I don't force
any specific license on your code.
2019-06-02 21:39:11 +03:00
## Credits
2019-06-13 06:49:25 +03:00
Developed by **Rafael Mardojai** and [contributors](https://github.com/rafaelmardojai/firefox-gnome-theme/graphs/contributors). Based on **[Sai Kurogetsu](https://github.com/kurogetsusai/firefox-gnome-theme)** original work.