├── userContent.css ├── lacuna ├── extra │ └── lacuna-second-sidebar.css ├── lacuna.css └── modules │ ├── lacuna-ff-sidebars.css │ ├── lacuna-animations.css │ ├── lacuna-extra.css │ ├── lacuna-base.css │ ├── lacuna-essentials.css │ ├── lacuna-compact.css │ ├── lacuna-ui-tweaks.css │ ├── lacuna-media-ctrl.css │ ├── lacuna-urlbar.css │ ├── lacuna-tabs.css │ └── lacuna-audio-indicator.css ├── userChrome.css ├── js └── sidebar-width-var.uc.js ├── natsumi-pages ├── modules │ ├── preferences.css │ ├── global.css │ ├── preload.css │ ├── preferences-wip.css │ ├── ff-home.css │ └── pdfjs.css └── natsumi-pages.css ├── lacuna-content.css ├── misc └── bonjourr.json ├── README.md └── LICENSE /userContent.css: -------------------------------------------------------------------------------- 1 | @import "natsumi-pages/natsumi-pages.css"; 2 | 3 | @import "lacuna-content.css"; 4 | -------------------------------------------------------------------------------- /lacuna/extra/lacuna-second-sidebar.css: -------------------------------------------------------------------------------- 1 | /* === SECOND SIDEBAR (JS REQUIRED) === */ 2 | /* Based on code by https://github.com/Tanay-Kar */ 3 | 4 | @media (-moz-bool-pref: "sidebar.float") { 5 | #sb2-main { 6 | background: light-dark(#00000022, #00000044) !important; 7 | backdrop-filter: blur(10px) saturate(1.2) contrast(1.1) !important; 8 | border-radius: var(--zen-native-inner-radius) !important; 9 | padding: 10px !important; 10 | top: 0 !important; 11 | bottom: 0 !important; 12 | margin: var(--zen-element-separation) !important; 13 | } 14 | } 15 | 16 | #sb2-main { 17 | justify-content: flex-end !important; 18 | } 19 | 20 | 21 | #new-web-panel { 22 | order: 10 !important; 23 | } 24 | 25 | .sidebar-splitter { 26 | opacity: 0 !important; 27 | display: none !important; 28 | } 29 | 30 | #sb2 { 31 | background: light-dark(#00000022, #00000066) !important; 32 | box-shadow: var(--zen-big-shadow) !important; 33 | outline: 1px solid var(--zen-colors-border-contrast) !important; 34 | outline-offset: -1px !important; 35 | backdrop-filter: blur(20px) saturate(2.4) contrast(1.1) !important; 36 | } 37 | 38 | #sb2-box { 39 | padding-block-start: 0px !important; 40 | height: 100% !important; 41 | } 42 | 43 | #sb2-web-panels .web-panel { 44 | background: none !important; 45 | } 46 | 47 | #sb2 > #sb2-toolbar { 48 | background: transparent !important; 49 | } 50 | -------------------------------------------------------------------------------- /userChrome.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | @import "lacuna/lacuna.css"; 30 | 31 | 32 | -------------------------------------------------------------------------------- /js/sidebar-width-var.uc.js: -------------------------------------------------------------------------------- 1 | // sidebar-width-var.uc.js 2 | // Based on code by https://github.com/Tanay-Kar 3 | 4 | (function () { 5 | const mainWindow = document.getElementById('main-window'); 6 | const toolbox = document.getElementById('navigator-toolbox'); 7 | 8 | function updateSidebarWidthIfCompact() { 9 | const isCompact = mainWindow.getAttribute('zen-compact-mode') === 'true'; 10 | if (!isCompact) return; 11 | 12 | const value = getComputedStyle(toolbox).getPropertyValue('--zen-sidebar-width'); 13 | if (value) { 14 | mainWindow.style.setProperty('--zen-sidebar-width', value.trim()); 15 | console.log('[userChrome] Synced --zen-sidebar-width to #main-window:', value.trim()); 16 | } 17 | } 18 | 19 | // Set up a MutationObserver to watch attribute changes on #main-window 20 | const observer = new MutationObserver((mutationsList) => { 21 | for (const mutation of mutationsList) { 22 | if ( 23 | mutation.type === 'attributes' && 24 | mutation.attributeName === 'zen-compact-mode' 25 | ) { 26 | updateSidebarWidthIfCompact(); 27 | } 28 | } 29 | }); 30 | 31 | // Observe attribute changes 32 | observer.observe(mainWindow, { 33 | attributes: true, 34 | attributeFilter: ['zen-compact-mode'] 35 | }); 36 | 37 | // Optional: run it once in case the attribute is already set at load 38 | updateSidebarWidthIfCompact(); 39 | })(); 40 | -------------------------------------------------------------------------------- /natsumi-pages/modules/preferences.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Natsumi Browser - A userchrome for Zen Browser that makes things flow. 4 | 5 | Copyright (c) 2024-present Green (@greeeen-dev) 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | 25 | Natsumi Browser uses code from others. The link to the original projects or 26 | their author(s) have been provided above the used code. 27 | 28 | */ 29 | 30 | /* ==== Settings tweaks ==== */ 31 | 32 | @-moz-document url-prefix(about:preferences) { 33 | /* Patch layout list width on small screens */ 34 | #zenLayoutList { 35 | flex-wrap: wrap !important; 36 | } 37 | } -------------------------------------------------------------------------------- /lacuna-content.css: -------------------------------------------------------------------------------- 1 | * { 2 | --natsumi-primary-color: #00000066; 3 | } 4 | 5 | @media not -moz-pref("natsumi.pdfjs.disabled") { 6 | html[mozdisallowselectionprint] { 7 | &:has(head link:nth-of-type(1)[href^="resource://pdf.js"]) { 8 | body { 9 | @media -moz-pref("lacuna.pdfjs.transparent") { 10 | background-color: #ffffff44 !important; 11 | @media (prefers-color-scheme: dark) { 12 | background-color: #00000022 !important; 13 | } 14 | } 15 | } 16 | } 17 | } 18 | } 19 | 20 | 21 | 22 | :root { 23 | --pdf-js-pseudobg-bg: #dedede; 24 | @media (prefers-color-scheme: dark) { 25 | --pdf-js-pseudobg-bg: #2e2e2e; 26 | } 27 | } 28 | 29 | #mainContainer::before { 30 | content: '' !important; 31 | position: absolute !important; 32 | background: var(--pdf-js-pseudobg-bg) !important; 33 | top: 5px !important; 34 | left: 50% !important; 35 | transform: translate(-50%, 0); 36 | width: calc(100% - 10px) !important; 37 | max-width: min(var(--natsumi-pdfjs-topbar-max-width), calc(100% - 10px)) !important; 38 | border-radius: 10px; 39 | padding-top: 5px !important; 40 | padding-bottom: 5px !important; 41 | height: calc(var(--toolbar-height)) !important; 42 | z-index: -10000 !important; 43 | } 44 | 45 | .sidebarOpen::before { 46 | content: ''; 47 | background: var(--pdf-js-pseudobg-bg) !important; 48 | position: absolute !important; 49 | height: calc(100% - 62px) !important; 50 | left: 5px !important; 51 | top: auto !important; 52 | bottom: 5px !important; 53 | border-radius: 10px !important; 54 | width: var(--sidebar-width) !important; 55 | 56 | } 57 | -------------------------------------------------------------------------------- /natsumi-pages/modules/global.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Natsumi Browser - A userchrome for Zen Browser that makes things flow. 4 | 5 | Copyright (c) 2024-present Green (@greeeen-dev) 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | 25 | Natsumi Browser uses code from others. The link to the original projects or 26 | their author(s) have been provided above the used code. 27 | 28 | */ 29 | 30 | /* ==== Global tweaks ==== */ 31 | 32 | * { 33 | /*noinspection CssInvalidFunction*/ 34 | @media -moz-pref("natsumi.global.highlight-accent-color") { 35 | &::-moz-selection, &::selection { 36 | background: color-mix(in srgb, var(--natsumi-colors-primary) 40%, transparent) !important; 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /natsumi-pages/natsumi-pages.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Natsumi Browser - A userchrome for Zen Browser that makes things flow. 4 | 5 | Copyright (c) 2024-present Green (@greeeen-dev) 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | 25 | Natsumi Browser uses code from others. The link to the original projects or 26 | their author(s) have been provided above the used code. 27 | 28 | */ 29 | 30 | /* ==== Load config and Natsumi Browser Pages ==== */ 31 | 32 | @import "../natsumi-config.css"; 33 | @import "modules/preload.css"; 34 | @import "modules/pdfjs.css"; 35 | @import "modules/ff-home.css"; 36 | @import "modules/preferences.css"; 37 | @import "modules/global.css"; 38 | 39 | /* Do NOT enter any additional CSS below. */ 40 | -------------------------------------------------------------------------------- /lacuna/lacuna.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | @import "modules/lacuna-base.css"; 30 | @import "modules/lacuna-ui-tweaks.css"; 31 | @import "modules/lacuna-tabs.css"; 32 | @import "modules/lacuna-essentials.css"; 33 | @import "modules/lacuna-urlbar.css"; 34 | @import "modules/lacuna-audio-indicator.css"; 35 | @import "modules/lacuna-media-ctrl.css"; 36 | @import "modules/lacuna-animations.css"; 37 | @import "modules/lacuna-compact.css"; 38 | @import "modules/lacuna-extra.css"; 39 | @import "modules/lacuna-ff-sidebars.css"; 40 | 41 | @import "extra/lacuna-second-sidebar.css"; 42 | /* :) */ 43 | -------------------------------------------------------------------------------- /lacuna/modules/lacuna-ff-sidebars.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | .sidebar-panel { 30 | background: transparent !important; 31 | } 32 | 33 | #sidebar-box { 34 | background-color: light-dark(#dddddd44, #00000066) !important; 35 | & #sidebar-close { 36 | opacity: 0.5 !important; 37 | scale: 0.8 !important; 38 | } 39 | } 40 | 41 | #sidebar-search-container>#search-box, #viewButton { 42 | appearance: none !important; 43 | border-radius: 8px !important; 44 | padding: 5px !important; 45 | background-color: transparent !important; 46 | border: none !important; 47 | 48 | &:hover { 49 | background-color: #00000011 !important; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /lacuna/modules/lacuna-animations.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | /* === ANIMATIONS === */ 30 | .tabbrowser-tab { 31 | transition: transform 0.2s ease-in-out !important; 32 | } 33 | 34 | .tabbrowser-tab:active { 35 | transform: translate(-0.1px, 0.1px) skewX(1deg) skewY(1deg) !important; 36 | filter: blur(0.6px) !important; 37 | } 38 | 39 | @keyframes wiggle { 40 | 0% { 41 | transform: skewX(0) skewY(0); 42 | } 43 | 44 | 25% { 45 | transform: skewX(1.2deg) skewY(-1.2deg); 46 | } 47 | 48 | 75% { 49 | transform: skewX(-1.2deg) skewY(1.2deg); 50 | } 51 | 52 | 100% { 53 | transform: skewX(0) skewY(0); 54 | } 55 | } 56 | 57 | .tabbrowser-tab[multiselected] { 58 | animation: wiggle 0.3s infinite; 59 | } 60 | 61 | .toolbarbutton-1:active { 62 | transform: skewX(1deg) skewY(1deg) !important; 63 | filter: blur(0.6px) !important; 64 | } 65 | -------------------------------------------------------------------------------- /lacuna/modules/lacuna-extra.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | /* === GLANCE === */ 30 | #zen-glance-sidebar-container .toolbarbutton-1 { 31 | background: light-dark(#000000aa, #44444499) !important; 32 | backdrop-filter: blur(5px) saturate(1.2) !important; 33 | 34 | fill: light-dark(#dddddddd, #000000dd) !important; 35 | } 36 | 37 | :root:not([zen-single-toolbar]) #nav-bar{ 38 | margin-top: 0px !important; 39 | } 40 | 41 | /* === WORKSPACE INDICATOR === */ 42 | .zen-current-workspace-indicator { 43 | &:hover, 44 | &[open='true'] { 45 | &::before { 46 | background: transparent !important; 47 | } 48 | } 49 | } 50 | 51 | /* === SECOND WINDOW BORDER === */ 52 | #zen-main-app-wrapper { 53 | padding: 0px !important; 54 | margin-top: 0px !important; 55 | margin-left: 0px !important; 56 | margin-right: 0px !important; 57 | margin-bottom: 0px !important; 58 | border: 2px solid rgba(215, 215, 217, 0.1); 59 | } 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /lacuna/modules/lacuna-base.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | browser { 30 | /* Needed for blur */ 31 | clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); 32 | } 33 | 34 | /* State-less Tab background */ 35 | browser[transparent='true'] { 36 | background: light-dark(#ffffff33, #ffffff09) !important; 37 | } 38 | 39 | /* Based on code by Verix */ 40 | /* Hide all results after the 6th one */ 41 | #urlbar[open] #urlbar-results>*:nth-child(n+6) { 42 | display: none !important; 43 | } 44 | 45 | /* Transparent workspace custom Primary Colour */ 46 | /* Replace workspace id from about:config > `zen.workspaces.active` */ 47 | 48 | :root[zen-workspace-id="991ff3e9-a298-46e6-b95f-b04753959811"] { 49 | --zen-primary-color: #dedede !important; 50 | /* Change according to wallpaper */ 51 | } 52 | 53 | /* Makes top 30px a draggable area for the window */ 54 | @media not (-moz-bool-pref: "lacuna.utils.disable-top-drag") { 55 | @media (-moz-bool-pref: "zen.view.use-single-toolbar") { 56 | #tabbrowser-tabbox::after { 57 | content: "" !important; 58 | position: absolute !important; 59 | height: 15px !important; 60 | width: 100% !important; 61 | -moz-window-dragging: drag !important; 62 | } 63 | } 64 | } 65 | 66 | -------------------------------------------------------------------------------- /lacuna/modules/lacuna-essentials.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | /* Colouring Essentials */ 30 | .zen-essentials-container .tabbrowser-tab { 31 | .tab-background { 32 | background-color: light-dark(rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.25)) !important; 33 | } 34 | 35 | &:hover .tab-background { 36 | background-color: light-dark(rgba(255, 255, 255, 0.45), rgba(0, 0, 0, 0.45)) !important; 37 | } 38 | 39 | @media (-moz-bool-pref: "zen.theme.essentials-favicon-bg") { 40 | &[visuallyselected] .tab-background { 41 | &::after { 42 | left: -50% !important; 43 | top: -50% !important; 44 | width: 200% !important; 45 | height: 200% !important; 46 | filter: blur (20px) !important; 47 | } 48 | 49 | &::before { 50 | mask-image: none !important; 51 | background-color: light-dark(color-mix(in srgb, #ffffff 65%, transparent), 52 | color-mix(in srgb, #000000 55%, transparent)) !important; 53 | } 54 | } 55 | 56 | &[visuallyselected]:hover .tab-background::before { 57 | background-color: light-dark(color-mix(in srgb, #ffffff 55%, transparent), 58 | color-mix(in srgb, #000000 65%, transparent)) !important; 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /lacuna/modules/lacuna-compact.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | /* === BLUR COMPACT SIDEBAR === */ 30 | /* Based on code by https://github.com/Tanay-Kar */ 31 | 32 | 33 | body:has([zen-compact-mode="true"]) { 34 | #titlebar { 35 | margin: 15px !important; 36 | background: color-mix(in srgb, color-mix(in srgb, var(--zen-primary-color) 20%, light-dark(#eeeeee, #000000)) 80%, transparent) !important; 37 | backdrop-filter: blur(20px) saturate(1.4) contrast(1.1) !important; 38 | border-radius: 10px !important; 39 | &::before { 40 | background: transparent !important; 41 | } 42 | } 43 | } 44 | 45 | /* Fix for transparent websites */ 46 | /* Requires `sidebar-width-blur.js` - Check readme for instructions */ 47 | 48 | 49 | body:has([zen-compact-mode="true"] [zen-user-show=""], [zen-compact-mode="true"] #navigator-toolbox[zen-has-hover="true"]) #zen-main-app-wrapper::before { 50 | content: ''; 51 | position: absolute !important; 52 | top: calc(15px + var(--zen-element-separation)) !important; 53 | left: calc(15px + var(--zen-element-separation)) !important; 54 | height: calc(100% - 30px - 2 * var(--zen-element-separation)) !important; 55 | width: var(--zen-sidebar-width) !important; 56 | border-radius: 10px !important; 57 | background: #333333 !important; 58 | } 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /lacuna/modules/lacuna-ui-tweaks.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | /* Forces suggested font rules : not by default */ 30 | @media not (-moz-bool-pref: "lacuna.ui.default-font") { 31 | * { 32 | --strict-font-size: 11px; 33 | --strict-font-family: "SF Pro Display", "Roboto", sans-serif; 34 | font-family: var(--strict-font-family) !important; 35 | font-size: var(--strict-font-size) !important; 36 | } 37 | 38 | .tab-label { 39 | font-weight: 600; 40 | opacity: 0.8; 41 | } 42 | 43 | .tabbrowser-tab[selected="true"] 44 | > .tab-stack 45 | > .tab-content 46 | > .tab-label-container 47 | > .tab-label { 48 | font-weight: 600; 49 | opacity: 0.9; 50 | } 51 | 52 | #new-tab-button > .toolbarbutton-text { 53 | font-weight: 700 !important; 54 | opacity: 0.7; 55 | } 56 | 57 | #new-tab-button { 58 | padding-left: 15px !important; 59 | } 60 | 61 | #urlbar-input { 62 | font-weight: 600 !important; 63 | opacity: 0.6; 64 | } 65 | 66 | #urlbar-zoom-button > .toolbarbutton-text { 67 | font-weight: 600; 68 | opacity: 0.4; 69 | } 70 | 71 | #identity-icon-label { 72 | opacity: 0.4; 73 | font-weight: 600; 74 | } 75 | 76 | .sidebar-panel { 77 | font-weight: 600 !important; 78 | opacity: 0.7 !important; 79 | } 80 | 81 | .zen-workspace-tabs-section > .zen-current-workspace-indicator-name { 82 | margin-left: 5px !important; 83 | font-weight: 700 !important; 84 | } 85 | } 86 | 87 | -------------------------------------------------------------------------------- /misc/bonjourr.json: -------------------------------------------------------------------------------- 1 | { 2 | "about": { 3 | "browser": "firefox", 4 | "version": "20.4.2" 5 | }, 6 | "showall": true, 7 | "lang": "en", 8 | "dark": "system", 9 | "favicon": "💠", 10 | "tabtitle": "Home", 11 | "greeting": "", 12 | "pagegap": 6, 13 | "pagewidth": 1300, 14 | "time": true, 15 | "main": true, 16 | "dateformat": "auto", 17 | "background_blur": 0, 18 | "background_bright": 0.42, 19 | "background_type": "unsplash", 20 | "quicklinks": false, 21 | "syncbookmarks": null, 22 | "textShadow": 0, 23 | "announcements": "major", 24 | "review": -1, 25 | "css": "", 26 | "hide": { 27 | "settingsicon": true, 28 | "weatherdesc": false, 29 | "weathericon": false, 30 | "greetings": false 31 | }, 32 | "linkstyle": "medium", 33 | "linktitles": true, 34 | "linkbackgrounds": false, 35 | "linknewtab": false, 36 | "linksrow": 6, 37 | "linksfppmke": { 38 | "_id": "linksfppmke", 39 | "parent": "default", 40 | "order": 0, 41 | "title": "Google", 42 | "url": "https://www.google.com" 43 | }, 44 | "linkgroups": { 45 | "on": false, 46 | "selected": "default", 47 | "groups": [ 48 | "default" 49 | ], 50 | "pinned": [], 51 | "synced": [] 52 | }, 53 | "clock": { 54 | "ampm": true, 55 | "size": 1.375, 56 | "analog": false, 57 | "seconds": false, 58 | "timezone": "auto", 59 | "ampmlabel": false, 60 | "worldclocks": false 61 | }, 62 | "analogstyle": { 63 | "face": "none", 64 | "hands": "modern", 65 | "shape": "round", 66 | "border": "#fff0", 67 | "background": "#fff0" 68 | }, 69 | "worldclocks": [ 70 | { 71 | "timezone": "+0", 72 | "region": "Paris" 73 | } 74 | ], 75 | "unsplash": { 76 | "every": "hour", 77 | "collection": "6iHCDyFf_Ig,jSaULAjnN5g", 78 | "lastCollec": "user", 79 | "time": 1738159012332 80 | }, 81 | "weather": { 82 | "ccode": "IN", 83 | "city": "Netājinagar", 84 | "unit": "metric", 85 | "provider": "", 86 | "moreinfo": "accu", 87 | "forecast": "auto", 88 | "temperature": "actual", 89 | "geolocation": "off" 90 | }, 91 | "notes": { 92 | "on": false, 93 | "background": "#fff0", 94 | "opacity": 0.1, 95 | "width": 70, 96 | "align": "left", 97 | "text": "" 98 | }, 99 | "searchbar": { 100 | "on": false, 101 | "opacity": 0.1, 102 | "newtab": false, 103 | "suggestions": true, 104 | "engine": "default", 105 | "request": "", 106 | "placeholder": "" 107 | }, 108 | "quotes": { 109 | "on": true, 110 | "author": true, 111 | "type": "classic", 112 | "frequency": "day", 113 | "last": 1738115056731 114 | }, 115 | "font": { 116 | "size": "10.9", 117 | "family": "Inter", 118 | "system": true, 119 | "weight": "100", 120 | "weightlist": [] 121 | }, 122 | "supporters": { 123 | "enabled": true, 124 | "closed": true, 125 | "month": 1 126 | }, 127 | "move": { 128 | "selection": "single", 129 | "layouts": { 130 | "single": { 131 | "items": { 132 | "main": { 133 | "text": "", 134 | "box": "end center" 135 | }, 136 | "quotes": { 137 | "text": "", 138 | "box": "end center" 139 | } 140 | }, 141 | "grid": [ 142 | [ 143 | "time" 144 | ], 145 | [ 146 | "main" 147 | ], 148 | [ 149 | "quotes" 150 | ] 151 | ] 152 | } 153 | } 154 | } 155 | } 156 | -------------------------------------------------------------------------------- /lacuna/modules/lacuna-media-ctrl.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | /* === BETTER MEDIA CONTROL === */ 30 | /* Based on code by https://github.com/Tanay-Kar */ 31 | 32 | #zen-media-controls-toolbar>toolbaritem { 33 | background-color: light-dark(color-mix(in srgb, #ffffff 35%, transparent), 34 | color-mix(in srgb, #000000 35%, transparent)) !important; 35 | backdrop-filter: saturate(1.8) contrast(1.6) blur(10px) !important; 36 | } 37 | 38 | 39 | 40 | #zen-media-controls-toolbar #zen-media-main-vbox { 41 | padding: 5px !important; 42 | } 43 | 44 | #zen-media-controls-toolbar #zen-media-progress-bar { 45 | transition: height opacity 0.2s ease; 46 | } 47 | 48 | #zen-media-controls-toolbar #zen-media-progress-bar::-moz-range-thumb { 49 | opacity: 0 !important; 50 | height: 6px !important; 51 | width: 6px !important; 52 | } 53 | 54 | #zen-media-controls-toolbar #zen-media-progress-bar::-moz-range-progress { 55 | box-shadow: var(--zen-colors-primary) 0px 0px 5px !important; 56 | } 57 | 58 | #zen-media-controls-toolbar #zen-media-progress-hbox { 59 | --progress-height: 2px; 60 | } 61 | 62 | 63 | 64 | #zen-media-controls-toolbar #zen-media-progress-hbox:hover { 65 | --progress-height: 3px; 66 | 67 | & #zen-media-progress-bar::-moz-range-thumb { 68 | opacity: 1 !important; 69 | } 70 | } 71 | 72 | 73 | 74 | #zen-media-controls-toolbar #zen-media-info-vbox::before { 75 | background: transparent !important; 76 | } 77 | 78 | #zen-media-controls-toolbar:hover #zen-media-info-vbox { 79 | padding-bottom: 60px !important; 80 | } 81 | 82 | 83 | 84 | #zen-media-controls-toolbar #zen-media-title { 85 | font-weight: 900 !important; 86 | opacity: 1 !important; 87 | } 88 | 89 | #zen-media-controls-toolbar #zen-media-artist { 90 | font-weight: 600 !important; 91 | opacity: 0.7 !important; 92 | } 93 | 94 | 95 | #zen-media-current-time { 96 | font-weight: 1000 !important; 97 | opacity: 0.6 !important; 98 | } 99 | 100 | #zen-media-duration { 101 | font-weight: 900 !important; 102 | opacity: 0.4 !important; 103 | } 104 | 105 | #zen-media-controls-toolbar #zen-media-controls-hbox { 106 | transition: opacity 0.1s ease; 107 | 108 | #zen-media-nexttrack-button { 109 | opacity: 0.6 !important; 110 | } 111 | 112 | #zen-media-previoustrack-button { 113 | opacity: 0.6 !important; 114 | } 115 | } 116 | 117 | #zen-media-controls-toolbar { 118 | image.toolbarbutton-icon { 119 | width: 24px !important; 120 | height: 24px !important; 121 | } 122 | } 123 | 124 | /* Disables dancing notes animation */ 125 | @media (-moz-bool-pref: "lacuna.ui.disable-dancing-notes") { 126 | #zen-media-controls-toolbar { 127 | & #zen-media-focus-button::after { 128 | background: none !important; 129 | } 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | Lacuna 3 |

4 | 5 |

6 | 7 |
8 | A Minimal Customization Pack for Zen Browser 9 |

10 | 11 | ## What is Lacuna ? 12 | **_Lacuna_** (_/ləˈkjuːnə/_) is a Latin word meaning "empty space" or "void." This customization pack embodies minimalism and clean design, creating a peaceful and tranquil browsing experience. 13 | 14 | ## Features 15 | 16 | ### Clean look 17 | ![clean](https://github.com/user-attachments/assets/4bba9ff8-12e0-4796-ad22-f8d4d14a9b71) 18 | 19 | ### Cohesive design 20 | ![cohesive](https://github.com/user-attachments/assets/4b047fc5-0ff2-455f-bfb6-fec145807541) 21 |
credit: [Cohesion](https://github.com/TheBigWazz/ZenThemes/tree/main/Cohesion) 22 | 23 | ### Minimal search bar 24 | ![search](https://github.com/user-attachments/assets/9d7bba5a-589b-4892-97e4-1516a39c77d7) 25 | 26 | ### Blurred UI 27 | ![Screenshot From 2025-02-21 17-13-10](https://github.com/user-attachments/assets/0d379129-bfbe-4b7e-8434-3db5d76e7545) 28 | 29 | ## Better toolbar customization UI 30 | ![Screenshot From 2025-02-21 16-35-35](https://github.com/user-attachments/assets/a15dae8c-ba55-41f8-bd8b-4904b56796e1) 31 | 32 | ### Better PDF reader UI 33 | ![pdfreader](https://github.com/user-attachments/assets/bdb20a89-b21f-4a2e-b42f-28bd5dec1c1c) 34 |
credit: [Natsumi](https://github.com/greeeen-dev/natsumi-browser) 35 | 36 | 37 | ## Installation 38 | #### 1. Installing css 39 | - If you have not already, follow the [Zen Live Editing](https://docs.zen-browser.app/guides/live-editing) guide to first create your **chrome** folder. 40 | - Copy the `lacuna` folder to the chrome folder and add the following snippet to the top of your `userChrome.css` 41 | 42 | ```css 43 | @import "lacuna/lacuna.css"; 44 | ``` 45 | 46 | **or** Paste the provided `userChrome.css` in the chrome folder 47 | 48 | - Copy the `css/userContent.css` to the same folder. 49 | - Restart the browser 50 | 51 | #### 2. Recommended Mods 52 | 53 | 54 | - [Better Find Bar](https://zen-browser.app/mods/a6335949-4465-4b71-926c-4a52d34bc9c0) 55 | 56 | - [Load Bar](https://zen-browser.app/mods/ae7868dc-1fa1-469e-8b89-a5edf7ab1f24) 57 | 58 | - [Floating Status Bar](https://zen-browser.app/mods/906c6915-5677-48ff-9bfc-096a02a72379) 59 | 60 | - [Hide Extension Name](https://zen-browser.app/mods/cb15abdb-0514-4e09-8ce5-722cf1f4a20f) 61 | 62 | - [No Search Shortcut Icons](https://zen-browser.app/mods/d7076c31-f6c1-4f28-b2e8-15b95f5a3d6f) 63 | 64 | - [SuperPins](https://zen-browser.app/mods/ad97bb70-0066-4e42-9b5f-173a5e42c6fc) 65 |

66 | 67 |

68 |
69 | 70 | #### 3. Miscellaneous setup 71 | ##### **Setting up Bonjourr new tab** 72 | - Install [Bonjourr](https://addons.mozilla.org/en-US/firefox/addon/bonjourr-startpage/) from the Firefox Add-ons Store 73 | - Import the config file [bonjourr.json](./misc/bonjourr.json) 74 | 75 | 76 | #### 4. Recommended configs 77 | | Config | Value | 78 | |-------------------------------------------|-------| 79 | | `zen.theme.color-prefs.amoled` | true | 80 | | `zen.theme.essentials-favicon-bg` | true | 81 | | `zen.themes.disable-all` | false | 82 | | `zen.urlbar.behavior` | float | 83 | | `zen.view.compact.hide-toolbar` | true | 84 | | `zen.view.grey-out-inactive-windows` | false | 85 | | `zen.workspaces.natural-scroll` | true | 86 | 87 | ## Lacuna configs 88 | These are a few configs which will allow you to control certain features of lacuna 89 | - `lacuna.sidebar.compact-transparent` : Enables transparent compact mode sidebar 90 | - `lacuna.tab.default-audio-indicator` : Disables custom audio indicator in favour of the default one 91 | - `lacuna.tab.pinned-tabs-bg` : Makes pinned tabs background look similar to essentials 92 | - `lacuna.urlbar.smaller-compact-mode` : Fixes url bar blur with *Smaller Compact Mode* mod 93 | - `lacuna.ui.default-font` : Applies default zen font settings 94 | - `lacuna.ui.disable-dancing-notes` : Disables dancing notes animation on media control ui 95 | - `lacuna.pdfjs.transparent` : Adds a transparent background to the pdf viewer 96 | - `lacuna.tab.no-container-indicator` : Hides container indicator from tabs 97 | 98 | > [!Note] 99 | > You'd have to create these configs yourself in about:config. All configs are of type `boolean` unless mentioned otherwise 100 | 101 | 102 | ## Credits 103 | Thank you to: 104 | - [greeeen-dev](https://github.com/greeeen-dev) for the amazing work in [Natsumi Browser](https://github.com/greeeen-dev/natsumi-browser) 105 | - [TheBigWazz](https://github.com/TheBigWazz) for the incredible work in [Cohesion](https://github.com/TheBigWazz/ZenThemes/tree/main/Cohesion) 106 | - [mr-cheff](https://github.com/mr-cheff) and Zen's [contributors](https://github.com/zen-browser/desktop/graphs/contributors) for creating Zen Browser 107 | -------------------------------------------------------------------------------- /natsumi-pages/modules/preload.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Natsumi Browser - A userchrome for Zen Browser that makes things flow. 4 | 5 | Copyright (c) 2024-present Green (@greeeen-dev) 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | 25 | Natsumi Browser uses code from others. The link to the original projects or 26 | their author(s) have been provided above the used code. 27 | 28 | */ 29 | 30 | /* ==== Apply config ==== */ 31 | 32 | /* 33 | NOTE: DO NOT USE THIS AS YOUR CONFIG FILE. 34 | 35 | The below code applies your config (or default values if needed) and they should never be modified. 36 | Edit the natsumi-config.css file instead. 37 | */ 38 | 39 | * { 40 | /* Colors */ 41 | --natsumi-primary-color: var(--natsumi-pages-accent-color, #aac7ff); 42 | --natsumi-colors-primary: color-mix(in srgb, var(--natsumi-primary-color) 50%, black 50%); 43 | --natsumi-colors-secondary: color-mix(in srgb, var(--natsumi-colors-primary) 20%, white 80%); 44 | --natsumi-colors-tertiary: color-mix(in srgb, var(--natsumi-primary-color) 2%, white 98%); 45 | --natsumi-colors-primary-foreground: color-mix(in srgb, var(--natsumi-primary-color) 80%, white 20%); 46 | 47 | @media (prefers-color-scheme: dark) { 48 | --natsumi-colors-primary: color-mix(in srgb, var(--natsumi-primary-color) 20%, #202020 80%); 49 | --natsumi-colors-secondary: color-mix(in srgb, var(--natsumi-primary-color) 30%, #202020 70%); 50 | --natsumi-colors-tertiary: color-mix(in srgb, var(--natsumi-primary-color) 1%, #202020 99%); 51 | --natsumi-colors-primary-foreground: color-mix(in srgb, var(--natsumi-primary-color) 80%, white 20%); 52 | 53 | @media -moz-pref('zen.theme.color-prefs.colorful') { 54 | --natsumi-colors-primary: color-mix(in srgb, var(--natsumi-primary-color) 50%, black 50%); 55 | --natsumi-colors-secondary: color-mix(in srgb, var(--natsumi-primary-color) 40%, black 60%); 56 | --natsumi-colors-tertiary: color-mix(in srgb, var(--natsumi-primary-color) 15%, black 85%); 57 | --natsumi-colors-primary-foreground: color-mix(in srgb, var(--natsumi-primary-color) 80%, white 20%); 58 | } 59 | } 60 | 61 | /* Material: Mistcrylic */ 62 | --natsumi-mat-mc-background: color-mix(in srgb, var(--natsumi-primary-color) 40%, rgba(255, 255, 255, 0.8)); 63 | --natsumi-mat-mc-shadow-color: rgba(0, 0, 0, 0.3); 64 | --natsumi-mat-mc-border-color: rgba(255, 255, 255, 0.1); 65 | --natsumi-mat-mc-shadow-size: 10px; 66 | --natsumi-mat-mc-blur-radius: 15px; 67 | 68 | @media (prefers-color-scheme: dark) { 69 | --natsumi-mat-mc-background: color-mix(in srgb, var(--natsumi-colors-secondary) 50%, rgba(0, 0, 0, 0.8)); 70 | } 71 | 72 | /* Material: Haze */ 73 | --natsumi-mat-hz-background: rgba(255, 255, 255, 0.8); 74 | --natsumi-mat-hz-background-tinted: color-mix(in srgb, var(--natsumi-primary-color) 20%, rgba(255, 255, 255, 0.8)); 75 | --natsumi-mat-hz-blur-radius: 100px; 76 | --natsumi-mat-hz-shadow-color: rgba(0, 0, 0, 0.3); 77 | --natsumi-mat-hz-shadow-size: 10px; 78 | --natsumi-mat-hz-saturation: 3; 79 | --natsumi-mat-hz-contrast: 2; 80 | 81 | @media (prefers-color-scheme: dark) { 82 | --natsumi-mat-hz-background: rgba(0, 0, 0, 0.8); 83 | --natsumi-mat-hz-background-tinted: color-mix(in srgb, var(--natsumi-colors-secondary) 20%, rgba(0, 0, 0, 0.8)); 84 | } 85 | 86 | /* Material: Glass */ 87 | --natsumi-mat-ga-background: color-mix(in srgb, var(--natsumi-colors-secondary) 75%, transparent); 88 | --natsumi-mat-ga-blur-radius: 10px; 89 | --natsumi-mat-ga-shadow-size: 10px; 90 | --natsumi-mat-ga-shadow-opacity: 75%; 91 | --natsumi-mat-ga-shadow-color: color-mix(in srgb, var(--natsumi-colors-secondary) var(--natsumi-mat-ga-shadow-opacity), black); 92 | 93 | @media (prefers-color-scheme: dark) { 94 | --natsumi-mat-ga-shadow-color: color-mix(in srgb, var(--natsumi-colors-secondary) var(--natsumi-mat-ga-shadow-opacity), white); 95 | 96 | @media -moz-pref("natsumi.theme.force-glass-dark-shadows") { 97 | --natsumi-mat-ga-shadow-color: color-mix(in srgb, var(--natsumi-colors-secondary) var(--natsumi-mat-ga-shadow-opacity), black); 98 | } 99 | } 100 | 101 | /* pdf.js */ 102 | --natsumi-pdfjs-topbar-max-width: var(--pdfjs-topbar-max-width, 750px); 103 | 104 | /* FF home */ 105 | --natsumi-home-bg: var(--home-background-url, none); 106 | } 107 | -------------------------------------------------------------------------------- /lacuna/modules/lacuna-urlbar.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | /* For moving the URL bar */ 30 | #nav-bar { 31 | margin-top: -5px !important; 32 | /* Reposition URL Bar*/ 33 | width: 100% !important; 34 | align-self: center !important; 35 | } 36 | 37 | #urlbar-input { 38 | text-align: center !important; 39 | } 40 | 41 | /* Center align */ 42 | #urlbar>.urlbar-input-container { 43 | align-self: center !important; 44 | } 45 | 46 | .urlbarView-body-inner { 47 | #urlbar[open]>.urlbarView>.urlbarView-body-outer>& { 48 | border-top: none !important; 49 | } 50 | } 51 | 52 | #urlbar:not([open]) { 53 | transition: opacity ease-in-out 5s; 54 | 55 | #urlbar-background { 56 | background-color: light-dark(color-mix(in srgb, #ffffff 25%, transparent), color-mix(in srgb, #000000 25%, transparent)) !important; 57 | } 58 | 59 | #urlbar-zoom-button { 60 | display: none !important; 61 | } 62 | 63 | &:not(:hover) { 64 | 65 | #userContext-icons, 66 | #identity-permission-box, 67 | #identity-icon-box { 68 | margin-inline-start: calc(-8px - 2 * var(--urlbar-icon-padding)) !important; 69 | transform: translateX(100%); 70 | opacity: 0; 71 | transition: all 0.1s ease; 72 | } 73 | } 74 | 75 | &:hover { 76 | 77 | #userContext-icons, 78 | #identity-permission-box, 79 | #identity-icon-box { 80 | transform: none !important; 81 | } 82 | } 83 | } 84 | 85 | /* Focus Blur */ 86 | #zen-tabbox-wrapper { 87 | transition: filter 0.1s ease-in-out !important; 88 | } 89 | 90 | #browser:has(#urlbar[open]) #zen-tabbox-wrapper { 91 | filter: blur(4px) brightness(80%) !important; 92 | } 93 | 94 | #urlbar[open][zen-floating-urlbar="true"] { 95 | #urlbar-background { 96 | margin: -5px !important; 97 | border: none !important; 98 | background-color: light-dark(color-mix(in srgb, #fdfdfd 75%, transparent), color-mix(in srgb, #0e0e0e 75%, transparent)) !important; 99 | } 100 | 101 | #urlbar-container:has(&) { 102 | background: light-dark(color-mix(in srgb, #fdfdfd 20%, transparent), color-mix(in srgb, #0e0e0e 40%, transparent)) !important; 103 | } 104 | } 105 | 106 | .urlbarView-row[selected] { 107 | background: var(--urlbarView-highlight-background) !important; 108 | } 109 | 110 | .urlbarView-row-inner[selected] .urlbarView-favicon { 111 | fill: white !important; 112 | background: none !important; 113 | } 114 | 115 | :root:not([zen-compact-mode="true"]) { 116 | #urlbar[open][zen-floating-urlbar="true"] { 117 | #urlbar-background { 118 | backdrop-filter: blur(20px) !important; 119 | } 120 | } 121 | } 122 | 123 | 124 | /* === BUTTONS ABOVE URL BAR === */ 125 | #zen-sidebar-top-buttons, 126 | #zen-sidebar-top-buttons-customization-target { 127 | & toolbarbutton:not(.titlebar-button) { 128 | margin-top: -4px !important; 129 | scale: 0.84; 130 | } 131 | } 132 | 133 | #PanelUI-menu-button { 134 | list-style-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F>') !important; 135 | margin: 0px !important; 136 | 137 | @media (prefers-color-scheme: light) { 138 | filter: invert(1); 139 | } 140 | } 141 | -------------------------------------------------------------------------------- /lacuna/modules/lacuna-tabs.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | 30 | /* reduce favicon sizes */ 31 | :root[zen-sidebar-expanded] .tabbrowser-tab:not([zen-glance-tab="true"]) .tab-icon-image:not([pinned]) { 32 | width: 14px !important; 33 | height: 14px !important; 34 | margin-left: 3.5px !important; 35 | } 36 | 37 | /* Hides the splitter/resize bar, but still functional */ 38 | #zen-sidebar-splitter { 39 | opacity: 0 !important; 40 | border: none !important; 41 | } 42 | 43 | /* Common pointer events */ 44 | .titlebar-buttonbox-container, 45 | .titlebar-buttonbox, 46 | .titlebar-button, 47 | #urlbar, 48 | #urlbar-input, 49 | .urlbarView-body-outer, 50 | .urlbarView-body-inner { 51 | pointer-events: auto !important; 52 | } 53 | 54 | /*Transition for tab background */ 55 | .tabbrowser-tab .tab-background { 56 | transition: background-color 0.2s ease; 57 | box-shadow: none !important; 58 | } 59 | 60 | /* Bottom fade for tabs overflow */ 61 | #zen-tabs-wrapper { 62 | mask-image: linear-gradient(to top, transparent, black 20px) !important; 63 | } 64 | 65 | @media (-moz-bool-pref: "lacuna.tab.pinned-tabs-bg") { 66 | .tabbrowser-tab[pinned]:not([zen-essential="true"]) { 67 | .tab-background { 68 | background-color: light-dark(rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.25)) !important; 69 | } 70 | 71 | &:hover .tab-background { 72 | background-color: light-dark(rgba(255, 255, 255, 0.45), rgba(0, 0, 0, 0.45)) !important; 73 | } 74 | } 75 | } 76 | 77 | /*When tabs are selected/active */ 78 | .tabbrowser-tab .tab-background:is([selected], [multiselected]) { 79 | background-color: light-dark(color-mix(in srgb, #fefefe 45%, transparent), 80 | color-mix(in srgb, #000000 35%, transparent)) !important; 81 | } 82 | 83 | tab-group[split-view-group] { 84 | 85 | &:hover { 86 | background-color: var(--tab-hover-background-color); 87 | } 88 | } 89 | 90 | :root:not([zen-sidebar-expanded]) tab-group[split-view-group] { 91 | margin-left: 0px !important; 92 | margin-right: 0px !important; 93 | } 94 | 95 | /*Styling for Tab close button*/ 96 | .tab-close-button { 97 | width: 18px !important; 98 | height: 18px !important; 99 | padding: 5px !important; 100 | border-radius: 20px !important; 101 | } 102 | 103 | /*Tab close button colors, also for hover*/ 104 | .close-icon { 105 | background-color: color-mix(in srgb, 106 | currentColor 10%, 107 | transparent) !important; 108 | } 109 | 110 | .close-icon:hover { 111 | transition: 0.5s !important; 112 | background-color: color-mix(in srgb, 113 | currentColor 20%, 114 | transparent) !important; 115 | } 116 | 117 | /* Container Indicator */ 118 | /* Based on code by https://github.com/Tanay-Kar */ 119 | 120 | .tabbrowser-tab[usercontextid] .tab-background .tab-context-line { 121 | display: none !important; 122 | } 123 | 124 | .tabbrowser-tab[usercontextid] .tab-background::after { 125 | content: ""; 126 | position: absolute !important; 127 | top: 8px !important; 128 | left: 8px !important; 129 | width: 6px !important; 130 | height: 6px !important; 131 | opacity: 0.5 !important; 132 | border-radius: 2.5px !important; 133 | filter: light-dark(saturate(0.8), saturate(1.4)) !important; 134 | background: var(--identity-tab-color) !important; 135 | } 136 | 137 | @keyframes pulsate { 138 | 0% { 139 | box-shadow: 0 0 1px var(--identity-tab-color), 140 | 0 0 2px var(--identity-tab-color), 141 | 0 0 3px var(--identity-tab-color), 142 | 0 0 4px var(--identity-tab-color); 143 | filter: light-dark(saturate(1) brightness(0.5), saturate(1.4) brightness(1.1)) !important; 144 | } 145 | 50% { 146 | box-shadow: 0 0 2px var(--identity-tab-color), 147 | 0 0 6px var(--identity-tab-color), 148 | 0 0 12px var(--identity-tab-color), 149 | 0 0 24px var(--identity-tab-color); 150 | filter: light-dark(saturate(1) brightness(0.7), saturate(1.5) brightness(1.3)) !important; 151 | } 152 | 100% { 153 | box-shadow: 0 0 1px var(--identity-tab-color), 154 | 0 0 2px var(--identity-tab-color), 155 | 0 0 3px var(--identity-tab-color), 156 | 0 0 4px var(--identity-tab-color); 157 | filter: light-dark(saturate(1) brightness(0.5), saturate(1.4) brightness(1.1)) !important; 158 | } 159 | } 160 | 161 | .tabbrowser-tab[usercontextid]:hover .tab-background::after { 162 | opacity: 1 !important; 163 | height: 5px !important; 164 | width: 5px !important; 165 | animation: pulsate 2s infinite ease-in-out !important; 166 | } 167 | 168 | @media (-moz-bool-pref: "lacuna.tab.no-container-indicator") { 169 | .tabbrowser-tab[usercontextid] .tab-background::after { 170 | display: none !important; 171 | } 172 | } 173 | -------------------------------------------------------------------------------- /lacuna/modules/lacuna-audio-indicator.css: -------------------------------------------------------------------------------- 1 | /* 2 | Lacuna - A Minimal Customization Pack for Zen Browser 3 | 4 | Copyright (c) 2025 Tanay Kar 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | Lacuna uses code from others. The link to the original projects or 25 | their author(s) have been provided above the used code. 26 | 27 | */ 28 | 29 | /* === PLAYING/MUTE ICON APPEARANCE CUSTOMIZATION === */ 30 | /* Based on code by https://github.com/Tanay-Kar */ 31 | 32 | @media not (-moz-bool-pref: "lacuna.tab.default-audio-indicator") { 33 | .tabbrowser-tab img { 34 | transition: opacity 0.3s ease-in-out; 35 | } 36 | 37 | .tabbrowser-tab:is([soundplaying], [muted], [activemedia-blocked]) img { 38 | opacity: 0 !important; 39 | transition: opacity 0.1s !important; 40 | } 41 | 42 | .tab-icon-overlay { 43 | &:is([soundplaying], [muted], [activemedia-blocked]) { 44 | display: block !important; 45 | border: 0px !important; 46 | border-radius: 0px !important; 47 | top: 0px !important; 48 | right: 0px !important; 49 | scale: 1.5 !important; 50 | opacity: 0.9 !important; 51 | margin: 0px 3px !important; 52 | background: white !important; 53 | /* svg modified from https://samherbert.net/svg-loaders/ */ 54 | --play-svg: url("data:image/svg+xml,%3Csvg%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%20135%20140%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%22%3E%3Crect%20y%3D%2210%22%20width%3D%2215%22%20height%3D%22120%22%20rx%3D%226%22%3E%3Canimate%20attributeName%3D%22height%22%20begin%3D%220.5s%22%20dur%3D%221s%22%20values%3D%22120%3B110%3B100%3B90%3B80%3B70%3B60%3B50%3B40%3B140%3B120%22%20calcMode%3D%22linear%22%20repeatCount%3D%22indefinite%22%2F%3E%3Canimate%20attributeName%3D%22y%22%20begin%3D%220.5s%22%20dur%3D%221s%22%20values%3D%2210%3B15%3B20%3B25%3B30%3B35%3B40%3B45%3B50%3B0%3B10%22%20calcMode%3D%22linear%22%20repeatCount%3D%22indefinite%22%2F%3E%3C%2Frect%3E%3Crect%20x%3D%2230%22%20y%3D%2210%22%20width%3D%2215%22%20height%3D%22120%22%20rx%3D%226%22%3E%3Canimate%20attributeName%3D%22height%22%20begin%3D%220.25s%22%20dur%3D%221s%22%20values%3D%22120%3B110%3B100%3B90%3B80%3B70%3B60%3B50%3B40%3B140%3B120%22%20calcMode%3D%22linear%22%20repeatCount%3D%22indefinite%22%2F%3E%3Canimate%20attributeName%3D%22y%22%20begin%3D%220.25s%22%20dur%3D%221s%22%20values%3D%2210%3B15%3B20%3B25%3B30%3B35%3B40%3B45%3B50%3B0%3B10%22%20calcMode%3D%22linear%22%20repeatCount%3D%22indefinite%22%2F%3E%3C%2Frect%3E%3Crect%20x%3D%2260%22%20width%3D%2215%22%20height%3D%22140%22%20rx%3D%226%22%3E%3Canimate%20attributeName%3D%22height%22%20begin%3D%220s%22%20dur%3D%221s%22%20values%3D%22120%3B110%3B100%3B90%3B80%3B70%3B60%3B50%3B40%3B140%3B120%22%20calcMode%3D%22linear%22%20repeatCount%3D%22indefinite%22%2F%3E%3Canimate%20attributeName%3D%22y%22%20begin%3D%220s%22%20dur%3D%221s%22%20values%3D%2210%3B15%3B20%3B25%3B30%3B35%3B40%3B45%3B50%3B0%3B10%22%20calcMode%3D%22linear%22%20repeatCount%3D%22indefinite%22%2F%3E%3C%2Frect%3E%3Crect%20x%3D%2290%22%20y%3D%2210%22%20width%3D%2215%22%20height%3D%22120%22%20rx%3D%226%22%3E%3Canimate%20attributeName%3D%22height%22%20begin%3D%220.25s%22%20dur%3D%221s%22%20values%3D%22120%3B110%3B100%3B90%3B80%3B70%3B60%3B50%3B40%3B140%3B120%22%20calcMode%3D%22linear%22%20repeatCount%3D%22indefinite%22%2F%3E%3Canimate%20attributeName%3D%22y%22%20begin%3D%220.25s%22%20dur%3D%221s%22%20values%3D%2210%3B15%3B20%3B25%3B30%3B35%3B40%3B45%3B50%3B0%3B10%22%20calcMode%3D%22linear%22%20repeatCount%3D%22indefinite%22%2F%3E%3C%2Frect%3E%3Crect%20x%3D%22120%22%20y%3D%2210%22%20width%3D%2215%22%20height%3D%22120%22%20rx%3D%226%22%3E%3Canimate%20attributeName%3D%22height%22%20begin%3D%220.5s%22%20dur%3D%221s%22%20values%3D%22120%3B110%3B100%3B90%3B80%3B70%3B60%3B50%3B40%3B140%3B120%22%20calcMode%3D%22linear%22%20repeatCount%3D%22indefinite%22%2F%3E%3Canimate%20attributeName%3D%22y%22%20begin%3D%220.5s%22%20dur%3D%221s%22%20values%3D%2210%3B15%3B20%3B25%3B30%3B35%3B40%3B45%3B50%3B0%3B10%22%20calcMode%3D%22linear%22%20repeatCount%3D%22indefinite%22%2F%3E%3C%2Frect%3E%3C%2Fsvg%3E"); 55 | --mute-svg: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxMzYgMTQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmYiPjxyZWN0IHg9IjQiIHk9IjcwIiB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHJ4PSI2Ii8+PHJlY3QgeD0iMzQiIHk9IjcwIiB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHJ4PSI2Ii8+PHJlY3QgeD0iNjQiIHk9IjcwIiB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHJ4PSI2Ii8+PHJlY3QgeD0iOTQiIHk9IjcwIiB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHJ4PSI2Ii8+PHJlY3QgeD0iMTI0IiB5PSI3MCIgd2lkdGg9IjE1IiBoZWlnaHQ9IjE1IiByeD0iNiIvPjwvc3ZnPg=="); 56 | mask-size: 10px 10px !important; 57 | mask-repeat: no-repeat !important; 58 | mask-position: center !important; 59 | } 60 | 61 | @media (prefers-color-scheme: light) { 62 | &:is([soundplaying], [muted], [activemedia-blocked]) { 63 | filter: invert(1); 64 | } 65 | } 66 | 67 | &:is([activemedia-blocked]) { 68 | background: none !important; 69 | list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEb0lEQVR4nO2YW4hWVRTHP7URvM6ooWYa1kPlQ4GXxISyC4mUVg/RZQyjKLUsUcsmJRm8pqUgXSCRbhZCqT1mkARaWm+l9qK9jCKZ2KhUD4nWLxbuM/1ncfb3nfPNGaeH84cPPtZ/n7XX2pe1/3tXKiVKlChR4v8I4BZgFtCnB/q+AnjQYuiqo2bgby6htbAIs/e/KvRtMTxWr5PpwHn+w3uFR1o7hg+kf4vlnrwOrgHaxckp4Npuizgex3Wh7wS/AWOyftwH2C8f/wFM6Pao4/FMDDEk+BboneXDBXTGbMe/CvwKbOqGoFcCx4Hlzv64i2l+LUdXAmflg22Of9E5bCowif7O92LHfyLcGWBYNWerXePhwt0JXBT+G6BXUYmEPvaKf+trmnAj3CCvjDkZ5Bq2CDcwTHmCX4DRRSYR+hkNnJR+jgEDhH/FDfTANCdPukaDhXtNuL+AKe7Qmgc8kjNoKyrPAwuBBrHfGvpIsEa4wSG2BE+kOf5aGrwl9mGuarzhvtsqXOZkgOfku3cdt1G434Ghwr0t3B7vtNGt/8nCLXUzpU7nC5c+QvFEnnXfzhVuqFvmS4WbIvYLunIqQUslOKWbGDgk3GqxD3HTvE+XSGjTFxgXfn1TOPtGD7sm4dcId1DsvYHTwt2nTtcJ8anbfIrxkQrX7ipc/7A8zkkb+/860E/aDXeDsUq4Ca7vq4XbkbaHjNglRMdhZEJN7G1upn4W7mWXxHfEccAl0yLcEbH3cpXyUXcoJ9ihiRwU4qHIqOtM3Sh2U6YjIhs1hg3S/ipR2IYbhNtOyrkBPCz2HzURzfx2sW8T+2axPyD2Q27d63KK4awruT8Jd3+KjDd8KPZpYj+miZyJ7IPPI8tHK84XYrdNnRU68rvTdBSwROy7IvunPW8iLZGyuzuy5GrhevnuS7HP60oiurRuE/tHGZbW4R5eWm15N/tnkZG3jTpSOCuxtbBe2o8C/onM1PYMm/0HTWRnpPzanV0FnJbfo5Fl1y+U2Bj2u/K7rI7yuyJWftdGyuwYF8T4yLR7yW/JbHAyw/6vd0lEpTmXboaxA3FnmtowYmYViXI4okSb3L0+TaI0iERJ46pJlLVpZ0WQKNY2wb1eNJoAS9DxjmRl142qisa5btSeqdSnfg1PO8WtM/WScFPFbjEPqibj36wi4ze677YI15wjEbuLJNjiuE1VZPw7wn2V92K1zr0vTXUXq6dsM+a5+oZS/UKYmQY34ucjirvRzdScvFfdAa6CnMz8vtS1q26biVDhlwvXnnrVzfD4cIe7fH1f5OND2MQH3PpX3TfSHbattZ6DVK587PjFdEZjgYlY34pFjtfD0arWkLzVxD/Q2fSeUCleYDKbQ5DLnH1O7uoYXjfsWTKBVayJlR4CMAn4U+LZm+nJVE50/4g9ttujdrCHc/eIfVpP+EywJ3xXBjvV+ssB4H3p32K5q15HzVKpOp5kLheA1tD3RRWN9Tq7Cbi7sOjyl+QZwM090X+JEiVKlKjUwr/rwkME7dPwYwAAAABJRU5ErkJggg==") !important; 70 | width: 16px !important; 71 | height: 16px !important; 72 | margin: 0px 3px !important; 73 | } 74 | 75 | &:is([soundplaying]) { 76 | list-style-image: none !important; 77 | mask-image: var(--play-svg) !important; 78 | } 79 | 80 | &:is([muted]) { 81 | list-style-image: none !important; 82 | mask-image: var(--mute-svg) !important; 83 | } 84 | } 85 | 86 | .zen-essentials-container { 87 | .tabbrowser-tab:is([soundplaying], [muted], [activemedia-blocked]):hover img { 88 | opacity: 1 !important; 89 | transition: opacity 0.1s ease-out !important; 90 | } 91 | 92 | .tabbrowser-tab:is([soundplaying], [muted], [activemedia-blocked]):hover .tab-icon-overlay { 93 | margin: 0px !important; 94 | transition: opacity 0.1s ease-out, transform 0.1s ease-out !important; 95 | transform: translate(6.9px, -6.9px) scale(0.69) !important; 96 | } 97 | } 98 | 99 | @media not (-moz-bool-pref: "zen.view.sidebar-expanded") { 100 | .tabbrowser-tab:is([soundplaying], [muted], [activemedia-blocked]):hover img { 101 | opacity: 1 !important; 102 | transition: opacity 0.1s ease-out !important; 103 | } 104 | 105 | .tabbrowser-tab:is([soundplaying], [muted], [activemedia-blocked]):hover .tab-icon-overlay { 106 | margin: 0px !important; 107 | transition: opacity 0.1s ease-out, transform 0.1s ease-out !important; 108 | transform: translate(6.9px, -6.9px) scale(0.69) !important; 109 | } 110 | } 111 | 112 | .zen-essentials-container { 113 | .tab-icon-overlay:is([soundplaying], [muted], [activemedia-blocked]) { 114 | margin: 0px !important; 115 | } 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /natsumi-pages/modules/preferences-wip.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Natsumi Browser - A userchrome for Zen Browser that makes things flow. 4 | 5 | Copyright (c) 2024-present Green (@greeeen-dev) 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | 25 | Natsumi Browser uses code from others. The link to the original projects or 26 | their author(s) have been provided above the used code. 27 | 28 | */ 29 | 30 | /* ==== Settings tweaks ==== */ 31 | 32 | @-moz-document url-prefix(about:preferences) { 33 | /* Sidebar */ 34 | 35 | * { 36 | --natsumi-primary-color: var(--zen-primary-color); 37 | } 38 | 39 | vbox.navigation { 40 | --natsumi-collapsed-animation-time: 0.3s; 41 | --in-content-sidebar-width: 260px !important; 42 | width: var(--in-content-sidebar-width) !important; 43 | box-sizing: content-box !important; 44 | padding: 10px !important; 45 | background-color: var(--natsumi-colors-secondary) !important; 46 | transition: width var(--natsumi-collapsed-animation-time) ease !important; 47 | 48 | #searchInput { 49 | width: 100% !important; 50 | margin-top: 0 !important; 51 | padding: 1px 12px !important; 52 | transition: width var(--natsumi-collapsed-animation-time) ease !important; 53 | 54 | &::before { 55 | content: ""; 56 | width: 16px; 57 | height: 16px; 58 | padding-right: 8px; 59 | position: relative; 60 | left: 0; 61 | top: 50%; 62 | transform: translateY(-50%); 63 | background-image: url('chrome://browser/skin/zen-icons/search-glass.svg') !important; 64 | background-size: 16px; 65 | background-repeat: no-repeat; 66 | -moz-context-properties: fill; 67 | fill: light-dark(rgb(21, 20, 26), rgb(251, 251, 254)); 68 | opacity: 0.5; 69 | } 70 | } 71 | 72 | #categories { 73 | padding: 0 !important; 74 | transition: width var(--natsumi-collapsed-animation-time) ease !important; 75 | width: 100% !important; 76 | 77 | richlistitem.category { 78 | border-radius: 20px !important; 79 | padding: 0 10px !important; 80 | width: var(--in-content-sidebar-width) !important; 81 | border: none !important; 82 | transition: background-color 0.2s ease, color 0.2s ease, width var(--natsumi-collapsed-animation-time) ease !important; 83 | 84 | .category-name { 85 | transition: font-size var(--natsumi-collapsed-animation-time) ease, opacity var(--natsumi-collapsed-animation-time) ease !important; 86 | font-size: 1em !important; 87 | } 88 | 89 | &::before { 90 | display: none !important; 91 | } 92 | 93 | &[selected="true"] { 94 | background-color: light-dark(#00000011, #ffffff11) !important; 95 | color: light-dark(var(--natsumi-colors-primary), var(--natsumi-primary-color)) !important; 96 | opacity: 1 !important; 97 | } 98 | } 99 | } 100 | 101 | .sidebar-footer-list { 102 | margin-bottom: 0 !important; 103 | 104 | .sidebar-footer-link { 105 | border: none !important; 106 | height: 40px !important; 107 | border-radius: 20px !important; 108 | transition: background 0.2s ease, width var(--natsumi-collapsed-animation-time) ease !important; 109 | width: 100% !important; 110 | 111 | .sidebar-footer-icon { 112 | margin: 12px !important; 113 | } 114 | 115 | .sidebar-footer-label { 116 | transition: font-size var(--natsumi-collapsed-animation-time) ease, opacity var(--natsumi-collapsed-animation-time) ease !important; 117 | } 118 | } 119 | } 120 | 121 | @media -moz-pref("natsumi.settings.collapsed") { 122 | &:not(:hover):not(:has(#searchInput[focused])) { 123 | --in-content-sidebar-width: 40px !important; 124 | 125 | richlistitem.category { 126 | .category-name { 127 | opacity: 0 !important; 128 | font-size: 0 !important; 129 | } 130 | } 131 | 132 | .sidebar-footer-list { 133 | .sidebar-footer-link { 134 | .sidebar-footer-label { 135 | font-size: 0 !important; 136 | opacity: 0 !important; 137 | } 138 | } 139 | } 140 | } 141 | } 142 | } 143 | 144 | /* Main */ 145 | 146 | .main-content { 147 | background-color: color-mix(in srgb, var(--natsumi-colors-secondary) 60%, light-dark(white, black)) !important; 148 | 149 | groupbox { 150 | border: none; 151 | background-color: light-dark( 152 | color-mix(in srgb, var(--natsumi-colors-secondary) 20%, white), 153 | color-mix(in srgb, var(--natsumi-colors-secondary) 80%, black) 154 | ) !important; 155 | } 156 | 157 | checkbox { 158 | .checkbox-check { 159 | appearance: unset !important; 160 | border-radius: 4px; 161 | /*background-color: light-dark(white, #444);*/ 162 | background-color: transparent !important; 163 | border: 1px solid light-dark(#ddd, #555); 164 | transition: background-color 0.2s ease; 165 | 166 | &[checked="true"] { 167 | background-color: light-dark(var(--natsumi-colors-primary), var(--natsumi-primary-color)) !important; 168 | } 169 | 170 | &[disabled="true"] { 171 | opacity: 0.4 !important; 172 | } 173 | } 174 | 175 | &::before { 176 | content: ""; 177 | position: absolute; 178 | background-image: url('chrome://browser/skin/zen-icons/checkmark.svg') !important; 179 | fill: light-dark(white, black); 180 | -moz-context-properties: fill; 181 | width: 0; 182 | height: calc(var(--checkbox-size) - 4px); 183 | transform: translateX(2px); 184 | background-size: calc(var(--checkbox-size) - 4px); 185 | background-position: left; 186 | background-repeat: no-repeat; 187 | transition: width 0s ease; 188 | transition-delay: 0.1s; 189 | } 190 | 191 | &[checked="true"] { 192 | &::before { 193 | transition-duration: 0.2s; 194 | width: calc(var(--checkbox-size) - 4px); 195 | } 196 | } 197 | } 198 | } 199 | 200 | /* Icons */ 201 | 202 | #category-general .category-icon { 203 | list-style-image: url('chrome://browser/skin/zen-icons/settings.svg') !important; 204 | } 205 | 206 | #category-zen-looks .category-icon { 207 | list-style-image: url('chrome://browser/skin/zen-icons/customize.svg') !important; 208 | } 209 | 210 | #category-zen-tabs-management .category-icon { 211 | list-style-image: url('chrome://browser/skin/zen-icons/tab.svg') !important; 212 | } 213 | 214 | #category-zen-CKS .category-icon { 215 | list-style-image: url('chrome://browser/skin/zen-icons/inspect.svg') !important; 216 | } 217 | 218 | #category-zen-marketplace .category-icon { 219 | list-style-image: url('chrome://browser/skin/zen-icons/edit-theme.svg') !important; 220 | } 221 | 222 | #category-home .category-icon { 223 | list-style-image: url('chrome://browser/skin/zen-icons/home.svg') !important; 224 | } 225 | 226 | #category-search .category-icon { 227 | list-style-image: url('chrome://browser/skin/zen-icons/search-glass.svg') !important; 228 | } 229 | 230 | #category-privacy .category-icon { 231 | list-style-image: url('chrome://browser/skin/zen-icons/security.svg') !important; 232 | } 233 | 234 | #category-sync .category-icon { 235 | list-style-image: url('chrome://browser/skin/zen-icons/send-to-device.svg') !important; 236 | } 237 | 238 | #addonsButton .sidebar-footer-icon { 239 | list-style-image: url('chrome://browser/skin/zen-icons/extension.svg') !important; 240 | } 241 | 242 | #helpButton .sidebar-footer-icon { 243 | list-style-image: url('chrome://browser/skin/zen-icons/help.svg') !important; 244 | } 245 | 246 | .sync-engine-bookmarks { 247 | list-style-image: url('chrome://browser/skin/zen-icons/bookmark-star-on-tray.svg') !important; 248 | } 249 | 250 | .sync-engine-passwords { 251 | list-style-image: url('chrome://browser/skin/zen-icons/passwords.svg') !important; 252 | } 253 | 254 | .sync-engine-workspaces { 255 | list-style-image: url('chrome://browser/skin/zen-icons/window.svg') !important; 256 | } 257 | 258 | .sync-engine-history { 259 | list-style-image: url('chrome://browser/skin/zen-icons/history.svg') !important; 260 | } 261 | 262 | .sync-engine-tabs { 263 | list-style-image: url('chrome://browser/skin/zen-icons/tab.svg') !important; 264 | } 265 | 266 | .sync-engine-addons { 267 | list-style-image: url('chrome://browser/skin/zen-icons/extension.svg') !important; 268 | } 269 | 270 | /* Toggle button */ 271 | 272 | button.toggle-button { 273 | /* before pseudoelement has the "toggle" */ 274 | --color-off: #ff6b6b; 275 | --color-on: #11ad79; 276 | --color-set: var(--color-off); 277 | --natsumi-primary-color: var(--color-set) !important; 278 | 279 | background-color: var(--natsumi-mat-ga-background) !important; 280 | border: 1px solid light-dark(rgba(20, 20, 20, 0.2), rgba(235, 235, 235, 0.3)) !important; 281 | transition: background-color 0.3s ease, opacity 0.2s ease; 282 | box-shadow: 0 0 4px var(--natsumi-mat-ga-shadow-color) !important; 283 | 284 | &:hover { 285 | background-color: var(--natsumi-mat-ga-background) !important; 286 | } 287 | 288 | &::before { 289 | background-color: var(--color-off) !important; 290 | transition: background-color 0.3s ease, translate 0.3s ease, height 0.3s ease, fill 0.3s ease, background-size 0.3s ease !important; 291 | -moz-context-properties: fill; 292 | fill: white; 293 | background-size: 10px !important; 294 | background-position: center; 295 | background-repeat: no-repeat; 296 | background-image: url('chrome://browser/skin/zen-icons/close.svg'); 297 | } 298 | 299 | &[aria-pressed="false"] { 300 | &:active { 301 | &::before { 302 | translate: 2px !important; 303 | height: 8px !important; 304 | background-size: 6px !important; 305 | } 306 | } 307 | } 308 | 309 | &[aria-pressed="true"] { 310 | --color-set: var(--color-on) !important; 311 | --toggle-bg-color: var(--color-set); 312 | --dot-color: white; 313 | 314 | @media not -moz-pref("natsumi.theme.fill-toggle-when-on") { 315 | --toggle-bg-color: var(--natsumi-mat-ga-background); 316 | --dot-color: var(--color-on); 317 | } 318 | 319 | background-color: var(--toggle-bg-color) !important; 320 | 321 | &:hover { 322 | background-color: var(--toggle-bg-color) !important; 323 | } 324 | 325 | &::before { 326 | background-color: var(--dot-color) !important; 327 | background-image: url('chrome://browser/skin/zen-icons/checkmark.svg'); 328 | fill: var(--color-set); 329 | } 330 | 331 | &:active { 332 | &::before { 333 | translate: calc(var(--toggle-dot-transform-x) - 2px) !important; 334 | height: 8px !important; 335 | background-size: 6px !important; 336 | } 337 | } 338 | } 339 | } 340 | 341 | /* Fixes */ 342 | 343 | /* Patch layout list width on small screens */ 344 | #zenLayoutList { 345 | flex-wrap: wrap !important; 346 | } 347 | 348 | /* A slightly hacky fix for Zen/FF ignoring animations for some reason */ 349 | #preferences-stack:has(.main-content:hover) vbox.navigation { 350 | pointer-events: none !important; 351 | } 352 | } -------------------------------------------------------------------------------- /natsumi-pages/modules/ff-home.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Natsumi Browser - A userchrome for Zen Browser that makes things flow. 4 | 5 | Copyright (c) 2024-present Green (@greeeen-dev) 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | 25 | Natsumi Browser uses code from others. The link to the original projects or 26 | their author(s) have been provided above the used code. 27 | 28 | */ 29 | 30 | /* ==== Firefox Home tweaks ==== */ 31 | 32 | @keyframes modal-overlay-fadein { 33 | 0% { 34 | opacity: 0; 35 | } 36 | 37 | 100% { 38 | opacity: 1; 39 | } 40 | } 41 | 42 | @keyframes modal-fadein { 43 | 0% { 44 | opacity: 0; 45 | margin-top: 10px; 46 | } 47 | 48 | 100% { 49 | opacity: 1; 50 | margin-top: 0; 51 | } 52 | } 53 | 54 | @media not -moz-pref("natsumi.home.disabled") { 55 | @-moz-document url-prefix(about:home), url-prefix(about:newtab), url-prefix(about:privatebrowsing) { 56 | :root { 57 | --natsumi-colors-border: color-mix(in srgb, var(--natsumi-colors-secondary) 80%, black 20%); 58 | --toolbarbutton-active-background: rgba(255, 255, 255, 0.9); 59 | --toolbarbutton-hover-background: color-mix(in srgb, #202020 10%, transparent); 60 | --newtab-weather-background-color: transparent !important; 61 | 62 | @media (prefers-color-scheme: dark) { 63 | --toolbarbutton-active-background: color-mix(in srgb, var(--natsumi-primary-color) 50%, rgba(255, 255, 255, .1)); 64 | --toolbarbutton-hover-background: color-mix(in srgb, #ebebeb 10%, transparent); 65 | } 66 | } 67 | 68 | @media -moz-pref("natsumi.home.custom-background") { 69 | body { 70 | background-image: var(--natsumi-home-bg) !important; 71 | } 72 | } 73 | 74 | .promo { 75 | display: none !important; 76 | } 77 | 78 | .customize-menu { 79 | height: calc(100% - 20px) !important; 80 | top: 10px !important; 81 | right: 0 !important; 82 | border-radius: 10px; 83 | overflow: hidden; 84 | background-color: var(--natsumi-mat-hz-background) !important; 85 | backdrop-filter: none !important; 86 | border: 1px solid rgba(20, 20, 20, 0.2) !important; 87 | opacity: 0 !important; 88 | transform: none !important; 89 | transition: opacity 0.2s ease, right 0.2s ease, backdrop-filter 0.2s ease !important; 90 | visibility: visible !important; 91 | animation: none !important; 92 | pointer-events: none !important; 93 | box-shadow: 0 0 var(--natsumi-mat-hz-shadow-size) var(--natsumi-mat-hz-shadow-color) !important; 94 | 95 | @media (prefers-color-scheme: dark) { 96 | border-color: rgba(235, 235, 235, 0.3) !important; 97 | } 98 | 99 | .close-button-wrapper { 100 | background: transparent !important; 101 | } 102 | 103 | .divider { 104 | border-color: rgba(20, 20, 20, 0.2) !important; 105 | 106 | @media (prefers-color-scheme: dark) { 107 | border-color: rgba(235, 235, 235, 0.3) !important; 108 | } 109 | } 110 | 111 | h2 { 112 | font-size: 18px !important; 113 | font-weight: 500 !important; 114 | } 115 | 116 | &.customize-animate-enter, &.customize-animate-enter-done { 117 | right: 10px !important; 118 | opacity: 1 !important; 119 | backdrop-filter: saturate(var(--natsumi-mat-hz-saturation)) contrast(var(--natsumi-mat-hz-contrast)) blur(var(--natsumi-mat-hz-blur-radius)) !important; 120 | pointer-events: all !important; 121 | } 122 | 123 | .wallpaper-list { 124 | background: transparent !important; 125 | } 126 | 127 | .close-button, .category-header, .category-list, #shortcuts-section, #recent-section, #weather-section, .divider, #settings-link { 128 | transition: background 0.2s ease, opacity 0.2s ease !important; 129 | } 130 | 131 | &:has(.wallpaper-list-enter), &:has(.wallpaper-list-enter-done) { 132 | .close-button, .category-header, .category-list, #shortcuts-section, #recent-section, #weather-section, .divider, #settings-link { 133 | opacity: 0 !important; 134 | pointer-events: none !important; 135 | } 136 | } 137 | 138 | .close-button { 139 | color: transparent !important; 140 | width: 32px !important; 141 | height: 32px !important; 142 | padding: 0 !important; 143 | border: none !important; 144 | background-position: center; 145 | position: relative !important; 146 | 147 | &::before { 148 | content: ""; 149 | position: absolute; 150 | width: 16px; 151 | height: 16px; 152 | left: 50%; 153 | transform: translateX(-50%) !important; 154 | background-image: url('chrome://browser/skin/zen-icons/close.svg') !important; 155 | background-repeat: no-repeat; 156 | background-position: center !important; 157 | -moz-context-properties: fill; 158 | fill: black; 159 | 160 | @media (prefers-color-scheme: dark) { 161 | fill: white; 162 | } 163 | } 164 | 165 | &:hover { 166 | background-color: var(--toolbarbutton-hover-background) !important; 167 | } 168 | } 169 | } 170 | 171 | .toggle-button[aria-pressed="true"] { 172 | background-color: var(--natsumi-primary-color) !important; 173 | 174 | &:hover { 175 | background-color: color-mix(in srgb, var(--natsumi-primary-color) 15%, #ebebeb) !important; 176 | 177 | @media (prefers-color-scheme: dark) { 178 | background-color: color-mix(in srgb, var(--natsumi-primary-color) 15%, #202020) !important; 179 | } 180 | } 181 | } 182 | 183 | #moz-toggle-label { 184 | font-size: 18px !important; 185 | font-weight: 500 !important; 186 | } 187 | 188 | .weather.active { 189 | .weatherCard { 190 | background-color: var(--natsumi-mat-hz-background) !important; 191 | backdrop-filter: saturate(var(--natsumi-mat-hz-saturation)) contrast(var(--natsumi-mat-hz-contrast)) blur(var(--natsumi-mat-hz-blur-radius)) !important; 192 | border: 1px solid rgba(20, 20, 20, 0.2) !important; 193 | box-shadow: 0 0 var(--natsumi-mat-hz-shadow-size) var(--natsumi-mat-hz-shadow-color) !important; 194 | 195 | @media (prefers-color-scheme: dark) { 196 | border-color: rgba(235, 235, 235, 0.3) !important; 197 | } 198 | 199 | .weatherButtonContextMenuWrapper::after { 200 | background-color: rgba(20, 20, 20, 0.2) !important; 201 | 202 | @media (prefers-color-scheme: dark) { 203 | background-color: rgba(235, 235, 235, 0.3) !important; 204 | } 205 | } 206 | 207 | .weatherInfoLink, .weatherButtonContextMenuWrapper { 208 | transition: background 0.2s ease; 209 | 210 | &:hover { 211 | background-color: var(--toolbarbutton-hover-background) !important; 212 | } 213 | 214 | &:has(.context-menu), &:active { 215 | background-color: var(--toolbarbutton-active-background) !important; 216 | } 217 | } 218 | } 219 | 220 | .weatherNotAvailable { 221 | background-color: color-mix(in srgb, rgb(255, 146, 146) 75%, transparent) !important; 222 | backdrop-filter: blur(10px) !important; 223 | border: 1px solid rgba(20, 20, 20, 0.2) !important; 224 | box-shadow: 0 0 10px color-mix(in srgb, rgb(255, 146, 146) 75%, black) !important; 225 | 226 | @media (prefers-color-scheme: dark) { 227 | background-color: color-mix(in srgb, rgb(255, 100, 100) 75%, transparent) !important; 228 | border-color: rgba(235, 235, 235, 0.3) !important; 229 | box-shadow: 0 0 10px color-mix(in srgb, rgb(255, 100, 100) 75%, white) !important; 230 | } 231 | } 232 | } 233 | 234 | .personalize-button { 235 | transition: background 0.2s ease; 236 | border-radius: 6px !important; 237 | } 238 | 239 | .lightWallpaper .personalize-button { 240 | color-scheme: light !important; 241 | --hover-bg: color-mix(in srgb, #202020 10%, transparent); 242 | } 243 | 244 | .darkWallpaper .personalize-button { 245 | color-scheme: dark !important; 246 | --hover-bg: color-mix(in srgb, #ebebeb 10%, transparent); 247 | } 248 | 249 | .personalize-button:hover { 250 | background-color: var(--hover-bg) !important; 251 | } 252 | 253 | .top-site-button { 254 | border-radius: 10px !important; 255 | 256 | .tile, .top-site-icon{ 257 | transition: background 0.2s ease; 258 | } 259 | 260 | &:hover { 261 | padding: 19px 16px 3px !important; 262 | background-color: var(--natsumi-mat-hz-background) !important; 263 | box-shadow: 0 0 var(--natsumi-mat-hz-shadow-size) var(--natsumi-mat-hz-shadow-color) !important; 264 | backdrop-filter: saturate(var(--natsumi-mat-hz-saturation)) contrast(var(--natsumi-mat-hz-contrast)) blur(var(--natsumi-mat-hz-blur-radius)) !important; 265 | border: 1px solid rgba(20, 20, 20, 0.2) !important; 266 | 267 | @media (prefers-color-scheme: dark) { 268 | border-color: rgba(235, 235, 235, 0.3) !important; 269 | } 270 | 271 | .tile, .top-site-icon { 272 | background-color: var(--natsumi-primary-color) !important; 273 | } 274 | } 275 | 276 | .title span { 277 | transition: color 0.2s ease; 278 | } 279 | } 280 | 281 | .search-handoff-button { 282 | border-radius: 50px !important; 283 | background-color: var(--natsumi-mat-hz-background) !important; 284 | box-shadow: 0 0 var(--natsumi-mat-hz-shadow-size) var(--natsumi-mat-hz-shadow-color) !important; 285 | backdrop-filter: saturate(var(--natsumi-mat-hz-saturation)) contrast(var(--natsumi-mat-hz-contrast)) blur(var(--natsumi-mat-hz-blur-radius)) !important; 286 | border: 1px solid rgba(20, 20, 20, 0.2) !important; 287 | 288 | @media (prefers-color-scheme: dark) { 289 | border-color: rgba(235, 235, 235, 0.3) !important; 290 | } 291 | } 292 | 293 | /* Modals */ 294 | 295 | .modal-overlay, .modalOverlayOuter.active { 296 | animation: modal-overlay-fadein 0.3s ease !important; 297 | background-color: rgba(28, 27, 34, 0.45) !important; 298 | } 299 | 300 | /*noinspection CssInvalidFunction*/ 301 | .modal { 302 | animation: modal-fadein 0.3s ease !important; 303 | border-radius: 8px !important; 304 | backdrop-filter: blur(var(--natsumi-mat-ga-blur-radius)) !important; 305 | background: var(--natsumi-mat-ga-background) !important; 306 | box-shadow: 0 0 var(--natsumi-mat-ga-shadow-size) var(--natsumi-mat-ga-shadow-color) !important; 307 | border: 1px solid light-dark(rgba(20, 20, 20, 0.2), rgba(235, 235, 235, 0.3)) !important; 308 | 309 | .modal-message { 310 | display: block !important; 311 | 312 | .icon { 313 | width: 100% !important; 314 | margin-right: 0 !important; 315 | margin-bottom: 20px !important; 316 | } 317 | 318 | .icon-modal-delete { 319 | background-image: url('chrome://browser/skin/zen-icons/edit-delete.svg') !important; 320 | color: white !important; 321 | } 322 | 323 | span p[data-l10n-id^="newtab-confirm-delete-history"] { 324 | text-align: center !important; 325 | color: white !important; 326 | 327 | &:last-child { 328 | font-weight: bold !important; 329 | } 330 | } 331 | } 332 | 333 | .top-site-button .title span { 334 | color: black !important; 335 | 336 | @media (prefers-color-scheme: dark) { 337 | color: white !important; 338 | } 339 | } 340 | 341 | /*noinspection CssInvalidFunction*/ 342 | .actions { 343 | border-color: light-dark(rgba(20, 20, 20, 0.2), rgba(235, 235, 235, 0.3)) !important; 344 | 345 | /*noinspection CssInvalidFunction*/ 346 | button { 347 | border: 1px solid light-dark(rgba(20, 20, 20, 0.2), rgba(235, 235, 235, 0.3)) !important; 348 | box-shadow: none !important; 349 | padding: 10px !important; 350 | border-radius: 50px !important; 351 | appearance: none !important; 352 | color: light-dark(black, white) !important; 353 | transition: background-color 0.2s ease !important; 354 | 355 | &:hover { 356 | background-color: var(--toolbarbutton-hover-background) !important; 357 | } 358 | 359 | &.done { 360 | background-color: color-mix(in srgb, var(--natsumi-primary-color) 50%, transparent) !important; 361 | } 362 | } 363 | } 364 | 365 | /*noinspection CssInvalidFunction*/ 366 | &:has(p[data-l10n-id^="newtab-confirm-delete-history"]) { 367 | border: 1px solid rgba(235, 235, 235, 0.3) !important; 368 | background: color-mix(in srgb, rgb(255, 100, 100) 75%, transparent) !important; 369 | box-shadow: 0 0 10px color-mix(in srgb, rgb(255, 100, 100) 75%, light-dark(black, white)) !important; 370 | 371 | .actions { 372 | button { 373 | color: white !important; 374 | border-color: rgba(235, 235, 235, 0.3) !important; 375 | 376 | &.done { 377 | background-color: rgba(255, 255, 255, 0.3) !important; 378 | } 379 | } 380 | } 381 | } 382 | } 383 | 384 | /* Context menu */ 385 | 386 | .context-menu { 387 | background-color: var(--natsumi-mat-hz-background) !important; 388 | box-shadow: 0 0 var(--natsumi-mat-hz-shadow-size) var(--natsumi-mat-hz-shadow-color) !important; 389 | backdrop-filter: saturate(var(--natsumi-mat-hz-saturation)) contrast(var(--natsumi-mat-hz-contrast)) blur(var(--natsumi-mat-hz-blur-radius)) !important; 390 | border: 1px solid rgba(20, 20, 20, 0.2) !important; 391 | 392 | @media (prefers-color-scheme: dark) { 393 | border-color: rgba(235, 235, 235, 0.3) !important; 394 | } 395 | 396 | .context-menu-list { 397 | padding-left: 6px !important; 398 | padding-right: 6px !important; 399 | 400 | .context-menu-item { 401 | button { 402 | padding-left: 6px !important; 403 | padding-right: 6px !important; 404 | border-radius: 6px !important; 405 | transition: background-color 0.2s ease !important; 406 | 407 | &:hover { 408 | background-color: var(--toolbarbutton-hover-background) !important; 409 | } 410 | 411 | &:active { 412 | background-color: var(--toolbarbutton-active-background) !important; 413 | } 414 | } 415 | } 416 | 417 | /*noinspection CssInvalidFunction*/ 418 | .separator { 419 | width: 95% !important; 420 | margin-left: auto !important; 421 | margin-right: auto !important; 422 | border-color: light-dark(rgba(20, 20, 20, 0.2), rgba(235, 235, 235, 0.3)) !important; 423 | } 424 | } 425 | } 426 | 427 | button.toggle-button { 428 | /* before pseudoelement has the "toggle" */ 429 | --color-off: #ff6b6b; 430 | --color-on: #11ad79; 431 | --color-set: var(--color-off); 432 | --natsumi-primary-color: var(--color-set) !important; 433 | 434 | background-color: var(--natsumi-mat-ga-background) !important; 435 | border: 1px solid light-dark(rgba(20, 20, 20, 0.2), rgba(235, 235, 235, 0.3)) !important; 436 | transition: background-color 0.3s ease; 437 | box-shadow: 0 0 4px var(--natsumi-mat-ga-shadow-color) !important; 438 | 439 | &:hover { 440 | background-color: var(--natsumi-mat-ga-background) !important; 441 | } 442 | 443 | &::before { 444 | background-color: var(--color-off) !important; 445 | transition: background-color 0.3s ease, translate 0.3s ease, height 0.3s ease, fill 0.3s ease, background-size 0.3s ease !important; 446 | -moz-context-properties: fill; 447 | fill: white; 448 | background-size: 10px !important; 449 | background-position: center; 450 | background-repeat: no-repeat; 451 | background-image: url('chrome://browser/skin/zen-icons/close.svg'); 452 | } 453 | 454 | &[aria-pressed="false"] { 455 | &:active { 456 | &::before { 457 | translate: 2px !important; 458 | height: 8px !important; 459 | background-size: 6px !important; 460 | } 461 | } 462 | } 463 | 464 | &[aria-pressed="true"] { 465 | --color-set: var(--color-on) !important; 466 | --toggle-bg-color: var(--color-set); 467 | --dot-color: white; 468 | 469 | @media not -moz-pref("natsumi.theme.fill-toggle-when-on") { 470 | --toggle-bg-color: var(--natsumi-mat-ga-background); 471 | --dot-color: var(--color-on); 472 | } 473 | 474 | background-color: var(--toggle-bg-color) !important; 475 | 476 | &:hover { 477 | background-color: var(--toggle-bg-color) !important; 478 | } 479 | 480 | &::before { 481 | background-color: var(--dot-color) !important; 482 | background-image: url('chrome://browser/skin/zen-icons/checkmark.svg'); 483 | fill: var(--color-set); 484 | } 485 | 486 | &:active { 487 | &::before { 488 | translate: calc(var(--toggle-dot-transform-x) - 2px) !important; 489 | height: 8px !important; 490 | background-size: 6px !important; 491 | } 492 | } 493 | } 494 | } 495 | } 496 | 497 | /* PB patches */ 498 | @-moz-document url-prefix(about:privatebrowsing) { 499 | body, #search-handoff-button { 500 | --natsumi-colors-primary: color-mix(in srgb, var(--natsumi-primary-color) 20%, #202020 80%); 501 | --natsumi-colors-secondary: color-mix(in srgb, var(--natsumi-primary-color) 30%, #202020 70%); 502 | --natsumi-colors-tertiary: color-mix(in srgb, var(--natsumi-primary-color) 1%, #202020 99%); 503 | --natsumi-colors-primary-foreground: color-mix(in srgb, var(--natsumi-primary-color) 80%, white 20%); 504 | 505 | @media -moz-pref('zen.theme.color-prefs.colorful') { 506 | --natsumi-colors-primary: color-mix(in srgb, var(--natsumi-primary-color) 50%, black 50%); 507 | --natsumi-colors-secondary: color-mix(in srgb, var(--natsumi-primary-color) 40%, black 60%); 508 | --natsumi-colors-tertiary: color-mix(in srgb, var(--natsumi-primary-color) 15%, black 85%); 509 | --natsumi-colors-primary-foreground: color-mix(in srgb, var(--natsumi-primary-color) 80%, white 20%); 510 | } 511 | } 512 | 513 | body { 514 | background-color: color-mix(in srgb, var(--natsumi-colors-tertiary) 70%, #0f0f0f 30%) !important; 515 | } 516 | 517 | .fake-textbox { 518 | color: white !important; 519 | } 520 | 521 | .fake-caret { 522 | background-color: white !important; 523 | } 524 | } 525 | } 526 | -------------------------------------------------------------------------------- /natsumi-pages/modules/pdfjs.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Natsumi Browser - A userchrome for Zen Browser that makes things flow. 4 | 5 | Copyright (c) 2024-present Green (@greeeen-dev) 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | 25 | Natsumi Browser uses code from others. The link to the original projects or 26 | their author(s) have been provided above the used code. 27 | 28 | */ 29 | 30 | /* ==== PDF viewer tweaks ==== */ 31 | 32 | @keyframes pdfjs-appear { 33 | from { 34 | opacity: 0; 35 | filter: blur(5px); 36 | } 37 | 38 | to { 39 | opacity: 1; 40 | filter: blur(0); 41 | } 42 | } 43 | 44 | @keyframes secondary-appear { 45 | 0% { 46 | opacity: 0; 47 | margin-top: -10px; 48 | filter: blur(5px); 49 | } 50 | 51 | 100% { 52 | opacity: 1; 53 | margin-top: 0; 54 | filter: blur(0); 55 | } 56 | } 57 | 58 | @keyframes properties-appear { 59 | 0% { 60 | opacity: 0; 61 | top: 50px; 62 | } 63 | 64 | 100% { 65 | opacity: 1; 66 | top: 0; 67 | } 68 | } 69 | 70 | @media not -moz-pref("natsumi.pdfjs.disabled") { 71 | html[mozdisallowselectionprint] { 72 | &:has(head link:nth-of-type(1)[href^="resource://pdf.js"]) { 73 | --natsumi-colors-border: color-mix(in srgb, var(--natsumi-colors-secondary) 80%, black 20%); 74 | --toolbarbutton-active-background: rgba(255, 255, 255, 0.9); 75 | --toolbarbutton-hover-background: color-mix(in srgb, #202020 10%, transparent); 76 | 77 | @media (prefers-color-scheme: dark) { 78 | --toolbarbutton-active-background: color-mix(in srgb, var(--natsumi-primary-color) 50%, rgba(255, 255, 255, .1)); 79 | --toolbarbutton-hover-background: color-mix(in srgb, #ebebeb 10%, transparent); 80 | } 81 | 82 | body { 83 | @media (prefers-color-scheme: dark) { 84 | background-color: color-mix(in srgb, var(--natsumi-colors-tertiary) 70%, #0f0f0f 30%) !important; 85 | } 86 | } 87 | 88 | #viewerContainer { 89 | inset: 0 !important; 90 | 91 | #viewer > .page:first-of-type, 92 | #viewer .spread:first-of-type .page { 93 | margin-top: 43px !important; 94 | transition: margin-top 0.3s ease; 95 | } 96 | } 97 | 98 | .toolbar { 99 | width: 100%; 100 | height: 10px; 101 | 102 | @media -moz-pref("natsumi.theme.compact-marginless") { 103 | height: 15px; 104 | } 105 | } 106 | 107 | #toolbarContainer, #sidebarContainer { 108 | background: var(--natsumi-mat-ga-background) !important; 109 | border-radius: 10px; 110 | backdrop-filter: blur(var(--natsumi-mat-ga-blur-radius)); 111 | border: 1px solid rgba(20, 20, 20, 0.2) !important; 112 | box-shadow: 0 0 var(--natsumi-mat-ga-shadow-size) var(--natsumi-mat-ga-shadow-color) !important; 113 | 114 | @media -moz-pref("natsumi.pdfjs.material-haze") { 115 | background: var(--natsumi-mat-hz-background) !important; 116 | backdrop-filter: saturate(var(--natsumi-mat-hz-saturation)) contrast(var(--natsumi-mat-hz-contrast)) blur(var(--natsumi-mat-hz-blur-radius)); 117 | box-shadow: 0 0 var(--natsumi-mat-hz-shadow-size) var(--natsumi-mat-hz-shadow-color) !important; 118 | 119 | @media -moz-pref("natsumi.pdfjs.material-tinted-haze") { 120 | background: var(--natsumi-mat-hz-background-tinted) !important; 121 | } 122 | } 123 | 124 | @media -moz-pref("natsumi.pdfjs.material-mistcrylic") { 125 | background: var(--natsumi-mat-mc-background) !important; 126 | backdrop-filter: blur(var(--natsumi-mat-mc-blur-radius)); 127 | box-shadow: 0 0 var(--natsumi-mat-mc-shadow-size) var(--natsumi-mat-mc-shadow-color) !important; 128 | 129 | &::before { 130 | content: ""; 131 | position: absolute; 132 | background-image: url(chrome://browser/content/zen-images/grain-bg.png); 133 | opacity: 0.2; 134 | width: 100%; 135 | height: 100%; 136 | top: 0; 137 | left: 0; 138 | pointer-events: none; 139 | } 140 | } 141 | } 142 | 143 | #toolbarContainer { 144 | position: absolute !important; 145 | top: 5px !important; 146 | left: 50% !important; 147 | transform: translate(-50%, 0); 148 | width: calc(100% - 10px) !important; 149 | max-width: min(var(--natsumi-pdfjs-topbar-max-width), calc(100% - 10px)) !important; 150 | border-radius: 10px; 151 | padding-top: 5px !important; 152 | padding-bottom: 5px !important; 153 | height: calc(var(--toolbar-height) + 10px) !important; 154 | border: 1px solid rgba(20, 20, 20, 0.2) !important; 155 | animation: pdfjs-appear 0.3s ease; 156 | overflow: hidden !important; 157 | 158 | @media (prefers-color-scheme: dark) { 159 | border-color: rgba(235, 235, 235, 0.3) !important; 160 | } 161 | 162 | &:has(#loadingBar.hidden) { 163 | overflow: visible !important; 164 | } 165 | 166 | #toolbarViewer { 167 | padding-left: 5px; 168 | padding-right: 5px; 169 | } 170 | 171 | .doorHangerRight { 172 | padding: 5px !important; 173 | top: 40px !important; 174 | right: -7px !important; 175 | background: var(--natsumi-mat-ga-background) !important; 176 | backdrop-filter: blur(var(--natsumi-mat-ga-blur-radius)); 177 | border-radius: 10px !important; 178 | border: 1px solid rgba(20, 20, 20, 0.2) !important; 179 | box-shadow: 0 0 var(--natsumi-mat-ga-shadow-size) var(--natsumi-mat-ga-shadow-color) !important; 180 | animation: secondary-appear 0.3s ease; 181 | 182 | @media -moz-pref("natsumi.pdfjs.material-haze") { 183 | background: var(--natsumi-mat-hz-background) !important; 184 | backdrop-filter: saturate(var(--natsumi-mat-hz-saturation)) contrast(var(--natsumi-mat-hz-contrast)) blur(var(--natsumi-mat-hz-blur-radius)); 185 | box-shadow: 0 0 var(--natsumi-mat-hz-shadow-size) var(--natsumi-mat-hz-shadow-color) !important; 186 | 187 | @media -moz-pref("natsumi.pdfjs.material-tinted-haze") { 188 | background: var(--natsumi-mat-hz-background-tinted) !important; 189 | } 190 | } 191 | 192 | @media -moz-pref("natsumi.pdfjs.material-mistcrylic") { 193 | background: var(--natsumi-mat-mc-background) !important; 194 | backdrop-filter: blur(var(--natsumi-mat-mc-blur-radius)); 195 | box-shadow: 0 0 var(--natsumi-mat-mc-shadow-size) var(--natsumi-mat-mc-shadow-color) !important; 196 | 197 | &::before { 198 | content: ""; 199 | position: absolute; 200 | background-image: url(chrome://browser/content/zen-images/grain-bg.png); 201 | opacity: 0.2; 202 | width: 100%; 203 | height: 100%; 204 | top: 0; 205 | left: 0; 206 | pointer-events: none; 207 | } 208 | } 209 | 210 | &.hidden { 211 | animation: none !important; 212 | } 213 | 214 | @media (prefers-color-scheme: dark) { 215 | border-color: rgba(235, 235, 235, 0.3) !important; 216 | } 217 | 218 | &::before, &::after { 219 | display: none !important; 220 | } 221 | } 222 | 223 | .thicknessPicker { 224 | &::before, &::after { 225 | @media (prefers-color-scheme: dark) { 226 | background-color: white !important; 227 | } 228 | } 229 | } 230 | 231 | #loadingBar { 232 | top: unset !important; 233 | bottom: 0 !important; 234 | border: none !important; 235 | 236 | .progress { 237 | background-color: var(--natsumi-primary-color) !important; 238 | } 239 | } 240 | } 241 | 242 | #sidebarContainer { 243 | height: calc(100% - 62px) !important; 244 | left: -5px !important; 245 | top: auto !important; 246 | bottom: 5px !important; 247 | opacity: 0 !important; 248 | transition: left 0.2s ease, opacity 0.2s ease, filter 0.2s ease !important; 249 | border: 1px solid rgba(20, 20, 20, 0.2) !important; 250 | filter: blur(5px); 251 | 252 | @media (prefers-color-scheme: dark) { 253 | border-color: rgba(235, 235, 235, 0.3) !important; 254 | } 255 | 256 | #toolbarSidebar { 257 | background: transparent !important; 258 | box-shadow: none !important; 259 | padding: 5px !important; 260 | height: calc(var(--toolbar-height) + 10px) !important; 261 | } 262 | 263 | #sidebarContent { 264 | margin-top: 10px !important; 265 | box-shadow: none !important; 266 | } 267 | 268 | .treeItem { 269 | a, .treeItems { 270 | border-radius: 5px !important; 271 | transition: background-color 0.2s ease; 272 | } 273 | 274 | .treeItemToggler { 275 | &::before { 276 | background-color: transparent !important; 277 | mask-image: none !important; 278 | background-image: url('chrome://browser/skin/zen-icons/arrow-down.svg') !important; 279 | 280 | @media (prefers-color-scheme: dark) { 281 | filter: invert(); 282 | } 283 | } 284 | 285 | &.treeItemsHidden::before { 286 | background-image: url('chrome://browser/skin/zen-icons/arrow-right.svg') !important; 287 | } 288 | } 289 | } 290 | 291 | .thumbnail { 292 | margin-bottom: 22px !important; 293 | transition: border-color 0.2s ease; 294 | 295 | &::after { 296 | content: attr(data-page-number); 297 | display: block; 298 | color: black; 299 | width: 100%; 300 | margin-top: 8px; 301 | text-align: center; 302 | 303 | @media (prefers-color-scheme: dark) { 304 | color: white; 305 | } 306 | } 307 | } 308 | } 309 | 310 | #outerContainer.sidebarOpen #sidebarContainer { 311 | left: 5px !important; 312 | opacity: 1 !important; 313 | filter: blur(0); 314 | } 315 | 316 | #scaleSelectContainer { 317 | border-radius: 4px !important; 318 | overflow: hidden !important; 319 | 320 | select { 321 | background-color: #f1f1f1 !important; 322 | 323 | @media (prefers-color-scheme: dark) { 324 | background-color: #363636 !important; 325 | } 326 | } 327 | } 328 | 329 | #pageNumber { 330 | border-radius: 4px !important; 331 | overflow: hidden !important; 332 | background-color: #ffffff !important; 333 | border-color: var(--natsumi-colors-border) !important; 334 | 335 | @media (prefers-color-scheme: dark) { 336 | background-color: #23222b !important; 337 | } 338 | } 339 | 340 | .verticalToolbarSeparator, .splitToolbarButtonSeparator, .horizontalToolbarSeparator, .separator { 341 | border-color: rgba(20, 20, 20, 0.2) !important; 342 | 343 | @media (prefers-color-scheme: dark) { 344 | border-color: rgba(235, 235, 235, 0.3) !important; 345 | } 346 | } 347 | 348 | #editorHighlightVisibility .divider { 349 | background-color: rgba(20, 20, 20, 0.2) !important; 350 | 351 | @media (prefers-color-scheme: dark) { 352 | background-color: rgba(235, 235, 235, 0.3) !important; 353 | } 354 | } 355 | 356 | .toolbarButton { 357 | border-radius: 6px !important; 358 | transition: background-color 0.2s ease; 359 | 360 | &:hover { 361 | background-color: var(--toolbarbutton-hover-background) !important; 362 | } 363 | 364 | &.toggled { 365 | background-color: var(--toolbarbutton-active-background) !important; 366 | } 367 | 368 | &::before { 369 | mask-size: contain !important; 370 | mask-repeat: no-repeat; 371 | -moz-context-properties: fill; 372 | } 373 | } 374 | 375 | /* Document properties */ 376 | 377 | #documentPropertiesDialog { 378 | background: var(--natsumi-mat-ga-background) !important; 379 | backdrop-filter: blur(var(--natsumi-mat-ga-blur-radius)); 380 | border-radius: 10px !important; 381 | border: 1px solid rgba(20, 20, 20, 0.2) !important; 382 | box-shadow: 0 0 var(--natsumi-mat-ga-shadow-size) var(--natsumi-mat-ga-shadow-color) !important; 383 | 384 | @media (prefers-color-scheme: dark) { 385 | border-color: rgba(235, 235, 235, 0.3) !important; 386 | } 387 | 388 | @media -moz-pref("natsumi.pdfjs.material-haze") { 389 | background: var(--natsumi-mat-hz-background) !important; 390 | backdrop-filter: saturate(var(--natsumi-mat-hz-saturation)) contrast(var(--natsumi-mat-hz-contrast)) blur(var(--natsumi-mat-hz-blur-radius)); 391 | box-shadow: 0 0 var(--natsumi-mat-hz-shadow-size) var(--natsumi-mat-hz-shadow-color) !important; 392 | 393 | @media -moz-pref("natsumi.pdfjs.material-tinted-haze") { 394 | background: var(--natsumi-mat-hz-background-tinted) !important; 395 | } 396 | } 397 | 398 | @media -moz-pref("natsumi.pdfjs.material-mistcrylic") { 399 | background: var(--natsumi-mat-mc-background) !important; 400 | backdrop-filter: blur(var(--natsumi-mat-mc-blur-radius)); 401 | box-shadow: 0 0 var(--natsumi-mat-mc-shadow-size) var(--natsumi-mat-mc-shadow-color) !important; 402 | 403 | &::before { 404 | content: ""; 405 | position: absolute; 406 | background-image: url(chrome://browser/content/zen-images/grain-bg.png); 407 | opacity: 0.2; 408 | width: 100%; 409 | height: 100%; 410 | top: 0; 411 | left: 0; 412 | pointer-events: none; 413 | } 414 | } 415 | 416 | &:is([open]) { 417 | animation: properties-appear 0.3s ease !important; 418 | } 419 | 420 | #documentPropertiesClose { 421 | border-radius: 5px !important; 422 | background-color: #f1f1f1 !important; 423 | 424 | @media (prefers-color-scheme: dark) { 425 | background-color: #363636 !important; 426 | } 427 | } 428 | } 429 | 430 | /* Compact mode */ 431 | 432 | @media -moz-pref("natsumi.pdfjs.compact") { 433 | .toolbar { 434 | #toolbarContainer { 435 | opacity: 0 !important; 436 | pointer-events: none; 437 | top: -5px !important; 438 | transition: opacity 0.3s ease, top 0.3s ease, filter 0.3s ease; 439 | filter: blur(5px); 440 | } 441 | 442 | &:hover, &:has(.toolbarButton:not(#sidebarToggleButton)[aria-expanded="true"]), 443 | &:has(input:focus), &:has(select:focus) { 444 | height: 52px; 445 | 446 | #toolbarContainer { 447 | top: 5px !important; 448 | opacity: 1 !important; 449 | pointer-events: auto; 450 | filter: blur(0); 451 | } 452 | } 453 | } 454 | 455 | @media -moz-pref("natsumi.pdfjs.compact-dynamic") { 456 | .toolbar:has(#sidebarToggleButton[aria-expanded="true"]) { 457 | height: 52px; 458 | 459 | #toolbarContainer { 460 | top: 5px !important; 461 | opacity: 1 !important; 462 | pointer-events: auto; 463 | filter: blur(0); 464 | } 465 | } 466 | 467 | &:has(#sidebarToggleButton:not([aria-expanded="true"])) { 468 | #viewer > .page:first-of-type, 469 | #viewer .spread:first-of-type .page { 470 | margin-top: 0 !important; 471 | } 472 | } 473 | } 474 | 475 | @media not -moz-pref("natsumi.pdfjs.compact-dynamic") { 476 | #viewer > .page:first-of-type, 477 | #viewer .spread:first-of-type .page { 478 | margin-top: 0 !important; 479 | } 480 | } 481 | } 482 | 483 | /* Topbar buttons */ 484 | 485 | #previous::before { 486 | mask-image: url('chrome://browser/skin/zen-icons/arrow-up.svg') !important; 487 | } 488 | 489 | #next::before { 490 | mask-image: url('chrome://browser/skin/zen-icons/arrow-down.svg') !important; 491 | } 492 | 493 | #zoomOutButton::before { 494 | mask-image: url('chrome://browser/skin/zen-icons/zoom-out.svg') !important; 495 | } 496 | 497 | #zoomInButton::before { 498 | mask-image: url('chrome://browser/skin/zen-icons/plus.svg') !important; 499 | } 500 | 501 | #sidebarToggleButton::before { 502 | mask-image: url('chrome://browser/skin/zen-icons/sidebar.svg') !important; 503 | } 504 | 505 | #editorHighlightButton::before { 506 | mask-image: url('resource://pdf.js/web/images/toolbarButton-editorHighlight.svg') !important; 507 | } 508 | 509 | #editorFreeTextButton::before { 510 | mask-image: url('resource://pdf.js/web/images/toolbarButton-editorFreeText.svg') !important; 511 | } 512 | 513 | #editorInkButton::before { 514 | mask-image: url('resource://pdf.js/web/images/toolbarButton-editorInk.svg') !important; 515 | } 516 | 517 | #editorStampButton::before { 518 | mask-image: url('chrome://browser/skin/zen-icons/canvas.svg') !important; 519 | } 520 | 521 | #secondaryPrint::before, #printButton::before { 522 | mask-image: url('chrome://browser/skin/zen-icons/print.svg') !important; 523 | } 524 | 525 | #secondaryDownload::before, #downloadButton::before { 526 | mask-image: url('chrome://browser/skin/zen-icons/save.svg') !important; 527 | } 528 | 529 | #presentationMode::before { 530 | mask-image: url('resource://pdf.js/web/images/toolbarButton-presentationMode.svg') !important; 531 | } 532 | 533 | #viewBookmark::before { 534 | mask-image: url('resource://pdf.js/web/images/toolbarButton-bookmark.svg') !important; 535 | } 536 | 537 | #firstPage::before { 538 | mask-image: url('chrome://browser/skin/zen-icons/arrow-up.svg') !important; 539 | } 540 | 541 | #lastPage::before { 542 | mask-image: url('chrome://browser/skin/zen-icons/arrow-down.svg') !important; 543 | } 544 | 545 | #pageRotateCw::before { 546 | mask-image: url('chrome://browser/skin/zen-icons/reload.svg') !important; 547 | } 548 | 549 | #pageRotateCcw::before { 550 | transform: scaleX(-1); 551 | mask-image: url('chrome://browser/skin/zen-icons/reload.svg') !important; 552 | } 553 | 554 | #cursorSelectTool::before { 555 | mask-image: url('resource://pdf.js/web/images/secondaryToolbarButton-selectTool.svg') !important; 556 | } 557 | 558 | #cursorHandTool::before { 559 | mask-image: url('resource://pdf.js/web/images/secondaryToolbarButton-handTool.svg') !important; 560 | } 561 | 562 | #scrollPage::before { 563 | mask-image: url('resource://pdf.js/web/images/secondaryToolbarButton-scrollPage.svg') !important; 564 | } 565 | 566 | #scrollVertical::before { 567 | mask-image: url('resource://pdf.js/web/images/secondaryToolbarButton-scrollVertical.svg') !important; 568 | } 569 | 570 | #scrollHorizontal::before { 571 | mask-image: url('resource://pdf.js/web/images/secondaryToolbarButton-scrollHorizontal.svg') !important; 572 | } 573 | 574 | #scrollWrapped::before { 575 | mask-image: url('resource://pdf.js/web/images/secondaryToolbarButton-scrollWrapped.svg') !important; 576 | } 577 | 578 | #spreadNone::before { 579 | mask-image: url('resource://pdf.js/web/images/secondaryToolbarButton-spreadNone.svg') !important; 580 | } 581 | 582 | #spreadOdd::before { 583 | mask-image: url('resource://pdf.js/web/images/secondaryToolbarButton-spreadOdd.svg') !important; 584 | } 585 | 586 | #spreadEven::before { 587 | mask-image: url('resource://pdf.js/web/images/secondaryToolbarButton-spreadEven.svg') !important; 588 | } 589 | 590 | #documentProperties::before { 591 | mask-image: url('resource://pdf.js/web/images/secondaryToolbarButton-documentProperties.svg') !important; 592 | } 593 | 594 | #editorStampAddImage::before { 595 | mask-image: url('chrome://browser/skin/zen-icons/plus.svg') !important; 596 | } 597 | 598 | #secondaryToolbarToggleButton::before { 599 | mask-image: url('chrome://browser/skin/zen-icons/arrow-right.svg') !important; 600 | } 601 | 602 | /* Sidebar buttons */ 603 | 604 | #viewThumbnail::before { 605 | mask-image: url('resource://pdf.js/web/images/toolbarButton-viewThumbnail.svg') !important; 606 | } 607 | 608 | #viewOutline::before { 609 | mask-image: url('resource://pdf.js/web/images/toolbarButton-viewOutline.svg') !important; 610 | } 611 | 612 | #viewAttachments::before { 613 | mask-image: url('resource://pdf.js/web/images/toolbarButton-viewAttachments.svg') !important; 614 | } 615 | 616 | #viewLayers::before { 617 | mask-image: url('resource://pdf.js/web/images/toolbarButton-viewLayers.svg') !important; 618 | } 619 | 620 | #currentOutlineItem::before { 621 | mask-image: url('resource://pdf.js/web/images/toolbarButton-currentOutlineItem.svg') !important; 622 | } 623 | 624 | /* Checked buttons */ 625 | 626 | #secondaryToolbarButtonContainer .toolbarButton[aria-checked="true"]::before { 627 | mask-image: url('chrome://browser/skin/zen-icons/checkmark.svg') !important; 628 | } 629 | } 630 | } 631 | } 632 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------