├── TB_eos8_style_update.png ├── Windows └── userChrome.css ├── Ubuntu └── userChrome.css ├── macOS └── userChrome.css ├── Close Only Left └── userChrome.css ├── Close Only Right └── userChrome.css ├── Replace Maximize to Minimize └── userChrome.css ├── Minimize Right └── userChrome.css ├── Elementary Reversed └── userChrome.css ├── Elementary └── userChrome.css ├── Minimize Left └── userChrome.css ├── README.md ├── LICENSE ├── install.sh └── base.css /TB_eos8_style_update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zonnev/elementaryos-thunderbird-theme/HEAD/TB_eos8_style_update.png -------------------------------------------------------------------------------- /Windows/userChrome.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* This userChrome is for button layout Windows */ 6 | 7 | @import "base.css"; 8 | 9 | /****** window controls buttons ******/ 10 | 11 | .titlebar-buttonbox-container { 12 | position: relative !important; 13 | } 14 | .titlebar-buttonbox { 15 | top: 50% !important; 16 | transform: translateY(-50%) !important; 17 | appearance: none !important; 18 | position: absolute !important; 19 | flex-direction: row !important; 20 | display: flex !important; 21 | margin-left: -99.5vw !important; 22 | width: calc(100vw - 6px) !important; 23 | height: 25px !important; 24 | justify-content: end !important; 25 | } 26 | 27 | /* make room for window control buttons */ 28 | 29 | #unifiedToolbar { 30 | position: relative !important; 31 | margin-left: 4px !important; 32 | margin-right: 110px !important; 33 | z-index: 2 !important; 34 | } 35 | -------------------------------------------------------------------------------- /Ubuntu/userChrome.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* This userChrome is for button layout Ubuntu */ 6 | 7 | @import "base.css"; 8 | 9 | /****** window controls buttons ******/ 10 | 11 | .titlebar-buttonbox-container { 12 | position: relative !important; 13 | } 14 | .titlebar-buttonbox { 15 | top: 50% !important; 16 | transform: translateY(-50%) !important; 17 | appearance: none !important; 18 | position: absolute !important; 19 | flex-direction: row !important; 20 | display: flex !important; 21 | width: 100vw !important; 22 | height: 25px !important; 23 | justify-content: start !important; 24 | } 25 | 26 | /* make room for window control buttons */ 27 | 28 | #unifiedToolbar { 29 | position: relative !important; 30 | margin-left: 110px !important; 31 | margin-right: 0px !important; 32 | z-index: 2 !important; 33 | } 34 | 35 | /* move window control buttons when spacestoolbar is active */ 36 | 37 | :root[spacestoolbar="true"] .titlebar-buttonbox { 38 | appearance: none !important; 39 | margin-right: 40px !important; 40 | position: absolute !important; 41 | flex-direction: row !important; 42 | display: flex !important; 43 | width: 100vw !important; 44 | height: 25px !important; 45 | justify-content: start !important; 46 | } 47 | -------------------------------------------------------------------------------- /macOS/userChrome.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* This userChrome is for button layout macOS */ 6 | 7 | @import "base.css"; 8 | 9 | /****** window controls buttons ******/ 10 | 11 | .titlebar-buttonbox-container { 12 | position: relative !important; 13 | } 14 | .titlebar-buttonbox { 15 | top: 50% !important; 16 | transform: translateY(-50%) !important; 17 | appearance: none !important; 18 | position: absolute !important; 19 | flex-direction: row !important; 20 | display: flex !important; 21 | width: 100vw !important; 22 | height: 25px !important; 23 | justify-content: start !important; 24 | } 25 | 26 | /* make room for window control buttons */ 27 | 28 | #unifiedToolbar { 29 | position: relative !important; 30 | margin-left: 110px !important; 31 | margin-right: 0px !important; 32 | z-index: 2 !important; 33 | } 34 | 35 | /* move window control buttons when spacestoolbar is active */ 36 | 37 | :root[spacestoolbar="true"] .titlebar-buttonbox { 38 | appearance: none !important; 39 | margin-right: 40px !important; 40 | position: absolute !important; 41 | flex-direction: row !important; 42 | display: flex !important; 43 | width: 100vw !important; 44 | height: 25px !important; 45 | justify-content: start !important; 46 | } 47 | -------------------------------------------------------------------------------- /Close Only Left/userChrome.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* This userChrome is for button layout Close left */ 6 | 7 | @import "base.css"; 8 | 9 | /****** window controls buttons ******/ 10 | 11 | .titlebar-buttonbox-container { 12 | position: relative !important; 13 | } 14 | .titlebar-buttonbox { 15 | top: 50% !important; 16 | transform: translateY(-50%) !important; 17 | appearance: none !important; 18 | margin-right: 40px !important; 19 | position: absolute !important; 20 | flex-direction: row !important; 21 | display: flex !important; 22 | width: 100vw !important; 23 | height: 25px !important; 24 | justify-content: start !important; 25 | } 26 | 27 | /* make room for window control buttons */ 28 | 29 | #unifiedToolbar { 30 | position: relative !important; 31 | margin-left: 40px !important; 32 | margin-right: 0px !important; 33 | z-index: 2 !important; 34 | } 35 | 36 | /* move window control buttons when spacestoolbar is active */ 37 | 38 | :root[spacestoolbar="true"] .titlebar-buttonbox { 39 | appearance: none !important; 40 | margin-right: 40px !important; 41 | position: absolute !important; 42 | flex-direction: row !important; 43 | display: flex !important; 44 | width: 100vw !important; 45 | height: 25px !important; 46 | justify-content: start !important; 47 | } 48 | -------------------------------------------------------------------------------- /Close Only Right/userChrome.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* This userChrome is for button layout Close right */ 6 | 7 | @import "base.css"; 8 | 9 | /****** window controls buttons ******/ 10 | 11 | .titlebar-buttonbox-container { 12 | position: relative !important; 13 | } 14 | .titlebar-buttonbox { 15 | top: 50% !important; 16 | transform: translateY(-50%) !important; 17 | appearance: none !important; 18 | position: absolute !important; 19 | flex-direction: row-reverse !important; 20 | display: flex !important; 21 | width: calc(12px - 100vw) !important; 22 | height: 25px !important; 23 | justify-content: space-between !important; 24 | } 25 | 26 | /* make room for window control buttons */ 27 | 28 | #unifiedToolbar { 29 | position: relative !important; 30 | margin-left: 4px !important; 31 | margin-right: 40px !important; 32 | z-index: 2 !important; 33 | } 34 | 35 | /* move window control buttons when spacestoolbar is active */ 36 | 37 | :root[spacestoolbar="true"] .titlebar-buttonbox { 38 | appearance: none !important; 39 | margin-right: 40px !important; 40 | position: absolute !important; 41 | flex-direction: row-reverse !important; 42 | display: flex !important; 43 | width: calc(49px - 100vw) !important; 44 | height: 25px !important; 45 | justify-content: space-between !important; 46 | } 47 | -------------------------------------------------------------------------------- /Replace Maximize to Minimize/userChrome.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* This userChrome is for button layout Replace Max to Min */ 6 | 7 | @import "base.css"; 8 | 9 | /****** window controls buttons ******/ 10 | 11 | .titlebar-buttonbox-container { 12 | position: relative !important; 13 | } 14 | .titlebar-buttonbox { 15 | top: 50% !important; 16 | transform: translateY(-50%) !important; 17 | appearance: none !important; 18 | margin-left: 3px !important; 19 | position: absolute !important; 20 | flex-direction: row !important; 21 | display: flex !important; 22 | width: calc(100vw - 5px) !important; 23 | height: 25px !important; 24 | justify-content: space-between !important; 25 | } 26 | 27 | /* make room for window control buttons */ 28 | 29 | #unifiedToolbar { 30 | position: relative !important; 31 | margin-left: 40px !important; 32 | margin-right: 40px !important; 33 | z-index: 2 !important; 34 | } 35 | 36 | /* move window control buttons when spacestoolbar is active */ 37 | 38 | :root[spacestoolbar="true"] .titlebar-buttonbox { 39 | appearance: none !important; 40 | position: absolute !important; 41 | flex-direction: row !important; 42 | display: flex !important; 43 | width: calc(100vw - 39px) !important; 44 | height: 25px !important; 45 | justify-content: space-between !important; 46 | } 47 | :root[spacestoolbar="true"][uidensity="compact"] .titlebar-min { 48 | margin-right: 3px !important; 49 | } 50 | :root[spacestoolbar="true"][uidensity="touch"] .titlebar-min { 51 | margin-right: 21px !important; 52 | } 53 | :root[spacestoolbar="true"]:not([uidensity="touch"]):not([uidensity="compact"]) .titlebar-min { 54 | margin-right: 11px !important; 55 | } 56 | -------------------------------------------------------------------------------- /Minimize Right/userChrome.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* This userChrome is for button layout Minimize Right */ 6 | 7 | @import "base.css"; 8 | 9 | /****** window controls buttons ******/ 10 | 11 | .titlebar-buttonbox-container { 12 | position: relative !important; 13 | } 14 | .titlebar-buttonbox { 15 | top: 50% !important; 16 | transform: translateY(-50%) !important; 17 | appearance: none !important; 18 | margin-left: 4px !important; 19 | position: absolute !important; 20 | flex-direction: row !important; 21 | display: flex !important; 22 | width: 100vw !important; 23 | height: 25px !important; 24 | justify-content: start !important; 25 | } 26 | 27 | /* make room for window control buttons */ 28 | 29 | #unifiedToolbar { 30 | position: relative !important; 31 | margin-left: 40px !important; 32 | margin-right: 75px !important; 33 | z-index: 2 !important; 34 | } 35 | 36 | /* move window control buttons when spacestoolbar is active */ 37 | 38 | :root[spacestoolbar="true"] .titlebar-buttonbox { 39 | appearance: none !important; 40 | position: absolute !important; 41 | flex-direction: row !important; 42 | display: flex !important; 43 | width: 100vw !important; 44 | height: 25px !important; 45 | justify-content: start !important; 46 | } 47 | .titlebar-min { 48 | margin-left: calc(100vw - 108px) !important; 49 | } 50 | :root[spacestoolbar="true"][uidensity="touch"] .titlebar-min { 51 | margin-left: calc(100vw - 163px) !important; 52 | } 53 | :root[spacestoolbar="true"][uidensity="compact"] .titlebar-min { 54 | margin-left: calc(100vw - 145px) !important; 55 | } 56 | :root[spacestoolbar="true"]:not([uidensity="touch"]):not([uidensity="compact"]) .titlebar-min { 57 | margin-left: calc(100vw - 153px) !important; 58 | } 59 | -------------------------------------------------------------------------------- /Elementary Reversed/userChrome.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* This userChrome is for button layout Elementary Reversed */ 6 | 7 | @import "base.css"; 8 | 9 | /****** window controls buttons ******/ 10 | 11 | .titlebar-buttonbox-container { 12 | position: relative !important; 13 | } 14 | .titlebar-buttonbox { 15 | top: 50% !important; 16 | transform: translateY(-50%) !important; 17 | appearance: none !important; 18 | position: absolute !important; 19 | flex-direction: row !important; 20 | display: flex !important; 21 | margin-left: -99.5vw !important; 22 | width: calc(100vw - 8px) !important; 23 | height: 25px !important; 24 | justify-content: space-between !important; 25 | } 26 | 27 | /* make room for window control buttons */ 28 | 29 | #unifiedToolbar { 30 | position: relative !important; 31 | margin-left: 40px !important; 32 | margin-right: 40px !important; 33 | z-index: 2 !important; 34 | } 35 | 36 | /* move window control buttons when spacestoolbar is active */ 37 | 38 | :root[spacestoolbar="true"] .titlebar-buttonbox { 39 | appearance: none !important; 40 | position: absolute !important; 41 | flex-direction: row !important; 42 | display: flex !important; 43 | margin-left: -97vw !important; 44 | width: calc(100vw - 46px) !important; 45 | height: 25px !important; 46 | justify-content: space-between !important; 47 | } 48 | :root[spacestoolbar="true"][uidensity="touch"] .titlebar-max, 49 | :root[spacestoolbar="true"][uidensity="touch"] .titlebar-restore { 50 | margin-left: 15px !important; 51 | } 52 | :root[spacestoolbar="true"]:not([uidensity="touch"]):not([uidensity="compact"]) .titlebar-max, 53 | :root[spacestoolbar="true"]:not([uidensity="touch"]):not([uidensity="compact"]) .titlebar-restore { 54 | margin-left: 5px !important; 55 | } 56 | -------------------------------------------------------------------------------- /Elementary/userChrome.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* This userChrome is for button layout Elementary */ 6 | 7 | @import "base.css"; 8 | 9 | /****** window controls buttons ******/ 10 | 11 | .titlebar-buttonbox-container { 12 | position: relative !important; 13 | } 14 | .titlebar-buttonbox { 15 | top: 50% !important; 16 | transform: translateY(-50%) !important; 17 | appearance: none !important; 18 | position: absolute !important; 19 | flex-direction: row !important; 20 | display: flex !important; 21 | width: calc(100vw - 2px) !important; 22 | height: 25px !important; 23 | justify-content: space-between !important; 24 | } 25 | 26 | /* make room for window control buttons */ 27 | 28 | #unifiedToolbar { 29 | position: relative !important; 30 | margin-left: 40px !important; 31 | margin-right: 40px !important; 32 | z-index: 2 !important; 33 | } 34 | 35 | /* move window control buttons when spacestoolbar is active */ 36 | 37 | :root[spacestoolbar="true"] .titlebar-buttonbox { 38 | appearance: none !important; 39 | position: absolute !important; 40 | flex-direction: row !important; 41 | display: flex !important; 42 | width: calc(100vw - 49px) !important; 43 | height: 25px !important; 44 | justify-content: space-between !important; 45 | } 46 | :root[spacestoolbar="true"][uidensity="touch"] .titlebar-max, 47 | :root[spacestoolbar="true"][uidensity="touch"] .titlebar-restore { 48 | margin-right: 8px !important; 49 | } 50 | :root[spacestoolbar="true"][uidensity="compact"] .titlebar-max, 51 | :root[spacestoolbar="true"][uidensity="compact"] .titlebar-restore { 52 | margin-right: -10px !important; 53 | } 54 | :root[spacestoolbar="true"]:not([uidensity="touch"]):not([uidensity="compact"]) .titlebar-max, 55 | :root[spacestoolbar="true"]:not([uidensity="touch"]):not([uidensity="compact"]) .titlebar-restore { 56 | margin-right: -2px !important; 57 | } 58 | -------------------------------------------------------------------------------- /Minimize Left/userChrome.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /* This userChrome is for button layout Minimize Left */ 6 | 7 | @import "base.css"; 8 | 9 | /****** window controls buttons ******/ 10 | 11 | .titlebar-buttonbox-container { 12 | position: relative !important; 13 | } 14 | .titlebar-buttonbox { 15 | top: 50% !important; 16 | transform: translateY(-50%) !important; 17 | appearance: none !important; 18 | position: absolute !important; 19 | flex-direction: row !important; 20 | display: flex !important; 21 | width: 100vw !important; 22 | height: 25px !important; 23 | justify-content: start !important; 24 | } 25 | 26 | /* make room for window control buttons */ 27 | 28 | #unifiedToolbar { 29 | position: relative !important; 30 | margin-left: 75px !important; 31 | margin-right: 40px !important; 32 | z-index: 2 !important; 33 | } 34 | 35 | /* move window control buttons when spacestoolbar is active */ 36 | 37 | :root[spacestoolbar="true"] .titlebar-buttonbox { 38 | appearance: none !important; 39 | margin-right: 40px !important; 40 | position: absolute !important; 41 | flex-direction: row !important; 42 | display: flex !important; 43 | width: 100vw !important; 44 | height: 25px !important; 45 | justify-content: start !important; 46 | } 47 | .titlebar-max, .titlebar-restore { 48 | margin-left: calc(100vw - 104px) !important; 49 | } 50 | :root[spacestoolbar="true"][uidensity="touch"] .titlebar-max, 51 | :root[spacestoolbar="true"][uidensity="touch"] .titlebar-restore { 52 | margin-left: calc(100vw - 159px) !important; 53 | } 54 | :root[spacestoolbar="true"][uidensity="compact"] .titlebar-max, 55 | :root[spacestoolbar="true"][uidensity="compact"] .titlebar-restore { 56 | margin-left: calc(100vw - 141px) !important; 57 | } 58 | :root[spacestoolbar="true"]:not([uidensity="touch"]):not([uidensity="compact"]) .titlebar-max, 59 | :root[spacestoolbar="true"]:not([uidensity="touch"]):not([uidensity="compact"]) .titlebar-restore { 60 | margin-left: calc(100vw - 149px) !important; 61 | } 62 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # An elementary OS theme for Thunderbird 2 | 3 | ![Screenshot](TB_eos8_style_update.png) 4 | 5 | ## ⬇️ Installation 6 | 7 | For now theme installation is supported for: 8 | 9 | 1. [🐦 Thunderbird 📦 Flatpak version](https://flathub.org/apps/details/org.mozilla.Thunderbird). Install it using AppCenter. 10 | 2. [🐦 Thunderbird 📦 download package](https://www.thunderbird.net/en-US/). [How to install for advanced users](https://support.mozilla.org/en-US/kb/installing-thunderbird-linux?redirectslug=installing-thunderbird-ubuntu-linux&redirectlocale=en-US#w_installing-thunderbird-manually-for-advanced-users). 11 | 12 | **You can use Main menu to create a Thunderbird desktop entry:** 13 | - Download Thunderbird from the [website](https://www.thunderbird.net/en-US/) and extract in a folder of your choice. 14 | - Open [Main menu](https://flathub.org/apps/page.codeberg.libre_menu_editor.LibreMenuEditor) (install it in AppCenter), click on the Settings wheel in the app list on the top right and select `New launcher`. 15 | - Fill in each section starting with **Appearance**. Press the **folder icon** and go to your Thunderbird folder and in `/chrome/icons/default` select `default128.png`. 16 | - In **Description** you can fill in `Thunderbird` as name of the launcher. 17 | - In **Execution** and **Default command** you fill in your Thunderbird folder location like `/home//Apps/thunderbird/thunderbird` where the last "thunderbird" is the run file. 18 | - In **Visibility** you can toggle **Show an animation until the application is visible** and **Show this application in the main menu** `on`. 19 | - Then under that in **Menu** you can choose in which category the launcher is showing, like `Internet`. 20 | - Save by clicking the `Save` button in the top bar of the window. 21 | 22 | **Now you need a dot under the Thunderbird icon when opened in the dock. Edit the desktop entry file:** 23 | - In the left list of **Main menu**, select Thunderbird and scroll down to **Advanced** section and press the icon on the right, this opens **Code** with the desktop entry file visible. 24 | - Go to Code and type a new line in the `Desktop Entry` section: `StartupWMClass=thunderbird-esr` for Thunderbird Extended Support Release (the default download). Code will automatically save the file so just close all and move the Thunderbird icon from Slingshot to the Dock and enjoy the fully working and integrated Thunderbird. 25 | 26 | Use this one line install script to install theme. Just copy the line to your terminal and press enter: 27 | 28 | ```bash 29 | bash <(wget --quiet --output-document - "https://raw.githubusercontent.com/Zonnev/elementaryos-thunderbird-theme/main/install.sh") 30 | ``` 31 | 32 | ## ➕ After installation 33 | 34 | 1. In `Settings > Configuration editor` you can make the bottom window corners rounded by setting `widget.gtk.rounded-bottom-corners.enabled` to `true`. 35 | 2. If you installed the **Flatpak** version of Thunderbird and you want to make use of the elementary OS **accent colors**, you have to copy the `usr/share/themes` folder to `home/.themes`: 36 | - Type or copy-paste in Terminal `mkdir -p $HOME/.themes` to make the folder. 37 | - Then type `cp -r /usr/share/themes/* $HOME/.themes/` to copy the folder and place the files in the folder you have made. 38 | - And after that `flatpak override --user org.mozilla.Thunderbird --filesystem=$HOME/.themes` to make Flatpak version follow the elementary OS style sheets in the folder. 39 | 40 | ## ✖️ Uninstall this theme 41 | 42 | To uninstall this theme, do the following: 43 | 1. Go to `Settings > Configuration editor`, Configuration Editor is the last option in Settings. 44 | 2. Search for `toolkit.legacyUserProfileCustomizations.stylesheets` and put it on `false`. Then restart the Thunderbird: it does not show the theme anymore. 45 | 46 | You can now delete the chrome folder(s) by doing the following: 47 | 1. Find the `chrome` folder(s) in `~/.var/app/org.mozilla.Thunderbird/.thunderbird//` if you installed as Flatpak, or in `~/.thunderbird//` if you installed the download package. 48 | 2. Delete the `chrome` folder in your profile folder(s). After this you have completely uninstalled the theme. 49 | 50 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Mozilla Public License Version 2.0 2 | ================================== 3 | 4 | 1. Definitions 5 | -------------- 6 | 7 | 1.1. "Contributor" 8 | means each individual or legal entity that creates, contributes to 9 | the creation of, or owns Covered Software. 10 | 11 | 1.2. "Contributor Version" 12 | means the combination of the Contributions of others (if any) used 13 | by a Contributor and that particular Contributor's Contribution. 14 | 15 | 1.3. "Contribution" 16 | means Covered Software of a particular Contributor. 17 | 18 | 1.4. "Covered Software" 19 | means Source Code Form to which the initial Contributor has attached 20 | the notice in Exhibit A, the Executable Form of such Source Code 21 | Form, and Modifications of such Source Code Form, in each case 22 | including portions thereof. 23 | 24 | 1.5. "Incompatible With Secondary Licenses" 25 | means 26 | 27 | (a) that the initial Contributor has attached the notice described 28 | in Exhibit B to the Covered Software; or 29 | 30 | (b) that the Covered Software was made available under the terms of 31 | version 1.1 or earlier of the License, but not also under the 32 | terms of a Secondary License. 33 | 34 | 1.6. "Executable Form" 35 | means any form of the work other than Source Code Form. 36 | 37 | 1.7. "Larger Work" 38 | means a work that combines Covered Software with other material, in 39 | a separate file or files, that is not Covered Software. 40 | 41 | 1.8. "License" 42 | means this document. 43 | 44 | 1.9. "Licensable" 45 | means having the right to grant, to the maximum extent possible, 46 | whether at the time of the initial grant or subsequently, any and 47 | all of the rights conveyed by this License. 48 | 49 | 1.10. "Modifications" 50 | means any of the following: 51 | 52 | (a) any file in Source Code Form that results from an addition to, 53 | deletion from, or modification of the contents of Covered 54 | Software; or 55 | 56 | (b) any new file in Source Code Form that contains any Covered 57 | Software. 58 | 59 | 1.11. "Patent Claims" of a Contributor 60 | means any patent claim(s), including without limitation, method, 61 | process, and apparatus claims, in any patent Licensable by such 62 | Contributor that would be infringed, but for the grant of the 63 | License, by the making, using, selling, offering for sale, having 64 | made, import, or transfer of either its Contributions or its 65 | Contributor Version. 66 | 67 | 1.12. "Secondary License" 68 | means either the GNU General Public License, Version 2.0, the GNU 69 | Lesser General Public License, Version 2.1, the GNU Affero General 70 | Public License, Version 3.0, or any later versions of those 71 | licenses. 72 | 73 | 1.13. "Source Code Form" 74 | means the form of the work preferred for making modifications. 75 | 76 | 1.14. "You" (or "Your") 77 | means an individual or a legal entity exercising rights under this 78 | License. For legal entities, "You" includes any entity that 79 | controls, is controlled by, or is under common control with You. For 80 | purposes of this definition, "control" means (a) the power, direct 81 | or indirect, to cause the direction or management of such entity, 82 | whether by contract or otherwise, or (b) ownership of more than 83 | fifty percent (50%) of the outstanding shares or beneficial 84 | ownership of such entity. 85 | 86 | 2. License Grants and Conditions 87 | -------------------------------- 88 | 89 | 2.1. Grants 90 | 91 | Each Contributor hereby grants You a world-wide, royalty-free, 92 | non-exclusive license: 93 | 94 | (a) under intellectual property rights (other than patent or trademark) 95 | Licensable by such Contributor to use, reproduce, make available, 96 | modify, display, perform, distribute, and otherwise exploit its 97 | Contributions, either on an unmodified basis, with Modifications, or 98 | as part of a Larger Work; and 99 | 100 | (b) under Patent Claims of such Contributor to make, use, sell, offer 101 | for sale, have made, import, and otherwise transfer either its 102 | Contributions or its Contributor Version. 103 | 104 | 2.2. Effective Date 105 | 106 | The licenses granted in Section 2.1 with respect to any Contribution 107 | become effective for each Contribution on the date the Contributor first 108 | distributes such Contribution. 109 | 110 | 2.3. Limitations on Grant Scope 111 | 112 | The licenses granted in this Section 2 are the only rights granted under 113 | this License. No additional rights or licenses will be implied from the 114 | distribution or licensing of Covered Software under this License. 115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a 116 | Contributor: 117 | 118 | (a) for any code that a Contributor has removed from Covered Software; 119 | or 120 | 121 | (b) for infringements caused by: (i) Your and any other third party's 122 | modifications of Covered Software, or (ii) the combination of its 123 | Contributions with other software (except as part of its Contributor 124 | Version); or 125 | 126 | (c) under Patent Claims infringed by Covered Software in the absence of 127 | its Contributions. 128 | 129 | This License does not grant any rights in the trademarks, service marks, 130 | or logos of any Contributor (except as may be necessary to comply with 131 | the notice requirements in Section 3.4). 132 | 133 | 2.4. Subsequent Licenses 134 | 135 | No Contributor makes additional grants as a result of Your choice to 136 | distribute the Covered Software under a subsequent version of this 137 | License (see Section 10.2) or under the terms of a Secondary License (if 138 | permitted under the terms of Section 3.3). 139 | 140 | 2.5. Representation 141 | 142 | Each Contributor represents that the Contributor believes its 143 | Contributions are its original creation(s) or it has sufficient rights 144 | to grant the rights to its Contributions conveyed by this License. 145 | 146 | 2.6. Fair Use 147 | 148 | This License is not intended to limit any rights You have under 149 | applicable copyright doctrines of fair use, fair dealing, or other 150 | equivalents. 151 | 152 | 2.7. Conditions 153 | 154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted 155 | in Section 2.1. 156 | 157 | 3. Responsibilities 158 | ------------------- 159 | 160 | 3.1. Distribution of Source Form 161 | 162 | All distribution of Covered Software in Source Code Form, including any 163 | Modifications that You create or to which You contribute, must be under 164 | the terms of this License. You must inform recipients that the Source 165 | Code Form of the Covered Software is governed by the terms of this 166 | License, and how they can obtain a copy of this License. You may not 167 | attempt to alter or restrict the recipients' rights in the Source Code 168 | Form. 169 | 170 | 3.2. Distribution of Executable Form 171 | 172 | If You distribute Covered Software in Executable Form then: 173 | 174 | (a) such Covered Software must also be made available in Source Code 175 | Form, as described in Section 3.1, and You must inform recipients of 176 | the Executable Form how they can obtain a copy of such Source Code 177 | Form by reasonable means in a timely manner, at a charge no more 178 | than the cost of distribution to the recipient; and 179 | 180 | (b) You may distribute such Executable Form under the terms of this 181 | License, or sublicense it under different terms, provided that the 182 | license for the Executable Form does not attempt to limit or alter 183 | the recipients' rights in the Source Code Form under this License. 184 | 185 | 3.3. Distribution of a Larger Work 186 | 187 | You may create and distribute a Larger Work under terms of Your choice, 188 | provided that You also comply with the requirements of this License for 189 | the Covered Software. If the Larger Work is a combination of Covered 190 | Software with a work governed by one or more Secondary Licenses, and the 191 | Covered Software is not Incompatible With Secondary Licenses, this 192 | License permits You to additionally distribute such Covered Software 193 | under the terms of such Secondary License(s), so that the recipient of 194 | the Larger Work may, at their option, further distribute the Covered 195 | Software under the terms of either this License or such Secondary 196 | License(s). 197 | 198 | 3.4. Notices 199 | 200 | You may not remove or alter the substance of any license notices 201 | (including copyright notices, patent notices, disclaimers of warranty, 202 | or limitations of liability) contained within the Source Code Form of 203 | the Covered Software, except that You may alter any license notices to 204 | the extent required to remedy known factual inaccuracies. 205 | 206 | 3.5. Application of Additional Terms 207 | 208 | You may choose to offer, and to charge a fee for, warranty, support, 209 | indemnity or liability obligations to one or more recipients of Covered 210 | Software. However, You may do so only on Your own behalf, and not on 211 | behalf of any Contributor. You must make it absolutely clear that any 212 | such warranty, support, indemnity, or liability obligation is offered by 213 | You alone, and You hereby agree to indemnify every Contributor for any 214 | liability incurred by such Contributor as a result of warranty, support, 215 | indemnity or liability terms You offer. You may include additional 216 | disclaimers of warranty and limitations of liability specific to any 217 | jurisdiction. 218 | 219 | 4. Inability to Comply Due to Statute or Regulation 220 | --------------------------------------------------- 221 | 222 | If it is impossible for You to comply with any of the terms of this 223 | License with respect to some or all of the Covered Software due to 224 | statute, judicial order, or regulation then You must: (a) comply with 225 | the terms of this License to the maximum extent possible; and (b) 226 | describe the limitations and the code they affect. Such description must 227 | be placed in a text file included with all distributions of the Covered 228 | Software under this License. Except to the extent prohibited by statute 229 | or regulation, such description must be sufficiently detailed for a 230 | recipient of ordinary skill to be able to understand it. 231 | 232 | 5. Termination 233 | -------------- 234 | 235 | 5.1. The rights granted under this License will terminate automatically 236 | if You fail to comply with any of its terms. However, if You become 237 | compliant, then the rights granted under this License from a particular 238 | Contributor are reinstated (a) provisionally, unless and until such 239 | Contributor explicitly and finally terminates Your grants, and (b) on an 240 | ongoing basis, if such Contributor fails to notify You of the 241 | non-compliance by some reasonable means prior to 60 days after You have 242 | come back into compliance. Moreover, Your grants from a particular 243 | Contributor are reinstated on an ongoing basis if such Contributor 244 | notifies You of the non-compliance by some reasonable means, this is the 245 | first time You have received notice of non-compliance with this License 246 | from such Contributor, and You become compliant prior to 30 days after 247 | Your receipt of the notice. 248 | 249 | 5.2. If You initiate litigation against any entity by asserting a patent 250 | infringement claim (excluding declaratory judgment actions, 251 | counter-claims, and cross-claims) alleging that a Contributor Version 252 | directly or indirectly infringes any patent, then the rights granted to 253 | You by any and all Contributors for the Covered Software under Section 254 | 2.1 of this License shall terminate. 255 | 256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all 257 | end user license agreements (excluding distributors and resellers) which 258 | have been validly granted by You or Your distributors under this License 259 | prior to termination shall survive termination. 260 | 261 | ************************************************************************ 262 | * * 263 | * 6. Disclaimer of Warranty * 264 | * ------------------------- * 265 | * * 266 | * Covered Software is provided under this License on an "as is" * 267 | * basis, without warranty of any kind, either expressed, implied, or * 268 | * statutory, including, without limitation, warranties that the * 269 | * Covered Software is free of defects, merchantable, fit for a * 270 | * particular purpose or non-infringing. The entire risk as to the * 271 | * quality and performance of the Covered Software is with You. * 272 | * Should any Covered Software prove defective in any respect, You * 273 | * (not any Contributor) assume the cost of any necessary servicing, * 274 | * repair, or correction. This disclaimer of warranty constitutes an * 275 | * essential part of this License. No use of any Covered Software is * 276 | * authorized under this License except under this disclaimer. * 277 | * * 278 | ************************************************************************ 279 | 280 | ************************************************************************ 281 | * * 282 | * 7. Limitation of Liability * 283 | * -------------------------- * 284 | * * 285 | * Under no circumstances and under no legal theory, whether tort * 286 | * (including negligence), contract, or otherwise, shall any * 287 | * Contributor, or anyone who distributes Covered Software as * 288 | * permitted above, be liable to You for any direct, indirect, * 289 | * special, incidental, or consequential damages of any character * 290 | * including, without limitation, damages for lost profits, loss of * 291 | * goodwill, work stoppage, computer failure or malfunction, or any * 292 | * and all other commercial damages or losses, even if such party * 293 | * shall have been informed of the possibility of such damages. This * 294 | * limitation of liability shall not apply to liability for death or * 295 | * personal injury resulting from such party's negligence to the * 296 | * extent applicable law prohibits such limitation. Some * 297 | * jurisdictions do not allow the exclusion or limitation of * 298 | * incidental or consequential damages, so this exclusion and * 299 | * limitation may not apply to You. * 300 | * * 301 | ************************************************************************ 302 | 303 | 8. Litigation 304 | ------------- 305 | 306 | Any litigation relating to this License may be brought only in the 307 | courts of a jurisdiction where the defendant maintains its principal 308 | place of business and such litigation shall be governed by laws of that 309 | jurisdiction, without reference to its conflict-of-law provisions. 310 | Nothing in this Section shall prevent a party's ability to bring 311 | cross-claims or counter-claims. 312 | 313 | 9. Miscellaneous 314 | ---------------- 315 | 316 | This License represents the complete agreement concerning the subject 317 | matter hereof. If any provision of this License is held to be 318 | unenforceable, such provision shall be reformed only to the extent 319 | necessary to make it enforceable. Any law or regulation which provides 320 | that the language of a contract shall be construed against the drafter 321 | shall not be used to construe this License against a Contributor. 322 | 323 | 10. Versions of the License 324 | --------------------------- 325 | 326 | 10.1. New Versions 327 | 328 | Mozilla Foundation is the license steward. Except as provided in Section 329 | 10.3, no one other than the license steward has the right to modify or 330 | publish new versions of this License. Each version will be given a 331 | distinguishing version number. 332 | 333 | 10.2. Effect of New Versions 334 | 335 | You may distribute the Covered Software under the terms of the version 336 | of the License under which You originally received the Covered Software, 337 | or under the terms of any subsequent version published by the license 338 | steward. 339 | 340 | 10.3. Modified Versions 341 | 342 | If you create software not governed by this License, and you want to 343 | create a new license for such software, you may create and use a 344 | modified version of this License if you rename the license and remove 345 | any references to the name of the license steward (except to note that 346 | such modified license differs from this License). 347 | 348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary 349 | Licenses 350 | 351 | If You choose to distribute Source Code Form that is Incompatible With 352 | Secondary Licenses under the terms of this version of the License, the 353 | notice described in Exhibit B of this License must be attached. 354 | 355 | Exhibit A - Source Code Form License Notice 356 | ------------------------------------------- 357 | 358 | This Source Code Form is subject to the terms of the Mozilla Public 359 | License, v. 2.0. If a copy of the MPL was not distributed with this 360 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 361 | 362 | If it is not possible or desirable to put the notice in a particular 363 | file, then You may include the notice in a location (such as a LICENSE 364 | file in a relevant directory) where a recipient would be likely to look 365 | for such a notice. 366 | 367 | You may add additional accurate notices of copyright ownership. 368 | 369 | Exhibit B - "Incompatible With Secondary Licenses" Notice 370 | --------------------------------------------------------- 371 | 372 | This Source Code Form is "Incompatible With Secondary Licenses", as 373 | defined by the Mozilla Public License, v. 2.0. 374 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 | 7 | set -e 8 | 9 | GITHUB_BRANCH_NAME="main" 10 | GITHUB_PROJECT_NAME="Zonnev/elementaryos-thunderbird-theme" 11 | GITHUB_URL="https://github.com" 12 | GITHUB_URL_RAW="https://raw.githubusercontent.com" 13 | 14 | function getFlatpakProcessIdCommand { 15 | local FLATPAK_ID="${1}" 16 | echo "flatpak ps --columns=pid,application | grep \"${FLATPAK_ID}\" | cut -f1" 17 | } 18 | 19 | declare -a APPLICATIONS 20 | declare -A APPLICATIONS_PROCESS_ID 21 | declare -A APPLICATIONS_PROFILES_ROOTS 22 | 23 | DEFAULT_APPLICATION="🐦 Thunderbird" 24 | 25 | APPLICATION="${DEFAULT_APPLICATION}" 26 | APPLICATIONS+=("${APPLICATION}") 27 | APPLICATIONS_PROCESS_ID["${APPLICATION}"]='pidof "thunderbird" || exit 0' 28 | APPLICATIONS_PROFILES_ROOTS["${APPLICATION}"]="${HOME}/.thunderbird" 29 | 30 | FLATPAK_ID="org.mozilla.Thunderbird" 31 | APPLICATION="🐦 Thunderbird (📦 Flatpak)" 32 | APPLICATIONS+=("${APPLICATION}") 33 | APPLICATIONS_PROCESS_ID["${APPLICATION}"]="$(getFlatpakProcessIdCommand "${FLATPAK_ID}")" 34 | APPLICATIONS_PROFILES_ROOTS["${APPLICATION}"]="${HOME}/.var/app/${FLATPAK_ID}/.thunderbird" 35 | 36 | declare -a LAYOUTS 37 | declare -A LAYOUTS_PATHS 38 | declare -A LAYOUTS_SETTINGS 39 | declare -A LAYOUTS_TITLEBARS 40 | 41 | LAYOUT="Elementary" 42 | LAYOUTS+=("${LAYOUT}") 43 | LAYOUTS_PATHS["${LAYOUT}"]="Elementary" 44 | LAYOUTS_SETTINGS["${LAYOUT}"]="'close:maximize'" 45 | LAYOUTS_TITLEBARS["${LAYOUT}"]="[⨯ — ⤢]" 46 | 47 | LAYOUT="Elementary Reversed" 48 | LAYOUTS+=("${LAYOUT}") 49 | LAYOUTS_PATHS["${LAYOUT}"]="Elementary%20Reversed" 50 | LAYOUTS_SETTINGS["${LAYOUT}"]="'maximize:close'" 51 | LAYOUTS_TITLEBARS["${LAYOUT}"]="[⤢ — ⨯]" 52 | 53 | LAYOUT="Close Only Left" 54 | LAYOUTS+=("${LAYOUT}") 55 | LAYOUTS_PATHS["${LAYOUT}"]="Close%20Only%20Left" 56 | LAYOUTS_SETTINGS["${LAYOUT}"]="'close:'" 57 | LAYOUTS_TITLEBARS["${LAYOUT}"]="[⨯ — ]" 58 | 59 | LAYOUT="Close Only Right" 60 | LAYOUTS+=("${LAYOUT}") 61 | LAYOUTS_PATHS["${LAYOUT}"]="Close%20Only%20Right" 62 | LAYOUTS_SETTINGS["${LAYOUT}"]="':close'" 63 | LAYOUTS_TITLEBARS["${LAYOUT}"]="[ — ⨯]" 64 | 65 | LAYOUT="Minimize Left" 66 | LAYOUTS+=("${LAYOUT}") 67 | LAYOUTS_PATHS["${LAYOUT}"]="Minimize%20Left" 68 | LAYOUTS_SETTINGS["${LAYOUT}"]="'close,minimize:maximize'" 69 | LAYOUTS_TITLEBARS["${LAYOUT}"]="[⨯⤓ — ⤢]" 70 | 71 | LAYOUT="Minimize Right" 72 | LAYOUTS+=("${LAYOUT}") 73 | LAYOUTS_PATHS["${LAYOUT}"]="Minimize%20Right" 74 | LAYOUTS_SETTINGS["${LAYOUT}"]="'close:minimize,maximize'" 75 | LAYOUTS_TITLEBARS["${LAYOUT}"]="[⨯ — ⤓⤢]" 76 | 77 | LAYOUT="MacOS" 78 | LAYOUTS+=("${LAYOUT}") 79 | LAYOUTS_PATHS["${LAYOUT}"]="macOS" 80 | LAYOUTS_SETTINGS["${LAYOUT}"]="'close,minimize,maximize'" 81 | LAYOUTS_TITLEBARS["${LAYOUT}"]="[⨯⤓⤢ — ]" 82 | 83 | LAYOUT="Ubuntu" 84 | LAYOUTS+=("${LAYOUT}") 85 | LAYOUTS_PATHS["${LAYOUT}"]="Ubuntu" 86 | LAYOUTS_SETTINGS["${LAYOUT}"]="'close,maximize,minimize'" 87 | LAYOUTS_TITLEBARS["${LAYOUT}"]="[⨯⤢⤓ — ]" 88 | 89 | LAYOUT="Windows" 90 | LAYOUTS+=("${LAYOUT}") 91 | LAYOUTS_PATHS["${LAYOUT}"]="Windows" 92 | LAYOUTS_SETTINGS["${LAYOUT}"]="':minimize,maximize,close'" 93 | LAYOUTS_TITLEBARS["${LAYOUT}"]="[ — ⤓⤢⨯]" 94 | 95 | LAYOUT="Replace Maximize to Minimize" 96 | LAYOUTS+=("${LAYOUT}") 97 | LAYOUTS_PATHS["${LAYOUT}"]="Replace%20Maximize%20to%20Minimize" 98 | LAYOUTS_SETTINGS["${LAYOUT}"]="'close:minimize'" 99 | LAYOUTS_TITLEBARS["${LAYOUT}"]="[⨯ — ⤓]" 100 | 101 | APP_EXECUTABLE="install.sh" 102 | APP_NAME="🐦 Thunderbird Elementary Theme installation" 103 | APP_HELP_MESSAGE="Installation script is recommended to install 🐦 Thunderbird Elementary Theme. 104 | 105 | Theme is set of stylesheets ('userChrome.css' file). To apply theme, stylesheets 106 | need to be placed at 'chrome' directory inside user profile. That is what 107 | installation script will do. 108 | 109 | Using custom stylesheets also requires preference 110 | 'toolkit.legacyUserProfileCustomizations.stylesheets' to be enabled. By default 111 | it is turned off, so installation script will turn it on. Changing preference 112 | value requires no active application processes, so installation script ma ask user 113 | to close application windows. 114 | 115 | Theme requires different stylesheets depending on window controls layout. Window 116 | controls layout defines which of buttons (⨯⤓⤢) will be placed at window title 117 | bar, and how these buttons will placed (left or right, in which order). 118 | Installation script will detect current window controls layout and select 119 | corresponding stylesheets. Detection requires gsetting 120 | (https://www.linux.org/docs/man1/gsettings.html) to be installed. 121 | Window controls layout may be changed with Pantheon Tweaks application 122 | (${GITHUB_URL}/pantheon-tweaks/pantheon-tweaks). 123 | 124 | Supported window controls layouts are: 125 | 126 | $( 127 | for INDEX in "${!LAYOUTS[@]}"; do 128 | LAYOUT="${LAYOUTS[${INDEX}]}" 129 | TITLEBAR="${LAYOUTS_TITLEBARS[${LAYOUT}]}" 130 | printf "%3s. %-30s %s\n" "$((INDEX + 1))" "${LAYOUT}" "${TITLEBAR}" 131 | done 132 | ) 133 | 134 | Installation script will select corresponding stylesheet. 135 | 136 | Installation script supports: 137 | 138 | $( 139 | for INDEX in "${!APPLICATIONS[@]}"; do 140 | printf "%3s. %s\n" "$((INDEX + 1))" "${APPLICATIONS[${INDEX}]}" 141 | done 142 | ) 143 | 144 | For best experience with theme it is recommended to use ${DEFAULT_APPLICATION}. 145 | Other installations has limited support. We welcome contributions like editing 146 | a 'userChrome.css', for example to make a fully supported 📦 Flatpak version 147 | possible. Thanks in advance. 148 | 149 | Theme homepage ${GITHUB_URL}/${GITHUB_PROJECT_NAME} 150 | Theme issues ${GITHUB_URL}/${GITHUB_PROJECT_NAME}/issues 151 | 152 | Usage: ${APP_EXECUTABLE} [OPTIONS] 153 | 154 | OPTIONS: 155 | 156 | -h, --help 157 | 158 | Print this help message and exit. 159 | 160 | Example: ${APP_EXECUTABLE} -h 161 | Example: ${APP_EXECUTABLE} --help 162 | 163 | --application-profile 164 | 165 | Install theme to specified thunderbird profile only. Multiple profiles may 166 | be specified. 167 | 168 | Example: ${APP_EXECUTABLE} --application-profile /profile 169 | Example: ${APP_EXECUTABLE} --application-profile /first/profile --application-profile /second/profile 170 | 171 | --controls-layout 172 | 173 | Forces installation of theme for specified window controls layout. Layout may 174 | be specified by name or number. By default installation script will detect 175 | window controls layout, this option disables auto-detection. 176 | 177 | Example: ${APP_EXECUTABLE} --controls-layout 'Elementary Reversed' 178 | Example: ${APP_EXECUTABLE} --controls-layout 2 179 | 180 | --github-branch-name 181 | 182 | Overrides theme branch name at ${GITHUB_URL}. Instalation script will copy theme 183 | stylesheets using this branch name. By default it is ${GITHUB_BRANCH_NAME}. 184 | This options is useful for testing purposes. 185 | 186 | Example: ${APP_EXECUTABLE} --github-branch-name '${GITHUB_BRANCH_NAME}' 187 | 188 | --github-project-name 189 | 190 | Overrides theme project name at ${GITHUB_URL}. Instalation script will copy theme 191 | stylesheets using this project name. By default it is ${GITHUB_PROJECT_NAME}. 192 | This options is useful for testing purposes. 193 | 194 | Example: ${APP_EXECUTABLE} --github-project-name '${GITHUB_PROJECT_NAME}' 195 | 196 | --skip-preferences-patch 197 | 198 | Disables patching of 'toolkit.legacyUserProfileCustomizations.stylesheets' preference. 199 | This preference must be turned on to use theme stylesheets. Script default behaviour is 200 | turn this preference on if not yet. 201 | 202 | Patching application preferences requires no application process to be running. By 203 | default script will ask user to shut down all application windows before patching 204 | preferences, so when this option is used, script won't ask user to close application 205 | windows. 206 | 207 | Example: ${APP_EXECUTABLE} --skip-preferences-patch 208 | 209 | --update 210 | 211 | Enable update mode, in this mode script installs theme stylesheets only at 212 | application profiles, which contains theme stylesheets already. Profiles without 213 | stylesheets will be ignored. 214 | 215 | This also enables '--skip-preferences-patch' option. 216 | 217 | Example: ${APP_EXECUTABLE} --update 218 | " 219 | 220 | declare -a APPLICATION_PROFILES 221 | APPLICATION_PROFILES=() 222 | CONTROLS_LAYOUT="" 223 | PATCH_PREFERENCES="yes" 224 | UPDATE_ONLY="no" 225 | 226 | LOG_PADDING="" 227 | 228 | function increaseLogPadding { 229 | LOG_PADDING="${LOG_PADDING} " 230 | } 231 | 232 | function decreaseLogPadding { 233 | LOG_PADDING="${LOG_PADDING:0:-2}" 234 | } 235 | 236 | function info { 237 | local MESSAGE="${@}" 238 | echo "${LOG_PADDING}${MESSAGE}" 239 | } 240 | 241 | function error { 242 | local MESSAGE="${@}" 243 | echo "${LOG_PADDING}${MESSAGE}" >&2 244 | } 245 | 246 | function replaceHomedir { 247 | local DIR="${@}" 248 | if [ "${DIR:0:${#HOME}}" == "${HOME}" ]; then 249 | echo "~${DIR:${#HOME}}" 250 | else 251 | echo "${DIR}" 252 | fi 253 | } 254 | 255 | function parseWindowControlsLayout { 256 | local LAYOUT="${1}" 257 | for INDEX in "${!LAYOUTS[@]}"; do 258 | if [ $((${INDEX} + 1)) == "${LAYOUT}" ]; then 259 | echo "${LAYOUTS[${INDEX}]}" 260 | break 261 | fi 262 | if [ "${LAYOUTS[${INDEX}]}" == "${LAYOUT}" ]; then 263 | echo "${LAYOUT}" 264 | break 265 | fi 266 | done 267 | } 268 | 269 | function parseOptions { 270 | while [ $# -ne 0 ]; do 271 | case "${1}" in 272 | "-h" | "--help") 273 | info "${APP_HELP_MESSAGE}" 274 | exit 0 275 | ;; 276 | 277 | "--application-profile") 278 | APPLICATION_PROFILES+=("${2}") 279 | shift 2 280 | ;; 281 | 282 | "--controls-layout") 283 | case "${2}" in 284 | # empty string 285 | "" | "--"*) 286 | error "💥 Controls layout is not specified." 287 | error "❓ Try '${APP_EXECUTABLE} --help' to see available controls layouts." 288 | exit 1 289 | ;; 290 | 291 | # not a number 292 | *[!0-9]*) 293 | CONTROLS_LAYOUT="$(parseWindowControlsLayout "${2}")" 294 | if [ -z "${CONTROLS_LAYOUT}" ]; then 295 | error "💥 Unknown controls layout '${2}' is specified." 296 | error "❓ Try '${APP_EXECUTABLE} --help' to see available controls layouts." 297 | exit 1 298 | fi 299 | shift 2 300 | ;; 301 | 302 | # number 303 | *) 304 | CONTROLS_LAYOUT="$(parseWindowControlsLayout "${2}")" 305 | if [ -z "${CONTROLS_LAYOUT}" ]; then 306 | error "💥 Unknown controls layout number '${2}' is specified." 307 | error "❓ Try '${APP_EXECUTABLE} --help' to see available controls layouts." 308 | exit 1 309 | fi 310 | shift 2 311 | ;; 312 | esac 313 | ;; 314 | 315 | "--github-branch-name") 316 | GITHUB_BRANCH_NAME="${2}" 317 | shift 2 318 | ;; 319 | 320 | "--github-project-name") 321 | GITHUB_PROJECT_NAME="${2}" 322 | shift 2 323 | ;; 324 | 325 | "--skip-preferences-patch") 326 | PATCH_PREFERENCES="no" 327 | shift 328 | ;; 329 | 330 | "--update") 331 | PATCH_PREFERENCES="no" 332 | UPDATE_ONLY="yes" 333 | shift 334 | ;; 335 | 336 | *) 337 | error "💥 Unknown option: ${1}" 338 | error "❓ Try '${APP_EXECUTABLE} --help' to see available options." 339 | exit 1 340 | ;; 341 | esac 342 | done 343 | } 344 | 345 | function detectApplicationsProfiles { 346 | function filterApplicationProfiles { 347 | if [ "${UPDATE_ONLY}" == "yes" ]; then 348 | while IFS='$\n' read -r APPLICATION_PROFILE; do 349 | if [ -d "${APPLICATION_PROFILE}/chrome" ] && [ -f "${APPLICATION_PROFILE}/chrome/userChrome.css" ]; then 350 | echo "${APPLICATION_PROFILE}" 351 | fi 352 | done 353 | else 354 | cat 355 | fi 356 | } 357 | 358 | function findApplicationProfiles { 359 | local FIREFOX_DIR="${1}" 360 | if [ -d "${FIREFOX_DIR}" ]; then 361 | PROFILES_FILE="${FIREFOX_DIR}/profiles.ini" 362 | if [ -f "${PROFILES_FILE}" ]; then 363 | grep -E "^Path=" "${PROFILES_FILE}" | 364 | cut -d "=" -f2- | 365 | xargs -I '{}' echo "${FIREFOX_DIR}/{}" 366 | else 367 | find "${FIREFOX_DIR}" -mindepth 1 -maxdepth 1 -type d 368 | fi 369 | fi 370 | } 371 | 372 | if [ ${#APPLICATION_PROFILES[@]} -eq 0 ]; then 373 | OLD_IFS="${IFS}" 374 | IFS=$'\n' 375 | 376 | info "🔍 Searching for application profiles:" 377 | increaseLogPadding 378 | for APPLICATION in "${APPLICATIONS[@]}"; do 379 | declare -a FOUND_PROFILES 380 | FOUND_PROFILES=() 381 | for APPLICATION_PROFILES_ROOT in ${APPLICATIONS_PROFILES_ROOTS["${APPLICATION}"]}; do 382 | FOUND_PROFILES+=($(findApplicationProfiles "${APPLICATION_PROFILES_ROOT}" | filterApplicationProfiles)) 383 | done 384 | if [ "${#FOUND_PROFILES[@]}" -gt 0 ]; then 385 | if [ "${#FOUND_PROFILES[@]}" -eq 1 ]; then 386 | info "✅ Found ${APPLICATION} profile:" 387 | else 388 | info "✅ Found ${APPLICATION} profiles:" 389 | fi 390 | increaseLogPadding 391 | for FOUND_PROFILE in "${FOUND_PROFILES[@]}"; do 392 | info "📁 $(replaceHomedir ${FOUND_PROFILE})" 393 | done 394 | decreaseLogPadding 395 | APPLICATION_PROFILES+=("${FOUND_PROFILES[@]}") 396 | fi 397 | done 398 | decreaseLogPadding 399 | IFS="${OLD_IFS}" 400 | fi 401 | 402 | if [ "${#APPLICATION_PROFILES[@]}" -eq 0 ]; then 403 | error "💥 Unable to detect applications profiles." 404 | error "💥 Please, specify profiles with '--application-profile' option." 405 | error "❓ Try '${APP_EXECUTABLE} --help' to see manual." 406 | exit 1 407 | fi 408 | } 409 | 410 | function installThemeAtApplicationProfile { 411 | function detectApplication { 412 | local APPLICATION_PROFILE="${1}" 413 | for APPLICATION in "${APPLICATIONS[@]}"; do 414 | for APPLICATION_PROFILES_ROOT in ${APPLICATIONS_PROFILES_ROOTS["${APPLICATION}"]}; do 415 | APPLICATION_PROFILES_ROOT="${APPLICATION_PROFILES_ROOT}/" 416 | if [ "${APPLICATION_PROFILE:0:${#APPLICATION_PROFILES_ROOT}}" == "${APPLICATION_PROFILES_ROOT}" ]; then 417 | echo "${APPLICATION}" 418 | return 0 419 | fi 420 | done 421 | done 422 | echo "${DEFAULT_APPLICATION}" 423 | } 424 | 425 | function getThunderbirdPreference { 426 | local APPLICATION_PROFILE="${1}" 427 | local PREFERENCES_FILE="${APPLICATION_PROFILE}/prefs.js" 428 | 429 | if [ -f "${PREFERENCES_FILE}" ]; then 430 | local PREFERENCE="${2}" 431 | local MATCH=$( 432 | grep "user_pref(\"${PREFERENCE}\"," "${PREFERENCES_FILE}" || echo "" 433 | ) 434 | if [ ! -z "${MATCH}" ]; then 435 | local CURRENT_VALUE="${MATCH:$((14 + ${#PREFERENCE})):-2}" 436 | echo "${CURRENT_VALUE}" 437 | else 438 | echo "" 439 | fi 440 | fi 441 | } 442 | 443 | function setThunderbirdPreference { 444 | local APPLICATION_PROFILE="${1}" 445 | local PREFERENCES_FILE="${APPLICATION_PROFILE}/prefs.js" 446 | local APPLICATION=$(detectApplication "${APPLICATION_PROFILE}") 447 | local PREFERENCE="${2}" 448 | local CURRENT_VALUE=$(getThunderbirdPreference "${PREFERENCE}") 449 | local TARGET_VALUE="${3}" 450 | 451 | if [ "${TARGET_VALUE}" == "${CURRENT_VALUE}" ]; then 452 | return 0 453 | fi 454 | 455 | info "📝 Changing preference '${PREFERENCE}' to '${TARGET_VALUE}'" 456 | 457 | if [ ! -z "$(bash -c "${APPLICATIONS_PROCESS_ID[${APPLICATION}]}")" ]; then 458 | info "❓ Please, close ${APPLICATION} windows to proceed ...." 459 | while [ ! -z "$(bash -c "${APPLICATIONS_PROCESS_ID[${APPLICATION}]}")" ]; do 460 | sleep 1 461 | done 462 | fi 463 | 464 | increaseLogPadding 465 | 466 | local LINE_NUMBER="" 467 | 468 | if [ -f "${PREFERENCES_FILE}" ]; then 469 | LINE_NUMBER=$(grep -n "user_pref(\"${PREFERENCE}\"," "${PREFERENCES_FILE}" | cut -d':' -f1) 470 | fi 471 | 472 | if [ -z "${LINE_NUMBER}" ]; then 473 | echo "user_pref(\"${PREFERENCE}\", ${TARGET_VALUE});" >>"${PREFERENCES_FILE}" 474 | else 475 | sed -i "${LINE_NUMBER}s/.*/user_pref(\"${PREFERENCE}\", "${TARGET_VALUE}");/" "${PREFERENCES_FILE}" 476 | fi 477 | 478 | decreaseLogPadding 479 | } 480 | 481 | function delectControlsLayout { 482 | if [ -z "${CONTROLS_LAYOUT}" ]; then 483 | if ! (which gsettings >/dev/null); then 484 | error "💥 Unable to detect window controls layout. Util gsettings is not installed." 485 | error "💥 Please, install gsettings or specify layout with '--controls-layout' option." 486 | error "❓ Try '${APP_EXECUTABLE} --help' to see manual." 487 | exit 1 488 | fi 489 | 490 | local WM_BUTTON_LAYOUT="$(gsettings get org.gnome.desktop.wm.preferences button-layout)" 491 | local BUTTON_LAYOUT="" 492 | 493 | if [ ! -z "${WM_BUTTON_LAYOUT}" ]; then 494 | BUTTON_LAYOUT="${WM_BUTTON_LAYOUT}" 495 | fi 496 | 497 | if [ ! -z "${BUTTON_LAYOUT}" ]; then 498 | for LAYOUT in "${!LAYOUTS_SETTINGS[@]}"; do 499 | if [ "${BUTTON_LAYOUT}" == "${LAYOUTS_SETTINGS[${LAYOUT}]}" ]; then 500 | CONTROLS_LAYOUT="${LAYOUT}" 501 | break 502 | fi 503 | done 504 | fi 505 | 506 | if [ -z "${CONTROLS_LAYOUT}" ]; then 507 | error "💥 Unable to detect window controls layout." 508 | error "💥 Please, specify layout with '--controls-layout' option." 509 | error "❓ Try '${APP_EXECUTABLE} --help' to see manual." 510 | exit 1 511 | fi 512 | fi 513 | } 514 | 515 | function getApplicationUsesLegacyStylesheets { 516 | local APPLICATION_PROFILE="${1}" 517 | local CURRENT_VALUE=$( 518 | getThunderbirdPreference "${APPLICATION_PROFILE}" \ 519 | "toolkit.legacyUserProfileCustomizations.stylesheets" 520 | ) 521 | case "${CURRENT_VALUE}" in 522 | "true") 523 | echo "yes" 524 | ;; 525 | "false") 526 | echo "no" 527 | ;; 528 | *) 529 | echo "no" 530 | ;; 531 | esac 532 | } 533 | 534 | function setApplicationUsesLegacyStylesheets { 535 | local APPLICATION_PROFILE="${1}" 536 | local CURRENT_VALUE=$(getApplicationUsesLegacyStylesheets "${APPLICATION_PROFILE}") 537 | local TARGET_VALUE="yes" 538 | 539 | if [ "${TARGET_VALUE}" == "${CURRENT_VALUE}" ]; then 540 | return 0 541 | fi 542 | 543 | setThunderbirdPreference "${APPLICATION_PROFILE}" \ 544 | "toolkit.legacyUserProfileCustomizations.stylesheets" "true" 545 | } 546 | 547 | function getApplicationVersion { 548 | local APPLICATION_PROFILE="${1}" 549 | local CURRENT_VALUE=$( 550 | getThunderbirdPreference "${APPLICATION_PROFILE}" "extensions.lastAppVersion" 551 | ) 552 | 553 | if [ -z "${CURRENT_VALUE}" ]; then 554 | echo "" 555 | else 556 | echo $(echo "${CURRENT_VALUE}" | cut -d '"' -f 2) 557 | fi 558 | } 559 | 560 | function installStyleSheets { 561 | local APPLICATION="${1}" 562 | local APPLICATION_PROFILE="${2}" 563 | local LAYOUT_PATH="${3}" 564 | 565 | local BASE_CSS="base.css" 566 | local USER_CHROME_CSS="userChrome.css" 567 | 568 | local CHROME_DIR="${APPLICATION_PROFILE}/chrome" 569 | local BASE_FILE="${CHROME_DIR}/${BASE_CSS}" 570 | local USER_CHROME_FILE="${CHROME_DIR}/${USER_CHROME_CSS}" 571 | 572 | local FILES_URL="${GITHUB_URL_RAW}/${GITHUB_PROJECT_NAME}/${GITHUB_BRANCH_NAME}" 573 | local BASE_URL="${FILES_URL}/${BASE_CSS}" 574 | local USER_CHROME_URL="${FILES_URL}/${LAYOUT_PATH}/${USER_CHROME_CSS}" 575 | 576 | if [ ! -d ${CHROME_DIR} ]; then 577 | info "✅ Creating 📁 $(replaceHomedir "${CHROME_DIR}")" 578 | mkdir -p "${CHROME_DIR}" 579 | fi 580 | 581 | info "⬇️ Downloading ${BASE_CSS} (${BASE_URL})" 582 | wget --output-document="${BASE_FILE}" --quiet "${BASE_URL}" 583 | 584 | info "⬇️ Downloading ${USER_CHROME_CSS} (${USER_CHROME_URL})" 585 | wget --output-document="${USER_CHROME_FILE}" --quiet "${USER_CHROME_URL}" 586 | } 587 | 588 | local APPLICATION_PROFILE="${1}" 589 | local APPLICATION=$(detectApplication "${APPLICATION_PROFILE}") 590 | 591 | info "🔧 Installing theme at ${APPLICATION} profile 📁 $(replaceHomedir ${APPLICATION_PROFILE})" 592 | increaseLogPadding 593 | 594 | if [ "${PATCH_PREFERENCES}" == "yes" ]; then 595 | setApplicationUsesLegacyStylesheets "${APPLICATION_PROFILE}" "yes" 596 | fi 597 | 598 | delectControlsLayout 599 | installStyleSheets "${APPLICATION}" "${APPLICATION_PROFILE}" "${LAYOUTS_PATHS[${CONTROLS_LAYOUT}]}" 600 | 601 | decreaseLogPadding 602 | } 603 | 604 | info "${APP_NAME}" 605 | info "" 606 | parseOptions "${@}" 607 | detectApplicationsProfiles 608 | info "" 609 | for APPLICATION_PROFILE in "${APPLICATION_PROFILES[@]}"; do 610 | installThemeAtApplicationProfile "${APPLICATION_PROFILE}" 611 | info "" 612 | done 613 | info "🎉 Done! Please restart the app for the changes to take effect." 614 | -------------------------------------------------------------------------------- /base.css: -------------------------------------------------------------------------------- 1 | /* This Source Code Form is subject to the terms of the Mozilla Public 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 | 5 | /*** This userChrome is for Thunderbird ***/ 6 | 7 | /* make main window background dark for tiled windows */ 8 | #messengerWindow { 9 | background: black !important; 10 | } 11 | 12 | /****** window controls *******/ 13 | 14 | /* light theme */ 15 | .titlebar-min image { 16 | appearance: none !important; 17 | background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' version='1.1' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cg color='%23bebebe' transform='translate(-733 -157)' id='g1' style='fill:%23333333'%3E%3Cpath d='M740 160v4h-3l3.156 4H737v2h8v-2h-3.156l3.156-4h-3v-4z' fill='%23333333' overflow='visible' style='marker:none;fill:%23333333' id='path1' /%3E%3C/g%3E%3C/svg%3E") !important; 18 | background-repeat: no-repeat !important; 19 | background-position: center !important; 20 | padding: 12px !important; 21 | margin: 1px !important; 22 | border: 1px solid transparent !important; 23 | } 24 | .titlebar-max image { 25 | appearance: none !important; 26 | background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' version='1.1' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cpath id='path1-0' style='fill:%23333333;fill-opacity:1;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;-inkscape-stroke:none' d='M 9.5625 2 C 8.9219462 1.9980564 8.6014518 2.7739255 9.0566406 3.2246094 L 10.216797 4.3730469 L 8.2246094 6.3652344 C 7.9308343 6.6590638 7.9308077 7.1319795 8.2246094 7.4257812 L 8.578125 7.7792969 C 8.8719266 8.0730986 9.3448695 8.0730994 9.6386719 7.7792969 L 11.638672 5.7792969 L 12.755859 6.8847656 C 13.216533 7.3406302 13.998589 7.0152847 14 6.3671875 L 14 2.7519531 C 13.999671 2.33756 13.664392 2.0014067 13.25 2 L 9.5625 2 z M 6.8964844 8 C 6.7047983 7.9999999 6.5121352 8.0738019 6.3652344 8.2207031 L 4.3652344 10.220703 L 3.2480469 9.1152344 C 2.7873733 8.6593698 2.0053172 8.9847153 2.0039062 9.6328125 L 2.0039062 13.248047 C 2.0042352 13.66244 2.3395147 13.998594 2.7539062 14 L 6.4414062 14 C 7.0819596 14.0019 7.4024542 13.226074 6.9472656 12.775391 L 5.7871094 11.626953 L 7.7792969 9.6347656 C 8.0730726 9.3409362 8.0730986 8.8680205 7.7792969 8.5742188 L 7.4257812 8.2207031 C 7.2788804 8.0738023 7.0881704 8.0000001 6.8964844 8 z ' /%3E%3C/svg%3E") !important; 27 | background-repeat: no-repeat !important; 28 | background-position: center !important; 29 | padding: 12px !important; 30 | margin: 1px !important; 31 | border: 1px solid transparent !important; 32 | } 33 | .titlebar-restore image { 34 | appearance: none !important; 35 | background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' version='1.1' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cpath id='path1-0' style='fill:%23333333;fill-opacity:1;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;-inkscape-stroke:none' d='M 12.896484 2 C 12.704798 1.9999999 12.512135 2.0738019 12.365234 2.2207031 L 10.365234 4.2207031 L 9.2480469 3.1152344 C 8.7873733 2.6593698 8.0053172 2.9847153 8.0039062 3.6328125 L 8.0039062 7.2480469 C 8.0042352 7.6624405 8.3395147 7.998594 8.7539062 8 L 12.441406 8 C 13.08196 8.00194 13.402454 7.2260742 12.947266 6.7753906 L 11.787109 5.6269531 L 13.779297 3.6347656 C 14.073073 3.3409362 14.073099 2.8680205 13.779297 2.5742188 L 13.425781 2.2207031 C 13.27888 2.0738023 13.08817 2.0000001 12.896484 2 z M 3.5625 8 C 2.9219466 7.9981 2.6014521 8.7739258 3.0566406 9.2246094 L 4.2167969 10.373047 L 2.2246094 12.365234 C 1.9308337 12.659064 1.9308077 13.13198 2.2246094 13.425781 L 2.578125 13.779297 C 2.8719267 14.073099 3.3448702 14.0731 3.6386719 13.779297 L 5.6386719 11.779297 L 6.7558594 12.884766 C 7.2165329 13.34063 7.998589 13.015285 8 12.367188 L 8 8.7519531 C 7.999671 8.3375595 7.6643916 8.001406 7.25 8 L 3.5625 8 z ' /%3E%3C/svg%3E") !important; 36 | background-repeat: no-repeat !important; 37 | background-position: center !important; 38 | padding: 12px !important; 39 | margin: 1px !important; 40 | border: 1px solid transparent !important; 41 | } 42 | .titlebar-close image { 43 | appearance: none !important; 44 | background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' version='1.1' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cpath id='rect1' style='opacity:1;fill:%23333333;fill-opacity:1;stroke:none;stroke-width:1;stroke-opacity:0.498039;-inkscape-stroke:none' d='M 0.78168445 6.4081552 C 0.64612209 6.2725928 0.45772309 6.1885654 0.2499733 6.1885654 L -0.2499733 6.1885654 C -0.66547288 6.1885654 -0.99989318 6.5229857 -0.99989318 6.9384853 L -0.99989318 10.313815 L -4.3752232 10.313815 C -4.7907228 10.313815 -5.1251431 10.648236 -5.1251431 11.063735 L -5.1251431 11.563682 C -5.1251431 11.979181 -4.7907228 12.313602 -4.3752232 12.313602 L -0.99989318 12.313602 L -0.99989318 15.688932 C -0.99989318 16.104431 -0.66547288 16.438852 -0.2499733 16.438852 L 0.2499733 16.438852 C 0.66547288 16.438852 0.99989318 16.104431 0.99989318 15.688932 L 0.99989318 12.313602 L 4.3752232 12.313602 C 4.7907228 12.313602 5.1251431 11.979181 5.1251431 11.563682 L 5.1251431 11.063735 C 5.1251431 10.648236 4.7907228 10.313815 4.3752232 10.313815 L 0.99989318 10.313815 L 0.99989318 6.9384853 C 0.99989318 6.7307355 0.91724681 6.5437176 0.78168445 6.4081552 z ' transform='rotate(-45)' /%3E%3C/svg%3E") !important; 45 | background-repeat: no-repeat !important; 46 | background-position: center !important; 47 | padding: 12px !important; 48 | margin: 1px !important; 49 | border: 1px solid transparent !important; 50 | } 51 | .titlebar-close:hover image, 52 | .titlebar-min:hover image, 53 | .titlebar-max:hover image, 54 | .titlebar-restore:hover image { 55 | background-color: transparent !important; 56 | } 57 | .titlebar-close:active image, 58 | .titlebar-min:active image, 59 | .titlebar-max:active image, 60 | .titlebar-restore:active image { 61 | background-color: rgba(0,0,0,0.05) !important; 62 | border-radius: 3px !important; 63 | border: 1px solid rgba(0,0,0,0.2) !important; 64 | box-shadow: inset 0px 0px 0px 1px rgba(0,0,0,0.07), 0 1px 0 0 rgba(255,255,255,0.5) !important; 65 | } 66 | 67 | /* dark theme */ 68 | @media (prefers-color-scheme: dark) { 69 | .titlebar-min image { 70 | appearance: none !important; 71 | background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' version='1.1' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cg color='%23bebebe' transform='translate(-733 -157)' id='g1' style='fill:%23ffffff'%3E%3Cpath d='M740 160v4h-3l3.156 4H737v2h8v-2h-3.156l3.156-4h-3v-4z' fill='%23ffffff' overflow='visible' style='marker:none;fill:%23ffffff' id='path1' /%3E%3C/g%3E%3C/svg%3E") !important; 72 | background-repeat: no-repeat !important; 73 | background-position: center !important; 74 | padding: 12px !important; 75 | margin: 1px !important; 76 | border: 1px solid transparent !important; 77 | } 78 | .titlebar-max image { 79 | appearance: none !important; 80 | background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' version='1.1' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cpath id='path1-0' style='fill:%23ffffff;fill-opacity:1;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;-inkscape-stroke:none' d='M 9.5625 2 C 8.9219462 1.9980564 8.6014518 2.7739255 9.0566406 3.2246094 L 10.216797 4.3730469 L 8.2246094 6.3652344 C 7.9308343 6.6590638 7.9308077 7.1319795 8.2246094 7.4257812 L 8.578125 7.7792969 C 8.8719266 8.0730986 9.3448695 8.0730994 9.6386719 7.7792969 L 11.638672 5.7792969 L 12.755859 6.8847656 C 13.216533 7.3406302 13.998589 7.0152847 14 6.3671875 L 14 2.7519531 C 13.999671 2.33756 13.664392 2.0014067 13.25 2 L 9.5625 2 z M 6.8964844 8 C 6.7047983 7.9999999 6.5121352 8.0738019 6.3652344 8.2207031 L 4.3652344 10.220703 L 3.2480469 9.1152344 C 2.7873733 8.6593698 2.0053172 8.9847153 2.0039062 9.6328125 L 2.0039062 13.248047 C 2.0042352 13.66244 2.3395147 13.998594 2.7539062 14 L 6.4414062 14 C 7.0819596 14.0019 7.4024542 13.226074 6.9472656 12.775391 L 5.7871094 11.626953 L 7.7792969 9.6347656 C 8.0730726 9.3409362 8.0730986 8.8680205 7.7792969 8.5742188 L 7.4257812 8.2207031 C 7.2788804 8.0738023 7.0881704 8.0000001 6.8964844 8 z ' /%3E%3C/svg%3E") !important; 81 | background-repeat: no-repeat !important; 82 | background-position: center !important; 83 | padding: 12px !important; 84 | margin: 1px !important; 85 | border: 1px solid transparent !important; 86 | } 87 | .titlebar-restore image { 88 | appearance: none !important; 89 | background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' version='1.1' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cpath id='path1-0' style='fill:%23ffffff;fill-opacity:1;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;-inkscape-stroke:none' d='M 12.896484 2 C 12.704798 1.9999999 12.512135 2.0738019 12.365234 2.2207031 L 10.365234 4.2207031 L 9.2480469 3.1152344 C 8.7873733 2.6593698 8.0053172 2.9847153 8.0039062 3.6328125 L 8.0039062 7.2480469 C 8.0042352 7.6624405 8.3395147 7.998594 8.7539062 8 L 12.441406 8 C 13.08196 8.00194 13.402454 7.2260742 12.947266 6.7753906 L 11.787109 5.6269531 L 13.779297 3.6347656 C 14.073073 3.3409362 14.073099 2.8680205 13.779297 2.5742188 L 13.425781 2.2207031 C 13.27888 2.0738023 13.08817 2.0000001 12.896484 2 z M 3.5625 8 C 2.9219466 7.9981 2.6014521 8.7739258 3.0566406 9.2246094 L 4.2167969 10.373047 L 2.2246094 12.365234 C 1.9308337 12.659064 1.9308077 13.13198 2.2246094 13.425781 L 2.578125 13.779297 C 2.8719267 14.073099 3.3448702 14.0731 3.6386719 13.779297 L 5.6386719 11.779297 L 6.7558594 12.884766 C 7.2165329 13.34063 7.998589 13.015285 8 12.367188 L 8 8.7519531 C 7.999671 8.3375595 7.6643916 8.001406 7.25 8 L 3.5625 8 z ' /%3E%3C/svg%3E") !important; 90 | background-repeat: no-repeat !important; 91 | background-position: center !important; 92 | padding: 12px !important; 93 | margin: 1px !important; 94 | border: 1px solid transparent !important; 95 | } 96 | .titlebar-close image { 97 | appearance: none !important; 98 | background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' version='1.1' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cpath id='rect1' style='opacity:1;fill:%23ffffff;fill-opacity:1;stroke:none;stroke-width:1;stroke-opacity:0.498039;-inkscape-stroke:none' d='M 0.78168445 6.4081552 C 0.64612209 6.2725928 0.45772309 6.1885654 0.2499733 6.1885654 L -0.2499733 6.1885654 C -0.66547288 6.1885654 -0.99989318 6.5229857 -0.99989318 6.9384853 L -0.99989318 10.313815 L -4.3752232 10.313815 C -4.7907228 10.313815 -5.1251431 10.648236 -5.1251431 11.063735 L -5.1251431 11.563682 C -5.1251431 11.979181 -4.7907228 12.313602 -4.3752232 12.313602 L -0.99989318 12.313602 L -0.99989318 15.688932 C -0.99989318 16.104431 -0.66547288 16.438852 -0.2499733 16.438852 L 0.2499733 16.438852 C 0.66547288 16.438852 0.99989318 16.104431 0.99989318 15.688932 L 0.99989318 12.313602 L 4.3752232 12.313602 C 4.7907228 12.313602 5.1251431 11.979181 5.1251431 11.563682 L 5.1251431 11.063735 C 5.1251431 10.648236 4.7907228 10.313815 4.3752232 10.313815 L 0.99989318 10.313815 L 0.99989318 6.9384853 C 0.99989318 6.7307355 0.91724681 6.5437176 0.78168445 6.4081552 z ' transform='rotate(-45)' /%3E%3C/svg%3E") !important; 99 | background-repeat: no-repeat !important; 100 | background-position: center !important; 101 | padding: 12px !important; 102 | margin: 1px !important; 103 | border: 1px solid transparent !important; 104 | } 105 | .titlebar-close:hover image, 106 | .titlebar-min:hover image, 107 | .titlebar-max:hover image, 108 | .titlebar-restore:hover image { 109 | background-color: transparent !important; 110 | } 111 | .titlebar-close:active image, 112 | .titlebar-min:active image, 113 | .titlebar-max:active image, 114 | .titlebar-restore:active image { 115 | background-color: rgba(0,0,0,0.1) !important; 116 | border-radius: 3px !important; 117 | border: 1px solid rgba(0,0,0,0.5) !important; 118 | box-shadow: inset 0px 0px 0px 1px rgba(0,0,0,0.15), 0 1px 0 0 rgba(255,255,255,0.1) !important; 119 | }} 120 | 121 | /****** rounded top window corners ******/ 122 | #navigation-toolbox { 123 | border-radius: 6px 6px 0 0 !important; 124 | } 125 | :root[sizemode="maximized"] #navigation-toolbox { 126 | border-radius: 0px 0px 0 0 !important; 127 | } 128 | 129 | /****** other elements ******/ 130 | 131 | #unifiedToolbarContent { 132 | min-height: 29px !important; 133 | } 134 | global-search-bar:not([hidden]) { 135 | border-radius: 3px !important; 136 | } 137 | input[type="search"] { 138 | min-height: 26px !important; 139 | border: 1px solid #C8C8C8 !important; 140 | background-color: #ffffff !important; 141 | box-shadow: inset 0px 1px 1px 0px rgba(0,0,0,0.08), 0 1px 0 0 rgba(255,255,255,1) !important; 142 | } 143 | input[type="search"]:focus-visible { 144 | outline-style: none !important; 145 | outline-width: none !important; 146 | outline-color: none !important; 147 | outline-offset: none !important; 148 | background-color: #ffffff !important; 149 | border: 1px solid var(--selected-item-color) !important; 150 | box-shadow: inset 0px 1px 1px 0px var(--accentcolor-percentage), 0 0 0 2px var(--accentcolor-percentage) !important; 151 | filter: saturate(150%) !important; 152 | } 153 | form { 154 | min-height: 26px !important; 155 | } 156 | #spacesPinnedButton { 157 | margin: 8px 4px !important; 158 | padding: 6px !important; 159 | } 160 | #mail-menubar > menu[_moz-menuactive="true"]:not([disabled="true"]) { 161 | background: #DDDDDD !important; 162 | border-bottom: 3px solid #DDDDDD !important; 163 | border-radius: 4px 4px 0px 0px !important; 164 | } 165 | menuseparator, 166 | toolbarseparator { 167 | border-top: 1px solid rgba(0,0,0,0.15) !important; 168 | border-bottom: 1px solid rgba(255,255,255,1) !important; 169 | margin: 4px 0px 4px 0px !important; 170 | } 171 | menuseparator { 172 | padding-block: 0px !important; 173 | padding-inline: 0px !important; 174 | } 175 | menuseparator::before { 176 | border: none !important; 177 | } 178 | :root[uidensity="compact"] #unifiedToolbar { 179 | min-height: 42px !important; 180 | max-height: 42px !important; 181 | } 182 | :root[uidensity="touch"] #unifiedToolbar { 183 | min-height: 58px !important; 184 | max-height: 58px !important; 185 | } 186 | :root:not([uidensity="compact"]):not([uidensity="touch"]) #unifiedToolbar { 187 | min-height: 48px !important; 188 | max-height: 48px !important; 189 | } 190 | unified-toolbar { 191 | border-bottom: none !important; 192 | } 193 | 194 | /**** menuitems hover ****/ 195 | 196 | :root[uidensity="compact"] toolbarbutton.subviewbutton:not(#appMenu-uiDensity-controls > toolbarbutton):not(#appMenu-fontSize-controls > toolbarbutton):not(.panel-header > toolbarbutton):is(:hover, :active, :focus-visible, [open]) { 197 | margin: 0px !important; 198 | padding-inline: 12px !important; 199 | border-radius: 0px !important; 200 | } 201 | :root:not([uidensity="compact"]):not([uidensity="touch"]) toolbarbutton.subviewbutton:not(#appMenu-uiDensity-controls > toolbarbutton):not(#appMenu-fontSize-controls > toolbarbutton):not(.panel-header > toolbarbutton):is(:hover, :active, :focus-visible, [open]) { 202 | margin: 0px !important; 203 | padding-inline: 16px !important; 204 | border-radius: 0px !important; 205 | } 206 | :root[uidensity="touch"] toolbarbutton.subviewbutton:not(#appMenu-uiDensity-controls > toolbarbutton):not(#appMenu-fontSize-controls > toolbarbutton):not(.panel-header > toolbarbutton):is(:hover, :active, :focus-visible, [open]) { 207 | margin: 0px !important; 208 | padding-inline: 16px !important; 209 | border-radius: 0px !important; 210 | } 211 | :root[uidensity="compact"] menuitem[_moz-menuactive="true"]:not(#mailContext-navigation > menuitem):not(#context-navigation > menuitem), 212 | :root[uidensity="compact"] menu[_moz-menuactive="true"]:not(menubar > menu) { 213 | margin: 0px !important; 214 | padding-inline: 11px !important; 215 | border-radius: 0px !important; 216 | } 217 | :root:not([uidensity="touch"]):not([uidensity="compact"]) menuitem[_moz-menuactive="true"]:not(#mailContext-navigation > menuitem):not(#context-navigation > menuitem), 218 | :root:not([uidensity="touch"]):not([uidensity="compact"]) menu[_moz-menuactive="true"]:not(menubar > menu) { 219 | margin: 0px !important; 220 | padding-inline: 12px !important; 221 | border-radius: 0px !important; 222 | } 223 | :root[uidensity="touch"] menuitem[_moz-menuactive="true"]:not(#mailContext-navigation > menuitem):not(#context-navigation > menuitem), 224 | :root[uidensity="touch"] menu[_moz-menuactive="true"]:not(menubar > menu) { 225 | margin: 0px !important; 226 | padding-inline: 12px !important; 227 | border-radius: 0px !important; 228 | } 229 | 230 | /**** tabs ****/ 231 | 232 | :root[uidensity="touch"] .tabmail-tab { 233 | margin-top: 10px !important; 234 | } 235 | .tabmail-tab { 236 | --tab-max-width: 225px !important; 237 | } 238 | #tabs-toolbar { 239 | min-height: 36px !important; 240 | max-height: 36px !important; 241 | box-shadow: none !important; 242 | border-bottom: none !important; 243 | padding-bottom: 2px !important; 244 | } 245 | .tabmail-tab[selected="true"] { 246 | min-height: 34px !important; 247 | max-height: 34px !important; 248 | border-radius: 3.5px !important; 249 | box-shadow: 0 1px 0 0 rgba(0,0,0,0.03) !important; 250 | } 251 | .tab-background[selected="true"] { 252 | border-radius: 3.5px !important; 253 | margin: 1px 0px !important; 254 | } 255 | .tab-background { 256 | border-top: 0 !important; 257 | border-radius: 3.5px !important; 258 | margin: 2px 2px 2px 2px !important; 259 | } 260 | .tab-line { 261 | display: none !important; /* strip of color at the top of tab */ 262 | } 263 | .tab-label { 264 | -moz-box-flex: 1 !important; 265 | margin-left: 6px !important; 266 | margin-right: 6px !important; 267 | text-align: center !important; 268 | } 269 | .tabmail-tab:not([visuallyselected="true"]) { 270 | min-height: 34px !important; 271 | max-height: 34px !important; 272 | border-radius: 3.5px !important; 273 | } 274 | .tab-close-icon[src="chrome://global/skin/icons/close.svg"] { 275 | content: url("data:image/svg+xml,%3Csvg height='16' width='16' version='1.1' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cpath id='rect1' style='opacity:1;fill:%23333333;fill-opacity:1;stroke:none;stroke-width:1;stroke-opacity:0.498039;-inkscape-stroke:none' d='M 0.78168445 6.4081552 C 0.64612209 6.2725928 0.45772309 6.1885654 0.2499733 6.1885654 L -0.2499733 6.1885654 C -0.66547288 6.1885654 -0.99989318 6.5229857 -0.99989318 6.9384853 L -0.99989318 10.313815 L -4.3752232 10.313815 C -4.7907228 10.313815 -5.1251431 10.648236 -5.1251431 11.063735 L -5.1251431 11.563682 C -5.1251431 11.979181 -4.7907228 12.313602 -4.3752232 12.313602 L -0.99989318 12.313602 L -0.99989318 15.688932 C -0.99989318 16.104431 -0.66547288 16.438852 -0.2499733 16.438852 L 0.2499733 16.438852 C 0.66547288 16.438852 0.99989318 16.104431 0.99989318 15.688932 L 0.99989318 12.313602 L 4.3752232 12.313602 C 4.7907228 12.313602 5.1251431 11.979181 5.1251431 11.563682 L 5.1251431 11.063735 C 5.1251431 10.648236 4.7907228 10.313815 4.3752232 10.313815 L 0.99989318 10.313815 L 0.99989318 6.9384853 C 0.99989318 6.7307355 0.91724681 6.5437176 0.78168445 6.4081552 z ' transform='rotate(-45)' /%3E%3C/svg%3E") !important; 276 | width: 16px !important; 277 | height: 16px !important; 278 | margin: 2px 2px 2px 2px !important; 279 | } 280 | #tabs-toolbar tab:not([selected]):not(:hover) .tab-close-button { 281 | opacity: 0 !important; 282 | margin-top: 2px !important; 283 | } 284 | #tabs-toolbar tab:not([selected]) .tab-close-button:hover { 285 | background: none !important; 286 | } 287 | #tabs-toolbar tab[selected] .tab-close-button:hover { 288 | opacity: 1 !important; 289 | background: none !important; 290 | } 291 | #tabs-toolbar tab[selected] .tab-close-button:active { 292 | background: none !important; 293 | } 294 | .tab-content { 295 | flex-direction: row-reverse !important; 296 | padding: 0px 6px 2px 6px !important; 297 | } 298 | 299 | /* make tab content centered except tabs close button */ 300 | .tab-icon-image { 301 | order: 1 !important; 302 | margin-inline-start: auto !important; 303 | } 304 | .tab-close-button { 305 | order: 2 !important; 306 | } 307 | .tab-label-container { 308 | max-width: min-content !important; 309 | margin-inline-end: auto !important; 310 | } 311 | 312 | /* make tab separators: thanks to MrOtherGuy, source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tab_separator_lines.css */ 313 | .tabmail-tab { 314 | border-inline-start: 1px solid transparent !important; 315 | border-image: 0 1 linear-gradient(transparent 20%, color-mix(in srgb, #D9D9D9 100%, transparent) 20%, color-mix(in srgb, #D9D9D9 100%, transparent) 90%, transparent 90%) !important; 316 | } 317 | #tabs-toolbar .tabmail-tab:hover, 318 | #tabs-toolbar:not([movingtab]) .tabmail-tab:hover + .tabmail-tab:not([first-visible-unpinned-tab]), 319 | #tabs-toolbar .tabmail-tab:first-child, 320 | #tabs-toolbar .tabmail-tab[selected], 321 | #tabs-toolbar .tabmail-tab[multiselected], 322 | #tabs-toolbar #tabbrowser-arrowscrollbox[overflowing] > .tabmail-tab[first-visible-unpinned-tab], 323 | #tabs-toolbar:not([movingtab]) .tabmail-tab[multiselected] + .tabmail-tab, 324 | #tabs-toolbar:not([movingtab]) .tabmail-tab[selected] + .tabmail-tab { 325 | border-inline-start: 1px solid transparent !important; 326 | border-image: none !important; 327 | } 328 | 329 | 330 | /**** hamburger menu ****/ 331 | 332 | #button-appmenu { 333 | list-style-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3Csvg xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:cc='http://creativecommons.org/ns%23' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23' xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='24' height='24' id='svg3879'%3E%3Cdefs id='defs3881'%3E%3ClinearGradient x1='12' y1='16' x2='12' y2='8' id='linearGradient3830' xlink:href='%23linearGradient3805' gradientUnits='userSpaceOnUse' /%3E%3ClinearGradient id='linearGradient3805'%3E%3Cstop id='stop3807' style='stop-color:%23ffffff;stop-opacity:1' offset='0' /%3E%3Cstop id='stop3809' style='stop-color:%23ffffff;stop-opacity:0' offset='1' /%3E%3C/linearGradient%3E%3ClinearGradient x1='12.47939' y1='2' x2='12.47939' y2='22.006775' id='linearGradient3814' xlink:href='%23linearGradient3805' gradientUnits='userSpaceOnUse' gradientTransform='translate%280,8%29' /%3E%3ClinearGradient x1='86.132919' y1='105.105' x2='84.63858' y2='20.895' id='linearGradient3610' xlink:href='%23linearGradient5128' gradientUnits='userSpaceOnUse' gradientTransform='matrix%280.15623116,0,0,0.15623125,2.0012002,10.157431%29' /%3E%3ClinearGradient id='linearGradient5128'%3E%3Cstop id='stop5130' style='stop-color:%23ffffff;stop-opacity:1' offset='0' /%3E%3Cstop id='stop5132' style='stop-color:%23959595;stop-opacity:1' offset='1' /%3E%3C/linearGradient%3E%3ClinearGradient x1='32.036148' y1='19' x2='32.036148' y2='47.012184' id='linearGradient3614-2' xlink:href='%23linearGradient3309-1' gradientUnits='userSpaceOnUse' gradientTransform='matrix%280.77777782,0,0,0.77777782,-12.111112,-5.666669%29' /%3E%3ClinearGradient x1='63.9995' y1='3.1001' x2='63.9995' y2='122.8994' id='linearGradient3309-1' gradientUnits='userSpaceOnUse'%3E%3Cstop id='stop3311-5' style='stop-color:%23f6f6f6;stop-opacity:1' offset='0' /%3E%3Cstop id='stop3313-0' style='stop-color:%23d2d2d2;stop-opacity:1' offset='1' /%3E%3C/linearGradient%3E%3ClinearGradient x1='25.922546' y1='19' x2='25.922546' y2='47.044857' id='linearGradient3616-9' xlink:href='%23linearGradient3397-0' gradientUnits='userSpaceOnUse' gradientTransform='matrix%280.77777782,0,0,0.77777782,-12.111112,-5.666669%29' /%3E%3ClinearGradient id='linearGradient3397-0'%3E%3Cstop id='stop3399-4' style='stop-color:%23aaaaaa;stop-opacity:1' offset='0' /%3E%3Cstop id='stop3401-0' style='stop-color:%238c8c8c;stop-opacity:1' offset='1' /%3E%3C/linearGradient%3E%3ClinearGradient id='linearGradient10691'%3E%3Cstop id='stop10693' style='stop-color:%23000000;stop-opacity:1' offset='0' /%3E%3Cstop id='stop10695' style='stop-color:%23000000;stop-opacity:0' offset='1' /%3E%3C/linearGradient%3E%3CradialGradient cx='6.702713' cy='73.615715' r='7.228416' fx='6.702713' fy='73.615715' id='radialGradient3877' xlink:href='%23linearGradient10691' gradientUnits='userSpaceOnUse' gradientTransform='matrix%281.6600963,0,0,0.36315008,0.8728521,2.6414479%29' /%3E%3ClinearGradient x1='12' y1='16' x2='12' y2='8' id='linearGradient3011' xlink:href='%23linearGradient3805' gradientUnits='userSpaceOnUse' gradientTransform='matrix%281.0116033,0,0,1.0116033,-0.13923977,-0.1392394%29' /%3E%3ClinearGradient x1='12.47939' y1='2' x2='12.47939' y2='22.006775' id='linearGradient3014' xlink:href='%23linearGradient3805' gradientUnits='userSpaceOnUse' /%3E%3ClinearGradient x1='86.132919' y1='105.105' x2='84.63858' y2='20.895' id='linearGradient3017' xlink:href='%23linearGradient5128' gradientUnits='userSpaceOnUse' gradientTransform='matrix%280.15623116,0,0,0.15623125,2.0012002,2.157431%29' /%3E%3ClinearGradient x1='32.036148' y1='19' x2='32.036148' y2='47.012184' id='linearGradient3021' xlink:href='%23linearGradient3309-1' gradientUnits='userSpaceOnUse' gradientTransform='matrix%280.77777782,0,0,0.77777782,-12.111112,-13.666669%29' /%3E%3CradialGradient cx='6.702713' cy='73.615715' r='7.228416' fx='6.702713' fy='73.615715' id='radialGradient3026' xlink:href='%23linearGradient10691' gradientUnits='userSpaceOnUse' gradientTransform='matrix%281.6600963,0,0,0.36315008,0.8728521,-5.3585521%29' /%3E%3ClinearGradient x1='32.036148' y1='19' x2='32.036148' y2='47.012184' id='linearGradient3021-0' xlink:href='%23linearGradient3309-1-9' gradientUnits='userSpaceOnUse' gradientTransform='matrix%280.77777782,0,0,0.77777782,-12.111112,-13.666669%29' /%3E%3ClinearGradient x1='63.9995' y1='3.1001' x2='63.9995' y2='122.8994' id='linearGradient3309-1-9' gradientUnits='userSpaceOnUse'%3E%3Cstop id='stop3311-5-9' style='stop-color:%23f6f6f6;stop-opacity:1' offset='0' /%3E%3Cstop id='stop3313-0-9' style='stop-color:%23d2d2d2;stop-opacity:1' offset='1' /%3E%3C/linearGradient%3E%3ClinearGradient x1='25.922546' y1='19' x2='25.922546' y2='47.044857' id='linearGradient3023' xlink:href='%23linearGradient3397-0-3' gradientUnits='userSpaceOnUse' gradientTransform='matrix%280.77777782,0,0,0.77777782,-12.111112,-13.666669%29' /%3E%3ClinearGradient id='linearGradient3397-0-3'%3E%3Cstop id='stop3399-4-5' style='stop-color:%23aaaaaa;stop-opacity:1' offset='0' /%3E%3Cstop id='stop3401-0-8' style='stop-color:%238c8c8c;stop-opacity:1' offset='1' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cmetadata id='metadata3884'%3E%3Crdf:RDF%3E%3Ccc:Work rdf:about=''%3E%3Cdc:format%3Eimage/svg+xml%3C/dc:format%3E%3Cdc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage' /%3E%3Cdc:title /%3E%3C/cc:Work%3E%3C/rdf:RDF%3E%3C/metadata%3E%3Cpath d='M 23.999865,21.375 C 23.999865,22.824748 18.627342,24 12,24 5.3726571,24 1.348125e-4,22.824748 1.348125e-4,21.375 1.348125e-4,19.925253 5.3726571,18.75 12,18.75 c 6.627342,0 11.999865,1.175253 11.999865,2.625 z' id='path10689' style='opacity:0.2;fill:url%28%23radialGradient3026%29;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.80000001;marker:none;visibility:visible;display:inline;overflow:visible' /%3E%3Cpath d='m 10.5,1.5 c -0.554,0 -1,0.446 -1,1 l 0,1.375 C 8.9926705,4.030783 8.4932312,4.225474 8.03125,4.46875 L 7.0625,3.5 C 6.6707628,3.108263 6.0167372,3.108263 5.625,3.5 L 3.5,5.625 C 3.1082628,6.016737 3.1082628,6.670763 3.5,7.0625 L 4.46875,8.03125 C 4.2254741,8.493231 4.0307828,8.99267 3.875,9.5 L 2.5,9.5 c -0.554,0 -1,0.446 -1,1 l 0,3 c 0,0.554 0.446,1 1,1 l 1.375,0 c 0.1557828,0.507329 0.3504741,1.006769 0.59375,1.46875 L 3.5,16.9375 c -0.3917372,0.391737 -0.3917372,1.045763 0,1.4375 L 5.625,20.5 c 0.3917372,0.391737 1.0457628,0.391737 1.4375,0 L 8.03125,19.53125 C 8.4932312,19.774526 8.9926705,19.969217 9.5,20.125 l 0,1.375 c 0,0.554 0.446,1 1,1 l 3,0 c 0.554,0 1,-0.446 1,-1 l 0,-1.375 c 0.507329,-0.155783 1.006769,-0.350474 1.46875,-0.59375 L 16.9375,20.5 c 0.391737,0.391737 1.045763,0.391737 1.4375,0 L 20.5,18.375 c 0.391737,-0.391737 0.391737,-1.045763 0,-1.4375 L 19.53125,15.96875 C 19.774526,15.506769 19.969217,15.007329 20.125,14.5 l 1.375,0 c 0.554,0 1,-0.446 1,-1 l 0,-3 c 0,-0.554 -0.446,-1 -1,-1 l -1.375,0 C 19.969217,8.99267 19.774526,8.493231 19.53125,8.03125 L 20.5,7.0625 c 0.391737,-0.391737 0.391737,-1.045763 0,-1.4375 L 18.375,3.5 C 17.983263,3.108263 17.329237,3.108263 16.9375,3.5 L 15.96875,4.46875 C 15.506769,4.225474 15.007329,4.030783 14.5,3.875 l 0,-1.375 c 0,-0.554 -0.446,-1 -1,-1 l -3,0 z m 1.5,8 c 1.380712,0 2.5,1.119288 2.5,2.5 0,1.380712 -1.119288,2.5 -2.5,2.5 -1.380712,0 -2.5,-1.119288 -2.5,-2.5 0,-1.380712 1.119288,-2.5 2.5,-2.5 z' id='rect3623' style='color:%23000000;fill:url%28%23linearGradient3021%29;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:block;overflow:visible;enable-background:accumulate' /%3E%3Cpath d='m 12,6 c -3.310303,0 -6,2.689698 -6,6 0,3.310302 2.689697,6 6,6 3.310301,0 6,-2.689698 6,-6 0,-3.310302 -2.689699,-6 -6,-6 z m 0,3 c 1.656854,0 3,1.343146 3,3 0,1.656854 -1.343146,3 -3,3 -1.656854,0 -3,-1.343146 -3,-3 0,-1.656854 1.343146,-3 3,-3 z' id='path3315' style='opacity:0.05;fill:%23000000;fill-opacity:1;stroke:none' /%3E%3Cpath d='m 12,5.499999 c -3.5841018,0 -6.5,2.9159 -6.5,6.499999 C 5.5,15.5841 8.4158982,18.5 12,18.5 c 3.584101,0 6.5,-2.9159 6.5,-6.500002 0,-3.584099 -2.915899,-6.499999 -6.5,-6.499999 z' id='path28' style='fill:none;stroke:url%28%23linearGradient3017%29;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none' /%3E%3Cpath d='M 10.5,2.46875 C 10.42583,2.857469 10.4905,3.369858 10.46875,3.805183 10.53344,4.583262 9.6984733,4.858037 9.1004648,5.021793 8.5534413,5.333029 7.7514701,5.693691 7.2634975,5.075993 6.9673317,4.779832 6.6711658,4.483666 6.375,4.1875 5.9432707,4.474172 5.5902425,4.950845 5.1889654,5.311035 4.8695012,5.671637 4.4334278,5.983938 4.1875,6.375 4.5945204,6.865131 5.2360159,7.212591 5.413298,7.851969 5.388634,8.650433 4.8731381,9.381187 4.6009101,10.118994 4.0990892,10.683344 3.2858688,10.399662 2.6265645,10.46875 2.2819972,10.45587 2.5562355,11.055097 2.46875,11.294459 c 0.00121,0.744981 -0.0024,1.490108 0.00179,2.234998 0.6455598,0.06419 1.3569859,-0.150581 1.9454937,0.179668 0.5556121,0.579212 0.6756354,1.474124 1.0067725,2.188766 0.04177,0.75274 -0.7323134,1.126431 -1.1493366,1.641136 -0.2173877,0.272406 0.385277,0.504146 0.5159207,0.750367 0.5077022,0.507702 1.0154043,1.015404 1.5231065,1.523106 0.5224633,-0.304869 0.8397278,-0.98896 1.4454346,-1.204942 0.8151392,-0.106648 1.5136871,0.546448 2.2838276,0.733976 0.650694,0.452082 0.363529,1.310427 0.426988,1.975154 -0.08851,0.418476 0.527859,0.12987 0.768962,0.214562 0.763896,-0.0012 1.527939,0.0024 2.291745,-0.0018 0.06419,-0.64556 -0.150581,-1.356986 0.179668,-1.945494 0.579212,-0.555612 1.474124,-0.675635 2.188766,-1.006772 0.75274,-0.04177 1.126431,0.732313 1.641136,1.149336 0.272406,0.217388 0.504146,-0.385277 0.750367,-0.515921 0.507702,-0.507702 1.015404,-1.015404 1.523106,-1.523106 -0.304869,-0.522463 -0.98896,-0.839728 -1.204942,-1.445435 -0.106648,-0.815139 0.546448,-1.513687 0.733976,-2.283827 0.452082,-0.650694 1.310427,-0.363529 1.975154,-0.426988 0.418476,0.08851 0.12987,-0.527859 0.214562,-0.768962 -0.0012,-0.763896 0.0024,-1.527939 -0.0018,-2.291745 -0.64556,-0.06419 -1.356986,0.150581 -1.945494,-0.179668 C 19.028351,9.711663 18.908328,8.816751 18.577191,8.102109 18.535421,7.349369 19.309504,6.975678 19.726527,6.460973 19.943915,6.188567 19.34125,5.956827 19.210606,5.710607 18.702904,5.202904 18.195202,4.695202 17.6875,4.1875 17.165037,4.492369 16.847772,5.17646 16.242065,5.392442 15.426926,5.49909 14.728378,4.845994 13.958238,4.658466 13.307544,4.206384 13.594709,3.348039 13.53125,2.683312 13.61976,2.264836 13.003391,2.553442 12.762288,2.46875 c -0.754096,0 -1.508192,0 -2.262288,0 z' id='path3799' style='opacity:0.8;color:%23000000;fill:none;stroke:url%28%23linearGradient3014%29;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:block;overflow:visible;enable-background:accumulate' /%3E%3Cpath d='m 15.5,12 a 3.5,3.5 0 1 1 -7,0 3.5,3.5 0 1 1 7,0 z' id='path3822' style='opacity:0.4;color:%23000000;fill:none;stroke:url%28%23linearGradient3011%29;stroke-width:0.99999994;stroke-opacity:1;marker:none;visibility:visible;display:block;overflow:visible;enable-background:accumulate' /%3E%3Cpath d='m 10.5,1.5 c -0.554,0 -1,0.446 -1,1 l 0,1.375 C 8.9926705,4.030783 8.4932312,4.225474 8.03125,4.46875 L 7.0625,3.5 C 6.6707628,3.108263 6.0167372,3.108263 5.625,3.5 L 3.5,5.625 C 3.1082628,6.016737 3.1082628,6.670763 3.5,7.0625 L 4.46875,8.03125 C 4.2254741,8.493231 4.0307828,8.99267 3.875,9.5 L 2.5,9.5 c -0.554,0 -1,0.446 -1,1 l 0,3 c 0,0.554 0.446,1 1,1 l 1.375,0 c 0.1557828,0.507329 0.3504741,1.006769 0.59375,1.46875 L 3.5,16.9375 c -0.3917372,0.391737 -0.3917372,1.045763 0,1.4375 L 5.625,20.5 c 0.3917372,0.391737 1.0457628,0.391737 1.4375,0 L 8.03125,19.53125 C 8.4932312,19.774526 8.9926705,19.969217 9.5,20.125 l 0,1.375 c 0,0.554 0.446,1 1,1 l 3,0 c 0.554,0 1,-0.446 1,-1 l 0,-1.375 c 0.507329,-0.155783 1.006769,-0.350474 1.46875,-0.59375 L 16.9375,20.5 c 0.391737,0.391737 1.045763,0.391737 1.4375,0 L 20.5,18.375 c 0.391737,-0.391737 0.391737,-1.045763 0,-1.4375 L 19.53125,15.96875 C 19.774526,15.506769 19.969217,15.007329 20.125,14.5 l 1.375,0 c 0.554,0 1,-0.446 1,-1 l 0,-3 c 0,-0.554 -0.446,-1 -1,-1 l -1.375,0 C 19.969217,8.99267 19.774526,8.493231 19.53125,8.03125 L 20.5,7.0625 c 0.391737,-0.391737 0.391737,-1.045763 0,-1.4375 L 18.375,3.5 C 17.983263,3.108263 17.329237,3.108263 16.9375,3.5 L 15.96875,4.46875 C 15.506769,4.225474 15.007329,4.030783 14.5,3.875 l 0,-1.375 c 0,-0.554 -0.446,-1 -1,-1 l -3,0 z m 1.5,8 c 1.380712,0 2.5,1.119288 2.5,2.5 0,1.380712 -1.119288,2.5 -2.5,2.5 -1.380712,0 -2.5,-1.119288 -2.5,-2.5 0,-1.380712 1.119288,-2.5 2.5,-2.5 z' id='rect3623-2' style='opacity:0.3;color:%23000000;fill:none;stroke:%23000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:block;overflow:visible;enable-background:accumulate' /%3E%3C/svg%3E") !important; 334 | } 335 | #button-appmenu .toolbarbutton-icon { 336 | width: 24px !important; 337 | height: 24px !important; 338 | } 339 | #button-appmenu:hover { 340 | background-color: transparent !important; 341 | border-color: transparent !important; 342 | box-shadow: none !important; 343 | } 344 | #button-appmenu { 345 | transition: none !important; 346 | min-width: 32px !important; 347 | min-height: 32px !important; 348 | } 349 | #button-appmenu:is([open="true"], :active) { 350 | background-color: var(--accentcolor-percentage) !important; 351 | clip-path: circle(50%) !important; 352 | border-color: transparent !important; 353 | box-shadow: none !important; 354 | filter: saturate(150%) !important; 355 | } 356 | 357 | /* make pinned spaces button also rounded + accent color, when sidebar is closed */ 358 | #spacesPinnedButton { 359 | transition: none !important; 360 | } 361 | #spacesPinnedButton:hover { 362 | background-color: transparent !important; 363 | border-color: transparent !important; 364 | box-shadow: none !important; 365 | } 366 | #spacesPinnedButton:is([open="true"], :active) { 367 | background-color: var(--accentcolor-percentage) !important; 368 | clip-path: circle(50%) !important; 369 | border-color: transparent !important; 370 | box-shadow: none !important; 371 | filter: saturate(150%) !important; 372 | } 373 | 374 | /**** colors ****/ 375 | 376 | :root { 377 | --selected-item-color: color-mix(in srgb, LinkText 70%, transparent) !important; 378 | --accentcolor-percentage: color-mix(in srgb, LinkText 20%, transparent) !important; 379 | } 380 | 381 | /* system colors focus */ 382 | 383 | #navigation-toolbox:-moz-window-inactive { 384 | border-bottom: 1px solid rgba(0,0,0,0.10) !important; 385 | background: #FAFAFA !important; 386 | box-shadow: inset 0 0 0 1px rgba(255,255,255,1) !important; 387 | } 388 | #tabs-toolbar:-moz-window-inactive { 389 | background: none !important; 390 | } 391 | .tab-background[selected="true"]:-moz-window-inactive { 392 | background: #FAFAFA !important; 393 | border: 1px solid #D5D5D5 !important; 394 | } 395 | #button-appmenu:-moz-window-inactive { 396 | opacity: 0.5 !important; 397 | } 398 | #toolbar-menubar:-moz-window-inactive { 399 | background: none !important; 400 | } 401 | 402 | /** system colors **/ 403 | 404 | #navigation-toolbox { 405 | border-bottom: 1px solid rgba(0,0,0,0.10) !important; 406 | background: #FAFAFA !important; 407 | box-shadow: inset 0 0 0 1px rgba(255,255,255,1) !important; 408 | } 409 | #tabs-toolbar { 410 | background: none !important; 411 | } 412 | .tab-background[selected="true"] { 413 | background: #FFFFFF !important; 414 | border: 1px solid #D5D5D5 !important; 415 | box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.08), inset 0 -1px 0 0 rgba(255,255,255,0.05) !important; 416 | } 417 | #tabs-toolbar tab .tab-close-button:active { 418 | background: rgba(51,51,51, 0.15) !important; 419 | } 420 | #toolbar-menubar { 421 | background: none !important; 422 | } 423 | #spacesPinnedButton:not([type="menu-button"], [disabled="true"]):is([open="true"], [checked="true"], :hover:active) { 424 | border-color: none !important; 425 | box-shadow: none !important; 426 | } 427 | .mail-toolbox, .contentTabToolbox { 428 | background-color: transparent !important; 429 | background-image: none !important; 430 | } 431 | :root { 432 | --layout-border-1: rgba(0,0,0,0.20) !important; 433 | } 434 | 435 | /* system dark focus */ 436 | 437 | @media (prefers-color-scheme: dark) { 438 | #navigation-toolbox:-moz-window-inactive { 439 | background: #333333 !important; 440 | border-bottom: 1px solid rgba(0,0,0,0.5) !important; 441 | box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05) !important; 442 | } 443 | #tabs-toolbar:-moz-window-inactive { 444 | background: none !important; 445 | } 446 | .tab-background[selected="true"]:-moz-window-inactive { 447 | background: rgb(51,51,51) !important; 448 | border: 1px solid rgba(45,45,45,1) !important; 449 | border-bottom: 1px solid rgba(255,255,255,0.05) !important; 450 | } 451 | #toolbar-menubar:-moz-window-inactive { 452 | background-color: none !important; 453 | } 454 | 455 | /** system dark colors **/ 456 | 457 | :root { 458 | --selected-item-color: color-mix(in srgb, SelectedItem 95%, transparent 100%) !important; 459 | --accentcolor-percentage: color-mix(in srgb, SelectedItem 95%, transparent 100%); 460 | } 461 | 462 | input[type="search"] { 463 | min-height: 26px !important; 464 | border: 1px solid #222222 !important; 465 | background: #3A3A3A !important; 466 | box-shadow: inset 0px 1px 1px 0px rgba(0,0,0,0.08), 0 1px 0 0 rgba(255,255,255,0.05) !important; 467 | } 468 | input[type="search"]:focus-visible { 469 | outline-style: none !important; 470 | outline-width: none !important; 471 | outline-color: none !important; 472 | outline-offset: none !important; 473 | background-color: #3A3A3A !important; 474 | border: 1px solid #222222 !important; 475 | box-shadow: inset 0px 1px 1px 0px rgba(0,0,0,0.08), 0 0 0 2px var(--accentcolor-percentage) !important; 476 | filter: saturate(150%) !important; 477 | } 478 | #navigation-toolbox { 479 | background: #333333 !important; 480 | border-bottom: 1px solid rgba(0,0,0,0.5) !important; 481 | box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05) !important; 482 | } 483 | #tabs-toolbar { 484 | background: none !important; 485 | } 486 | .tab-background[selected="true"] { 487 | background: #3A3A3A !important; 488 | border: 1px solid rgba(40,40,40,1) !important; 489 | box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.08), inset 0 -1px 0 0 rgba(255,255,255,0.05) !important; 490 | } 491 | #tabs-toolbar tab .tab-close-button:active { 492 | background: rgba(255,255,255, 0.2) !important; 493 | } 494 | .tab-close-icon[src="chrome://global/skin/icons/close.svg"] { 495 | content: url("data:image/svg+xml,%3Csvg height='16' width='16' version='1.1' id='svg1' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs id='defs1' /%3E%3Cpath id='rect1' style='opacity:1;fill:%23ffffff;fill-opacity:1;stroke:none;stroke-width:1;stroke-opacity:0.498039;-inkscape-stroke:none' d='M 0.78168445 6.4081552 C 0.64612209 6.2725928 0.45772309 6.1885654 0.2499733 6.1885654 L -0.2499733 6.1885654 C -0.66547288 6.1885654 -0.99989318 6.5229857 -0.99989318 6.9384853 L -0.99989318 10.313815 L -4.3752232 10.313815 C -4.7907228 10.313815 -5.1251431 10.648236 -5.1251431 11.063735 L -5.1251431 11.563682 C -5.1251431 11.979181 -4.7907228 12.313602 -4.3752232 12.313602 L -0.99989318 12.313602 L -0.99989318 15.688932 C -0.99989318 16.104431 -0.66547288 16.438852 -0.2499733 16.438852 L 0.2499733 16.438852 C 0.66547288 16.438852 0.99989318 16.104431 0.99989318 15.688932 L 0.99989318 12.313602 L 4.3752232 12.313602 C 4.7907228 12.313602 5.1251431 11.979181 5.1251431 11.563682 L 5.1251431 11.063735 C 5.1251431 10.648236 4.7907228 10.313815 4.3752232 10.313815 L 0.99989318 10.313815 L 0.99989318 6.9384853 C 0.99989318 6.7307355 0.91724681 6.5437176 0.78168445 6.4081552 z ' transform='rotate(-45)' /%3E%3C/svg%3E") !important; 496 | } 497 | .tabmail-tab { 498 | border-inline-start: 1px solid transparent !important; 499 | border-image: 0 1 linear-gradient(transparent 20%, color-mix(in srgb, rgba(0,0,0,0.7), transparent) 20%, color-mix(in srgb, rgba(0,0,0,0.7), transparent) 90%, transparent 90%) !important; 500 | } 501 | #tabs-toolbar .tabmail-tab:hover, 502 | #tabs-toolbar:not([movingtab]) .tabmail-tab:hover + .tabmail-tab:not([first-visible-unpinned-tab]), 503 | #tabs-toolbar .tabmail-tab:first-child, 504 | #tabs-toolbar .tabmail-tab[selected], 505 | #tabs-toolbar .tabmail-tab[multiselected], 506 | #tabs-toolbar #tabbrowser-arrowscrollbox[overflowing] > .tabmail-tab[first-visible-unpinned-tab], 507 | #tabs-toolbar:not([movingtab]) .tabmail-tab[multiselected] + .tabmail-tab, 508 | #tabs-toolbar:not([movingtab]) .tabmail-tab[selected] + .tabmail-tab { 509 | border-inline-start: 1px solid transparent !important; 510 | border-image: none !important; 511 | } 512 | menuseparator, 513 | toolbarseparator { 514 | border-top: 1px solid rgba(0,0,0,0.3) !important; 515 | border-bottom: 1px solid rgba(255,255,255,0.05) !important; 516 | } 517 | #threadTree treechildren { 518 | background-image: linear-gradient(rgba(0,0,0,0.03) 50%, #353535 50%) !important; 519 | background-size: 60px 60px !important; 520 | background-repeat: repeat !important; 521 | } 522 | #toolbar-menubar { 523 | background-color: none !important; 524 | } 525 | :root { 526 | --layout-border-1: rgba(0,0,0,0.80) !important; 527 | }} 528 | --------------------------------------------------------------------------------