From 0ff2c8312130fb4052c68d36e6140e0185c4232e Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 7 Oct 2021 16:32:19 +0200 Subject: [PATCH] Update part 1 --- .../default-release/chrome/CODE_OF_CONDUCT.md | 128 +++ .../default-release/chrome/CONTRIBUTING.md | 246 ++++++ .../firefox/default-release/chrome/CREDITS | 151 ++++ .../firefox/default-release/chrome/LEPTON | 3 + .../firefox/default-release/chrome/LICENSE | 373 ++++++++ .../firefox/default-release/chrome/README.org | 169 ++++ .../chrome/icons/bookmarksMenu-open.svg | 7 + .../chrome/icons/bookmarksMenu-open2.svg | 4 + .../chrome/icons/bookmarksToolbar-open.svg | 4 + .../chrome/icons/content-view.svg | 4 + .../chrome/icons/dismiss-filled.svg | 3 + .../chrome/icons/document-css.svg | 3 + .../chrome/icons/document-endnote.svg | 7 + .../chrome/icons/folder-open.svg | 3 + .../default-release/chrome/icons/folder.svg | 3 + .../chrome/icons/history-reverse.svg | 4 + .../chrome/icons/mail-inbox-all-big.svg | 3 + .../chrome/icons/mail-inbox-all.svg | 3 + .../chrome/icons/mail-inbox-big.svg | 3 + .../chrome/icons/movetowindow-16.svg | 6 +- .../default-release/chrome/icons/pin-tab.svg | 6 +- .../default-release/chrome/icons/resize.svg | 6 + .../default-release/chrome/icons/share.svg | 8 +- .../default-release/chrome/icons/tag-open.svg | 6 + .../default-release/chrome/icons/toolbar.svg | 4 + .../default-release/chrome/icons/toolbox.svg | 3 + .../chrome/icons/unpin-tab.svg | 6 +- .../default-release/chrome/install.ps1 | 797 ++++++++++++++++++ .../.mozilla/firefox/default-release/user.js | 57 +- 29 files changed, 2006 insertions(+), 14 deletions(-) create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/CODE_OF_CONDUCT.md create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/CONTRIBUTING.md create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/CREDITS create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/LEPTON create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/LICENSE create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/README.org create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksMenu-open.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksMenu-open2.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksToolbar-open.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/content-view.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/dismiss-filled.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/document-css.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/document-endnote.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/folder-open.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/folder.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/history-reverse.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-all-big.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-all.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-big.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/resize.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/tag-open.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/toolbar.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/icons/toolbox.svg create mode 100644 arch-config/.mozilla/firefox/default-release/chrome/install.ps1 diff --git a/arch-config/.mozilla/firefox/default-release/chrome/CODE_OF_CONDUCT.md b/arch-config/.mozilla/firefox/default-release/chrome/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..0bd1dd7b --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/CODE_OF_CONDUCT.md @@ -0,0 +1,128 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +`github issue`. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.0, available at +https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +https://www.contributor-covenant.org/faq. Translations are available at +https://www.contributor-covenant.org/translations. diff --git a/arch-config/.mozilla/firefox/default-release/chrome/CONTRIBUTING.md b/arch-config/.mozilla/firefox/default-release/chrome/CONTRIBUTING.md new file mode 100644 index 00000000..91c44ba2 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/CONTRIBUTING.md @@ -0,0 +1,246 @@ +# Contributing + + +**Table of Contents** + +- [Introduce](#introduce) + - [Code of Conduct](#code-of-conduct) + - [We Develop with Github](#we-develop-with-github) + - [Environment](#environment) + - [Your First Contribution](#your-first-contribution) + - [Contribution Targets](#contribution-targets) + - [Project Structure](#project-structure) + - [Icon files](#icon-files) + - [Meta Info files](#meta-info-files) +- [Rules](#rules) + - [Version](#version) + - [Branch](#branch) + - [Issue](#issue) + - [Coding style](#coding-style) + - [Commit](#commit) + - [Commit Message](#commit-message) + - [Pull request](#pull-request) + - [License](#license) +- [References](#references) + + + +## Introduce + +I'm really glad you're reading this, because we need volunteer developers to help this project come to fruition. + +Please note we have a code of conduct, please follow it in all your interactions with the project. + +### Code of Conduct + +Refer to [CODE\_OF\_CONDUCT.md](https://github.com/black7375/Firefox-UI-Fix/blob/master/CODE_OF_CONDUCT.md). + +### We Develop with Github + +We use [github](https://github.com/black7375/Firefox-UI-Fix) to host code, to track [issues](https://github.com/black7375/Firefox-UI-Fix/issues) and feature requests, as well as accept [pull requests](https://github.com/black7375/Firefox-UI-Fix/pulls). + +After feedback has been given we expect responses within two weeks. After two weeks we may close the issue and pull request if it isn't showing any activity. + +### Environment + +You can configure it as follows: +```shell +## clone repository +git clone https://github.com/black7375/Firefox-UI-Fix.git +cd ./Firefox-UI-Fix + +## checkout branch +git checkout +``` + +### Your First Contribution + +**Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github) + +The following documents may be helpful: +- [Roadmap](https://github.com/black7375/Firefox-UI-Fix/issues/2) +- [Each Versions Plan](https://github.com/black7375/Firefox-UI-Fix/milestones) +- [Wiki:Compatibility Issues Solution](https://github.com/black7375/Firefox-UI-Fix/wiki/Compatibility-Issues-Solution) +- [Wiki:Tips](https://github.com/black7375/Firefox-UI-Fix/wiki/Tips) + +Live Debugging: +- [Tutorial: How to create and live-debug userChrome.css](https://www.reddit.com/r/FirefoxCSS/comments/73dvty/tutorial_how_to_create_and_livedebug_userchromecss/) +- [Browser Toolbox](https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolbox) +- [Style Editor](https://developer.mozilla.org/en-US/docs/Tools/Style_Editor) + +Firefox Source Code: +- [Github](https://github.com/mozilla/gecko-dev) +- [Searchfox](https://searchfox.org/) +- [Firefox Source Docs](https://firefox-source-docs.mozilla.org/) + +Test for None mac users: +- [Docker-OSX](https://github.com/sickcodes/Docker-OSX) + +### Contribution Targets + +We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: + +**Promotions** +- Introduce project + - Video (Recommend!!, We need it) + - Blog + - SNS + - Reddit, Hackernews..etc +- Sample + - [Producthunt](https://www.producthunt.com/posts/firefox-ui-fix-proton)([#43](https://github.com/black7375/Firefox-UI-Fix/issues/43)) + - [Youtube](https://www.youtube.com/watch?v=ECta0icNMgY) + +**Docs** +- Fix typos, alignments. +- Correct awkward sentences. +- Improve document readability. + +**Issues** +- Report a bug. +- Discussing the current state of the code. +- Tell us about related or relevant projects and documents. +- Help other users issue. +- Proposing others.. + +**Codes** +- New Features. +- Bug fixes. +- Improved compatibility or accessibility. +- Refactoring. + +### Project Structure + +``` +root +|- .gitattributes: Exclude at `Download Zip` +|- .github: Issue/PR Template, Github Actions +|- .prettierignore: Exclude coding style +|- .prettierrc.json: Coding style +|- icons/: Icons, illustrations +|- install.ps1: Install script write in powersehll +|- install.sh: Install script write in bash +|- LEPTON: Meta infos (branch, version) +|- user.js: about:config settings +|- userChrome.css: CSS for Browser UI +|- userContent.css: CSS for Web pages +``` + +#### Icon files + +Most of them are made in SVG. + +Except for illustrations, there must be an `fill="context-fill" fill-opacity="context-fill-opacity"` property to dynamically determine color and transparency. + +Icons are mainly [FirefoxUX/photon-icons](https://github.com/FirefoxUX/photon-icons) +or [microsoft/fluentui-system-icons](https://github.com/microsoft/fluentui-system-icons). + +#### Meta Info files + +It comes from [install.sh](https://github.com/black7375/Firefox-UI-Fix/blob/01ae88bf2c4710e1f364d9eb2901ca2b722cefe7/install.sh#L442). + +**`LEPTON` file format** + +If this file exist in same directory as the `userChrome.css` file, +it is recognized as the "Lepton" installation directory. + +```ini +[Info] +Branch=master | photon-style | proton-style +Ver= | | [NULL] +``` + +**`lepton.ini` file Format** + +In `lepton.ini`, various information is stored during the installation process.\ +This file is recreated every time the installer is created. + +```ini +[Profile Name] +Type=Local | Release | Git +Branch=master | photon-style | proton-style +Ver= | | [NULL] +Path= +``` + +**Update Policy according to `Type`** +- Local(unknown): force latest commit update +- Release(): force latest tag update +- Git: latest commit update + +## Rules + +### Version + +Milestone, The versioning scheme we use is [SemVer](https://semver.org/). (Maintainer decides, do not pull request.) + +We will release the feature as soon as it is complete, but the cycle should be 2-4 weeks. +Rapid releases. + +It comes from [#109](https://github.com/black7375/Firefox-UI-Fix/issues/109#issuecomment-873313945). + +### Branch + +Stable: Only bugfix, Documentation. +- `master`: Common bugfix, documentation. +- `photon-style`: Bugfix, documentation specified in `photon-style`. +- `proton-sryle`: Bugfix, documentation specified in `proton-style`. + +Development: New Features. +- `dev`: Common new features. +- `photon-style-dev`: New features specified in `photon-style`. +- `proton-style-dev`: New features specified in `proton-style`. + +### Issue + +- **Versions:** +- Make sure you’re on the latest version. +- Try older versions. +- Try switching up dependency versions. +- **Search:** Search the project’s [issues](https://github.com/black7375/Firefox-UI-Fix/issues) to make sure it's not a known issue. + +### Coding style + +- **Indent:** 2 spaces for indentation rather than tabs. +- **Columns:** Fit `80`~`100` columns as much as possible. (Auto formatting is using 120 to avoid the worst case) + +### Commit + +- **Meaningfully:**: It doesn't make meaningless commits. +- **One per task:** It's difficult to distinguish when various tasks are mixed. +- **Often:** Codes may corrupt during large changes. + +### Commit Message + +For intuitive recognition, I [put a **prefix**](https://github.com/black7375/Firefox-UI-Fix/commits/master). +- `Add:` Add feature or enhanced. +- `Fix:` Bug fix or change default values. +- `Clean:` Refactoring. +- `Doc:` Update docs. + +### Pull request + +- **Branch:** Check the [Branch](#branch) section and PR to the correct branch. +- **Issue:** We recommend that you open the issue first to discuss the changes with the owner of this repository. + +### License + +**Any contributions you make will be under the MPL 2.0 Software License** + +In short, when you submit code changes, your submissions are understood to be under the same [MPL 2.0 License](https://choosealicense.com/licenses/mpl-2.0/) that covers the project. +Feel free to contact the maintainers if that's a concern. + +**Reference specification** + +Even if you copy the code snippet, it is recommended that you leave a link. + +**FAQ** + +If you have any questions about other licenses, please see [Moailla's MPL 2.0 FAQ](https://www.mozilla.org/en-US/MPL/2.0/FAQ/). + + +## References + +- [Good-CONTRIBUTING.md-template](https://gist.github.com/PurpleBooth/b24679402957c63ec426) +- [Contributing to Transcriptase](https://gist.github.com/briandk/3d2e8b3ec8daf5a27a62) +- [contributing-template](https://github.com/nayafia/contributing-template/blob/master/CONTRIBUTING-template.md) +- [Contributing to Open Source Projects](https://www.contribution-guide.org/) diff --git a/arch-config/.mozilla/firefox/default-release/chrome/CREDITS b/arch-config/.mozilla/firefox/default-release/chrome/CREDITS new file mode 100644 index 00000000..0d4b88a7 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/CREDITS @@ -0,0 +1,151 @@ + This is at least a partial credits-file of people that have contributed to the 'Firefox-UI-Fix' project. + It is sorted by name. + The fields are: name (N), email (E), web-address(W), license(L). + Thanks, + + black7375 +---------- + Reference Projects & Resources + +N: Compact Mode Firefox Css +W: https://github.com/Godiesc/compactmodefirefoxcss +L: MPL 2.0 + +N: EdgeFox +W: https://github.com/23Bluemaster23/EdgeFox + +N: EdgeTabSeparater.userChrome.css +W: https://gist.github.com/mmis1000/08d8de4bbe70c04423f0b966bcc286b1 +L: MIT + +N: firefox-csshacks +W: https://github.com/MrOtherGuy/firefox-csshacks +L: MPL 2.0 + +N: Fluent UI System Icons +W: https://github.com/microsoft/fluentui-system-icons +L: MIT + +N: gecko-dev +W: https://hg.mozilla.org/ +L: MPL 2.0 + +N: MaterialFox +W: https://github.com/muckSponge/MaterialFox +L: MIT + +N: Multi-Account-Containers +W: https://github.com/mozilla/multi-account-containers +L: MPL 2.0 + +N: PS-Menu +W: https://github.com/chrisseroka/ps-menu +L: MIT + +N: Quantum Nox Firefox Dark Full Theme +W: https://github.com/Izheil/Quantum-Nox-Firefox-Dark-Full-Theme +L: MPL 2.0 + +N: quietfox +W: https://github.com/coekuss/quietfox +L: MIT + +N: ShadowFox +W: https://github.com/overdodactyl/ShadowFox +L: MIT + +N: SVG Repo +E: info@svgrepo.com +W: https://www.svgrepo.com +L: CC0 + +N: uc.css.js +W: https://github.com/aminomancer/uc.css.js +L: CC BY-NC-SA 4.0 + +N: userChrome.csshacks +W: https://gist.github.com/DCzajkowski/baaf7bc81aae5278d690eaae951a823b +L: CC0 + +N: userChrome.css +W: https://gist.github.com/Dragoner7/ec2319e5038a6b4722d3e692713f9471 +L: MPL 2.0 + +N: userChrome.org +W: https://www.userchrome.org/what-is-userchrome-css.html +L: CC BY 4.0 + +---------- + Major Contributors + +N: AveYo +E: aveyo@yahoo.com +W: https://github.com/AveYo + +N: Jan Janssen +E: medhefgo@web.de +W: https://github.com/medhefgo + +N: Yunsup Sim +E: pedogunu@gmail.com +W: https://ethansup.net + +---------- + Contributors + +N: 7k5x +E: 7k5xlp0onfire@gmail.com +W: https://github.com/7k5x + +N: Ajith-stark +E: ajith.kum.12342@gmail.com +W: https://github.com/Ajith-stark + +N: badprogramshere +W: https://github.com/badprogramshere + +N: Burak Yigit Kaya +E: ben@byk.im +W: https://byk.im/ + +N: dr460nf1r3 +E: njcrypted@protonmail.com +W: https://dr460nf1r3.me/ + +N: hellojaccc +E: kim@taekyeong.me +W: https://github.com/hellojaccc + +N: James Upjohn +E: jammehcow@jammehcow.co.nz +W: https://github.com/jammehcow + +N: Jonta +W: https://github.com/Jonta + +N: mamen +W: https://www.mamen.at + +N: Tatsuyuki Ishi +E: ishitatsuyuki@gmail.com +W: https://github.com/ishitatsuyuki + +N: Rahul Ramkumar +E: rahulram226@gmail.com +W: https://rahulramkumar.dev + +N: Roel +E: Nyubis@gmail.com +W: https://github.com/Nyubis + +N: SanderTheDragon +E: sanderthedragon@zoho.com +W: https://gitlab.com/SanderTheDragon + +N: sean z +E: ean@vsxd.com +W: https://vsxd.com/ + +N: Sylvain +E: B00ze64@hotmail.com +W: https://github.com/B00ze64 diff --git a/arch-config/.mozilla/firefox/default-release/chrome/LEPTON b/arch-config/.mozilla/firefox/default-release/chrome/LEPTON new file mode 100644 index 00000000..bec3724a --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/LEPTON @@ -0,0 +1,3 @@ +[Info] +Ver=v4.2.0 +Branch=proton-style diff --git a/arch-config/.mozilla/firefox/default-release/chrome/LICENSE b/arch-config/.mozilla/firefox/default-release/chrome/LICENSE new file mode 100644 index 00000000..a612ad98 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/LICENSE @@ -0,0 +1,373 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/arch-config/.mozilla/firefox/default-release/chrome/README.org b/arch-config/.mozilla/firefox/default-release/chrome/README.org new file mode 100644 index 00000000..5211b75b --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/README.org @@ -0,0 +1,169 @@ +* Lepton (old name: Proton Fix) + :PROPERTIES: + :TOC: :include all + :END: + + +*Table of Contents* +:CONTENTS: +- [[#lepton-old-name-proton-fix][Lepton (old name: Proton Fix)]] + - [[#introduction][Introduction]] + - [[#installation-guide][Installation Guide]] + - [[#why-proton][WHY Proton?]] + - [[#why-not-proton][WHY Not Proton?]] + - [[#padding-comparisons][Padding Comparisons]] + - [[#faq][FAQ]] +:END: + + +** Introduction + [[https://wiki.mozilla.org/Firefox/Proton][Proton]] is Firefox's new design, starting from Firefox 89. \\ + [[https://design.firefox.com/photon/][Photon]] is the old design of Firefox which was used until version 88. + + Proton's [[#why-proton][overall feel is good]], but there were a few things I [[#why-not-proton][didn't like]] and wanted to improve. \\ + That's why this project was born, and Lepton to denote light theme layer. + + /Disclaimer:/ It works on *Firefox 89* and above!! + | *Wiki* | | | | + | [[https://github.com/black7375/Firefox-UI-Fix/wiki/Installation-Guide][Installation Guide]] | [[https://github.com/black7375/Firefox-UI-Fix/wiki/Screenshots][Screenshots]] | [[https://github.com/black7375/Firefox-UI-Fix/wiki/Compatibility-Issues-Solution][Compatibility Issues Solution]] | [[https://github.com/black7375/Firefox-UI-Fix/wiki/Tips][Tips]] | + + [[https://user-images.githubusercontent.com/25581533/127980993-5c532856-0c1c-4548-b310-9495df246d16.png]] + + (Lepton's design :arrow_up:) + + - *Color* + - Default light/dark theme contrast enhancement + - Colorful context menu + - More dark mode support + - GTK system theme support + - Windows system theme support + - Windows7 compatibility + - *Icons* + - Panel + - Context Menu + - Global Menu + - Library's open context + - *Padding Narrower* + - Tab + - Panel + - Menu + - Density + - Others... + - *Tab Design* + - MultiSelected + - Adjust Color: Easily recognizable. + - Unselect: + - Divide Line: React to hover like chrome + - Clipped: + - Clearer Text: Adjusted clipped gradation + - Closed Button: Visible on hover + - Sound: + - Remove Second Label + - Show Favicon: Always show favicon + - Container Tab: + - Highlight line position: Displayed tab side. + - *Activity Stream Design* + - Search Bar: + - Focused Shadow: Same as the accent color + - Hand off to Awesomebar + - Icons: + - Size: Fill(Changes dynamically to your size) + - *Error Page Design* + - Illustrations: Restore error page illustrations + - *Others* + - Activate calculator at address bar + - Smooth Scrolling + - Mouse pointer for each context + +** Installation Guide + + *Script Installation (experimental)* + + Linux, mac users: + #+BEGIN_SRC bash + bash -c "$(curl -fsSL https://raw.githubusercontent.com/black7375/Firefox-UI-Fix/master/install.sh)" + #+END_SRC + + Windows users: Run powershell as administrator + #+BEGIN_SRC powershell + Powershell -c "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iwr https://raw.githubusercontent.com/black7375/Firefox-UI-Fix/master/install.ps1 -useb | iex" + #+END_SRC + + *Manual Installation* + + You can see the [[https://github.com/black7375/Firefox-UI-Fix/wiki/Installation-Guide][installation guide]] with screenshots on the wiki. + + 1. Download files + - Click the green ":arrow_down: Code"-button above + - Select ":package: Download Zip" + 2. Find your profile directory + - Open =about:support= in a new tab + - Find the =Profile Folder= entry and click the =Open Folder= button + 3. Copy downloaded files + - Extract the downloaded zip file + - Copy the =user.js= file to the previously opened profile directory + - Create a new directory inside your profile directory called =chrome= + - Copy the remaining files from the extracted zip-file into previously created the =chrome= directory + 4. Restart Firefox + - Click the =Clear startup cache...= at the top of =about:support= + + If you prefer Connected Tab, see [[https://github.com/black7375/Firefox-UI-Fix][Original Lepton]].\\ + If you prefer Photon, see [[https://github.com/black7375/Firefox-UI-Fix/tree/photon-style][Lepton's photon-style]]. + +** WHY Proton? + I think a lot has improved. + + [[https://user-images.githubusercontent.com/25581533/119773764-a6639e00-beb0-11eb-8023-498b6293c4b2.png]] + + (Proton's design :arrow_up:) + + - Neatly organized menu + - Icon beautiful enough to remind you of Edge + - Nice color scheme + - Satisfied Rounding + - Modal window & Scrollbar!! + +** WHY Not Proton? + However, there are also many flaws. + + [[https://user-images.githubusercontent.com/25581533/119773812-b5e2e700-beb0-11eb-923c-55ae1a8ca249.png]] + + (Photon's design :arrow_up:) + + - Is it a tab or a button? + - Where are the menu icons? + - Icons in ActivityStream are too small + - Padding gaps are wide + - :warning: Address bar 3-point menu, screenshot moves to toolbar (can't fix) + +** Padding Comparisons + [[https://user-images.githubusercontent.com/25581533/120262626-8c97d180-c289-11eb-87a6-68e285d6d77c.png]] + [[https://user-images.githubusercontent.com/25581533/120253257-6ae11f00-c276-11eb-93cf-393f9845f30b.png]] + [[https://user-images.githubusercontent.com/25581533/118402352-1e33fc00-b659-11eb-89fc-3cb38207fe39.png]] + [[https://user-images.githubusercontent.com/25581533/124066951-0eb21c00-da29-11eb-9ac4-c6b82a268c6f.png]] + + - Photon (Quantum) + - Proton + - Lepton + +** FAQ + + - *Black pixels around the selected tab bottom corners* \\ + [[https://user-images.githubusercontent.com/5571586/120401980-edf58a00-c2f5-11eb-9e64-ce50c5b189b2.png]] + + Please follow the [[https://github.com/black7375/Firefox-UI-Fix/wiki/Installation-Guide][Installation Guide]], \\ + or set =about:config='s =svg.context-properties.content.enabled= to =true= . + + - *Some panel menu items doesn't show* \\ + [[https://user-images.githubusercontent.com/25581533/120487528-93b40200-c3a5-11eb-98ad-3498beb9f38e.png]] + + Please follow the [[https://github.com/black7375/Firefox-UI-Fix/wiki/Installation-Guide][Installation Guide]], \\ + or copy the =icons= directory to =chrome= . + + + - *Less icons in the panel with photon-style*\\ + [[https://user-images.githubusercontent.com/25581533/123761424-5746c980-d8b1-11eb-9a0f-83fb305f9f08.png]] + [[https://user-images.githubusercontent.com/25581533/123762962-d4bf0980-d8b2-11eb-8492-d497d330c72a.png]] + + I didn't put all the icons like before.\\ + [[https://user-images.githubusercontent.com/25581533/123602947-dd4b0d80-d7e8-11eb-93a6-2b263bdd99f7.png]] diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksMenu-open.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksMenu-open.svg new file mode 100644 index 00000000..616669c2 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksMenu-open.svg @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksMenu-open2.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksMenu-open2.svg new file mode 100644 index 00000000..4a21832c --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksMenu-open2.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksToolbar-open.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksToolbar-open.svg new file mode 100644 index 00000000..3ae7fa76 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/bookmarksToolbar-open.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/content-view.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/content-view.svg new file mode 100644 index 00000000..49238ff0 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/content-view.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/dismiss-filled.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/dismiss-filled.svg new file mode 100644 index 00000000..d88e0a74 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/dismiss-filled.svg @@ -0,0 +1,3 @@ + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/document-css.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/document-css.svg new file mode 100644 index 00000000..ddf331d9 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/document-css.svg @@ -0,0 +1,3 @@ + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/document-endnote.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/document-endnote.svg new file mode 100644 index 00000000..ef937cdc --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/document-endnote.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/folder-open.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/folder-open.svg new file mode 100644 index 00000000..bdab9848 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/folder-open.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/folder.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/folder.svg new file mode 100644 index 00000000..1185dde8 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/folder.svg @@ -0,0 +1,3 @@ + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/history-reverse.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/history-reverse.svg new file mode 100644 index 00000000..7c0bf967 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/history-reverse.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-all-big.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-all-big.svg new file mode 100644 index 00000000..511a0244 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-all-big.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-all.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-all.svg new file mode 100644 index 00000000..f2c44562 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-all.svg @@ -0,0 +1,3 @@ + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-big.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-big.svg new file mode 100644 index 00000000..d3da2575 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/mail-inbox-big.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/movetowindow-16.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/movetowindow-16.svg index 80181a35..05846772 100644 --- a/arch-config/.mozilla/firefox/default-release/chrome/icons/movetowindow-16.svg +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/movetowindow-16.svg @@ -1,7 +1,7 @@ - - - + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/pin-tab.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/pin-tab.svg index 1f951a37..719eeed1 100644 --- a/arch-config/.mozilla/firefox/default-release/chrome/icons/pin-tab.svg +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/pin-tab.svg @@ -1,6 +1,6 @@ - - - \ No newline at end of file + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/resize.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/resize.svg new file mode 100644 index 00000000..7df7cc7b --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/resize.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/share.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/share.svg index a1433883..97933796 100644 --- a/arch-config/.mozilla/firefox/default-release/chrome/icons/share.svg +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/share.svg @@ -1,7 +1,7 @@ - - - - \ No newline at end of file + + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/tag-open.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/tag-open.svg new file mode 100644 index 00000000..697f8109 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/tag-open.svg @@ -0,0 +1,6 @@ + + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/toolbar.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/toolbar.svg new file mode 100644 index 00000000..f9f2c8ee --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/toolbar.svg @@ -0,0 +1,4 @@ + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/toolbox.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/toolbox.svg new file mode 100644 index 00000000..e130f6f4 --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/toolbox.svg @@ -0,0 +1,3 @@ + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/icons/unpin-tab.svg b/arch-config/.mozilla/firefox/default-release/chrome/icons/unpin-tab.svg index bd2b382b..8acf292f 100644 --- a/arch-config/.mozilla/firefox/default-release/chrome/icons/unpin-tab.svg +++ b/arch-config/.mozilla/firefox/default-release/chrome/icons/unpin-tab.svg @@ -1,6 +1,6 @@ - - - \ No newline at end of file + + + diff --git a/arch-config/.mozilla/firefox/default-release/chrome/install.ps1 b/arch-config/.mozilla/firefox/default-release/chrome/install.ps1 new file mode 100644 index 00000000..c829fcca --- /dev/null +++ b/arch-config/.mozilla/firefox/default-release/chrome/install.ps1 @@ -0,0 +1,797 @@ +<# + +.SYNOPSIS +Installer for Lepton + +.DESCRIPTION +Installs Lepton onto selected Firefox profiles + +.INPUTS +TODO: input directories for installation? +Would need to discuss a non-interactive install system + +.OUTPUTS +TODO: output directories that Lepton has been installed to? + +.PARAMETER u +Specifies whether to update a current installation +Defaults to false + +.PARAMETER f +Specifies a custom path to look for Firefox profiles in + +.PARAMETER p +Specifies a custom name to use when creating a profile + +.PARAMETER h +Shows this help message + +.PARAMETER ? +Shows this help message + +.PARAMETER WhatIf +Runs the installer without actioning any file copies/moves +Equivelant to a dry-run + +.EXAMPLE +PS> .\Install.ps1 -u -f C:\Users\someone\ff-profiles +Updates current installations in the profile directory 'C:\Users\someone\ff-profiles' + +.LINK +https://github.com/black7375/Firefox-UI-Fix#readme + +#> + +[CmdletBinding( + SupportsShouldProcess = $true, + PositionalBinding = $false +)] + +param( + [Alias("u")] + [Switch]$updateMode, + [Alias("f")] + [string]$profileDir, + [Alias("p")] + [string]$profileName, + [Alias("h")] + [Switch]$help = $false +) + +#** Helper Utils *************************************************************** +#== Message ==================================================================== +function Lepton-ErrorMessage() { + Write-Error "FAILED: ${args}" + exit -1 +} + +function Lepton-OKMessage() { + $local:SIZE = 50 + $local:FILLED = "" + for ($i = 0; $i -le ($SIZE - 2); $i++) { + $FILLED += "." + } + $FILLED += "OK" + + $local:message = "${args}" + Write-Host ${message}(${FILLED}.Substring(${message}.Length)) +} + +$PSMinSupportedVersion = 2 +function Verify-PowerShellVersion { + Write-Host -NoNewline "Checking PowerShell version... " + $PSVersion = [int](Select-Object -Property Major -First 1 -ExpandProperty Major -InputObject $PSVersionTable.PSVersion) + + Write-Host "[$PSVersion]" + if ($PSVersion -lt $PSMinSupportedVersion) { + Write-Error -Category NotInstalled "You need a minimum PowerShell version of [$PSMinSupportedVersion] to use this installer" + exit -1 + } +} + +#== Required Tools ============================================================= +function Install-Choco() { + # https://chocolatey.org/install + Set-ExecutionPolicy Bypass -Scope Process -Force + [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 + iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) + $env:Path += ";C:\ProgramData\chocolatey" +} + +function Check-Git() { + if( -Not (Get-Command git) ) { + if ( -Not (Get-Command choco)) { + Install-Choco + } + choco install git -y + $env:Path += ";C:\Program Files\Git\bin" + } + + Lepton-OKMessage "Required - git" +} + +#== PATH / File ================================================================ +$currentDir = (Get-Location).path + +function Filter-Path() { + Param ( + [Parameter(Mandatory=$true, Position=0)] + [string[]] $pathList, + [Parameter(Position=1)] + [string] $option = "Any" + ) + + return $pathList.Where({ Test-Path -Path "$_" -PathType "${option}" }) +} + +function Copy-Auto() { + Param ( + [Parameter(Mandatory=$true, Position=0)] + [string] $file, + [Parameter(Mandatory=$true, Position=1)] + [string] $target + ) + + if ( "${file}" -eq "${target}" ) { + Write-Host "'${file}' and ${target} are same file" + return 0 + } + + if ( Test-Path -Path "${target}" ) { + Write-Host "${target} already exists." + Write-Host "Now making a backup.." + Copy-Auto "${target}" "${target}.bak" + Remove-Item "${target}" -Recurse -Force + Write-Host "" + } + + Copy-Item -Path "${file}" -Destination "${target}" -Force -Recurse +} + +function Move-Auto() { + Param ( + [Parameter(Mandatory=$true, Position=0)] + [string] $file, + [Parameter(Mandatory=$true, Position=1)] + [string] $target + ) + + if ( "${file}" -eq "${target}" ) { + Write-Host "'${file}' and ${target} are same file" + return 0 + } + + if ( Test-Path -Path "${target}" ) { + Write-Host "${target} already exists." + Write-Host "Now making a backup.." + Move-Auto "${target}" "${target}.bak" + Write-Host "" + } + + Get-ChildItem -Path "${target}" -Recurse | Move-Item -Path "${file}" -Destination "${target}" -Force +} + + function Restore-Auto() { + Param ( + [Parameter(Mandatory=$true, Position=0)] + [string] $file + ) + $local:target = "${file}.bak" + + if ( Test-Path -Path "${file}" ) { + Remove-Item "${file}" -Recurse -Force + } + Get-ChildItem -Path "${target}" -Recurse | Move-Item -Destination "${file}" -Force + + $local:lookupTarget = "${target}.bak" + if ( Test-Path -Path "${lookupTarget}" ) { + Restore-Auto "${target}" + } +} + +function Write-File() { + Param ( + [Parameter(Mandatory=$true, Position=0)] + [string] $filePath, + [Parameter(Position=1)] + [string] $fileContent = "" + ) + + if ( "${fileContent}" -eq "" ) { + New-Item -Path "${filePath}" -Force + } + else { + Out-File -FilePath "${filePath}" -InputObject "${fileContent}" -Force + } +} + +#== INI File ================================================================ +# https://devblogs.microsoft.com/scripting/use-powershell-to-work-with-any-ini-file/ +function Get-IniContent () { + Param ( + [Parameter(Mandatory=$true, Position=0)] + [string] $filePath + ) + + $ini = @{} + switch -regex -file $filePath { + "^\[(.+)\]" { + # Section + $section = $matches[1] + $ini[$section] = @{} + $CommentCount = 0 + } + "^(;.*)$" { + # Comment + $value = $matches[1] + $CommentCount = $CommentCount + 1 + $name = “Comment” + $CommentCount + $ini[$section][$name] = $value + } + "(.+?)\s*=(.*)" { + # For compatibility + if ( $section -eq $null ) { + $section = "Info" + $ini[$section] = @{} + } + + # Key + $name,$value = $matches[1..2] + $ini[$section][$name] = $value + } + } + return $ini +} + +function Out-IniFile() { + Param ( + [Parameter(Mandatory=$true, Position=0)] + [string] $filePath, + [Parameter(Position=1)] + [hashtable] $iniObject = @{} + ) + + # Create new file + $local:outFile = New-Item -ItemType file -Path "${filepath}" -Force + + foreach ($i in $iniObject.keys) { + if (!($($iniObject[$i].GetType().Name) -eq "Hashtable")) { + #No Sections + Add-Content -Path $outFile -Value "$i=$($iniObject[$i])" + } + else { + #Sections + Add-Content -Path $outFile -Value "[$i]" + Foreach ($j in ($iniObject[$i].keys | Sort-Object)) { + if ($j -match "^Comment[\d]+") { + Add-Content -Path $outFile -Value "$($iniObject[$i][$j])" + } + else { + Add-Content -Path $outFile -Value "$j=$($iniObject[$i][$j])" + } + + } + Add-Content -Path $outFile -Value "" + } + } +} + +#** Select Menu **************************************************************** +# https://github.com/chrisseroka/ps-menu +function Check-PsMenu() { + if(-Not (Get-InstalledModule ps-menu -ErrorAction silentlycontinue)) { + Set-PSRepository PSGallery -InstallationPolicy Trusted + Install-Module -Name ps-menu -Confirm:$False -Force + } +} + +function DrawMenu { + param ($menuItems, $menuPosition, $Multiselect, $selection) + $l = $menuItems.length + for ($i = 0; $i -le $l; $i++) { + if ($menuItems[$i] -ne $null){ + $item = $menuItems[$i] + if ($Multiselect) { + if ($selection -contains $i){ + $item = '[x] ' + $item + } + else { + $item = '[ ] ' + $item + } + } + if ($i -eq $menuPosition) { + Write-Host "> $($item)" -ForegroundColor Green + } + else { + Write-Host " $($item)" + } + } + } +} + +function Toggle-Selection { + param ($pos, [array]$selection) + if ($selection -contains $pos){ + $result = $selection | where {$_ -ne $pos} + } + else { + $selection += $pos + $result = $selection + } + $result +} + +function Menu { + param ([array]$menuItems, [switch]$ReturnIndex=$false, [switch]$Multiselect) + $vkeycode = 0 + $pos = 0 + $selection = @() + if ($menuItems.Length -gt 0) { + try { + [console]::CursorVisible=$false #prevents cursor flickering + DrawMenu $menuItems $pos $Multiselect $selection + While ($vkeycode -ne 13 -and $vkeycode -ne 27) { + $press = $host.ui.rawui.readkey("NoEcho,IncludeKeyDown") + $vkeycode = $press.virtualkeycode + If ($vkeycode -eq 38 -or $press.Character -eq 'k') {$pos--} + If ($vkeycode -eq 40 -or $press.Character -eq 'j') {$pos++} + If ($vkeycode -eq 36) { $pos = 0 } + If ($vkeycode -eq 35) { $pos = $menuItems.length - 1 } + If ($press.Character -eq ' ') { $selection = Toggle-Selection $pos $selection } + if ($pos -lt 0) {$pos = 0} + If ($vkeycode -eq 27) {$pos = $null } + if ($pos -ge $menuItems.length) {$pos = $menuItems.length -1} + if ($vkeycode -ne 27) { + $startPos = [System.Console]::CursorTop - $menuItems.Length + [System.Console]::SetCursorPosition(0, $startPos) + DrawMenu $menuItems $pos $Multiselect $selection + } + } + } + finally { + [System.Console]::SetCursorPosition(0, $startPos + $menuItems.Length) + [console]::CursorVisible = $true + } + } + else { + $pos = $null + } + + if ($ReturnIndex -eq $false -and $pos -ne $null) { + if ($Multiselect){ + return $menuItems[$selection] + } + else { + return $menuItems[$pos] + } + } + else { + if ($Multiselect) { + return $selection + } + else { + return $pos + } + } +} + +#** Profile ******************************************************************** +#== Profile Dir ================================================================ +# $HOME = (get-psprovider 'FileSystem').Home +$firefoxProfileDirPaths = @( + "${HOME}\AppData\Roaming\Mozilla\Firefox", + "${HOME}\AppData\Roaming\LibreWolf" +) + +function Check-ProfileDir() { + Param ( + [Parameter(Position=0)] + [string] $profileDir = "" + ) + + if ( "${profileDir}" -ne "" ) { + $global:firefoxProfileDirPaths = @("${profileDir}") + } + + + $global:firefoxProfileDirPaths = Filter-Path $global:firefoxProfileDirPaths "Container" + + if ( $firefoxProfileDirPaths.Length -eq 0 ) { + Lepton-ErrorMessage "Unable to find firefox profile dir." + } + + Lepton-OKMessage "Profiles dir found" +} + +#== Profile Info =============================================================== +$PROFILEINFOFILE="profiles.ini" +function Check-ProfileIni() { + foreach ( $profileDir in $global:firefoxProfileDirPaths ) { + if ( -Not (Test-Path -Path "${profileDir}\${PROFILEINFOFILE}" -PathType "Leaf") ) { + Lepton-ErrorMessage "Unable to find ${PROFILEINFOFILE} at ${profileDir}" + } + } + + Lepton-OKMessage "Profiles info file found" +} + +#== Profile PATH =============================================================== +$firefoxProfilePaths = @() +function Update-ProfilePaths() { + foreach ( $profileDir in $global:firefoxProfileDirPaths ) { + $local:iniContent = Get-IniContent "${profileDir}\${PROFILEINFOFILE}" + $global:firefoxProfilePaths += $iniContent.Values.Path | ForEach-Object { "${profileDir}\${PSItem}" } + } + + if ( $firefoxProfilePaths.Length -ne 0 ) { + Lepton-OkMessage "Profile paths updated" + } + else { + Lepton-ErrorMessage "Doesn't exist profiles" + } +} + +# TODO: Multi select support +function Select-Profile() { + Param ( + [Parameter(Position=0)] + [string] $profileName = "" + ) + + if ( "${profileName}" -ne "" ) { + $local:targetPath = "" + foreach ( $profilePath in $global:firefoxProfilePaths ) { + if ( "${profilePath}" -like "*${profileName}" ) { + $targetPath = "${profilePath}" + break + } + } + + if ( "${targetPath}" -ne "" ) { + Lepton-OkMessage "Profile, `"${profileName}`" found" + $global:firefoxProfilePaths = @("${targetPath}") + } + else { + Lepton-ErrorMessage "Unable to find ${profileName}" + } + } + else { + if ( $firefoxProfilePaths.Length -eq 1 ) { + Lepton-OkMessage "Auto detected profile" + } + else { + $global:firefoxProfilePaths = Menu $firefoxProfilePaths + + if ( $firefoxProfilePaths.Length -eq 0 ) { + Lepton-ErrorMessage "Please select profiles" + } + + Lepton-OkMessage "Selected profile" + } + } +} + +#** Lepton Info File *********************************************************** +# If you interst RFC, see install.sh + +#== Lepton Info ================================================================ +$LEPTONINFOFILE ="lepton.ini" +function Check-LeptonIni() { + foreach ( $profileDir in $global:firefoxProfileDirPaths ) { + if ( -Not (Test-Path -Path "${profileDir}\${LEPTONINFOFILE}") ) { + Lepton-ErrorMessage "Unable to find ${LEPTONINFOFILE} at ${profileDir}" + } + } + + Lepton-OkMessage "Lepton info file found" +} + +#== Create info file =========================================================== +# We should always create a new one, as it also takes into account the possibility of setting it manually. +# Updates happen infrequently, so the creation overhead is less significant. + +function Get-ProfileDir() { + Param ( + [Parameter(Mandatory=$true, Position=0)] + [string] $profilePath + ) + foreach ( $profileDir in $firefoxProfileDirPaths ) { + if ( "$profilePath" -like "${profileDir}*" ) { + return "$profileDir" + } + } +} + +$CHROMEINFOFILE="LEPTON" +function Write-LeptonInfo() { + # Init info + $local:output = @{} + $local:prevDir = $firefoxProfileDirPaths[0] + $local:latestPath = ( $firefoxProfilePaths | Select-Object -Last 1 ) + foreach ( $profilePath in $global:firefoxProfilePaths ) { + $local:LEPTONINFOPATH = "${profilePath}\chrome\${CHROMEINFOFILE}" + $local:LEPTONGITPATH = "${profilePath}\chrome\.git" + + # Profile info + $local:Type = "" + $local:Ver = "" + $local:Branch = "" + $local:Path = "" + if ( Test-Path -Path "${LEPTONINFOPATH}" ) { + if ( Test-Path -Path "${LEPTONGITPATH}" -PathType "Container" ) { + $Type = "Git" + $Ver = $(git --git-dir "${LEPTONGITPATH}" rev-parse HEAD) + $Branch = $(git --git-dir "${LEPTONGITPATH}" rev-parse --abbrev-ref HEAD) + } + else { + $local:iniContent = Get-IniContent "${LEPTONINFOPATH}" + $Type = $iniContent["Info"]["Type"] + $Ver = $iniContent["Info"]["Ver"] + $Branch = $iniContent["Info"]["Branch"] + + if ( "${Type}" -eq "" ) { + $Type = "Local" + } + } + + $Path = "${profilePath}" + } + + # Flushing + $local:profileDir = Get-ProfileDir "${profilePath}" + $local:profileName = Split-Path "${profilePath}" -Leaf + if ( "${prevDir}" -ne "${profileDir}" ) { + Out-IniFile "${prevDir}\${LEPTONINFOFILE}" $output + $output = @{} + } + + # Make output contents + foreach ( $key in @("Type", "Branch", "Ver", "Path") ) { + $local:value = (Get-Variable -Name "${key}").Value + if ( "$value" -ne "" ) { + $output["${profileName}"] += @{"${key}" = "${value}"} + } + } + + # Latest element flushing + if ( "${profilePath}" -eq "${latestPath}" ) { + Out-IniFile "${profileDir}\${LEPTONINFOFILE}" $output + } + $prevDir = "${profileDir}" + } + + # Verify + Check-LeptonIni + Lepton-OkMessage "Lepton info file created" +} + +#** Install ******************************************************************** +#== Install Types ============================================================== +$updateMode = $false +$leptonBranch = "master" +function Select-Distribution() { + while ( $true ) { + $local:selected = $false + $local:selectedDistribution = Menu @("Original(default)", "Photon-Style", "Proton-Style", "Update") + switch ( $selectedDistribution ) { + "Original(default)" { $global:leptonBranch = "master" ; $selected = $true } + "Photon-Style" { $global:leptonBranch = "photon-style"; $selected = $true } + "Proton-Style" { $global:leptonBranch = "proton-style"; $selected = $true } + "Update" { $global:updateMode = $true ; $selected = $true } + default { Write-Host "Invalid option, reselect please." } + } + + if ( $selected -eq $true ) { + break + } + } + Lepton-OkMessage "Selected ${selectedDistribution}" +} + +$leptonInstallType = "Network" # Other types: Local, Release +function Check-InstallType() { + Param ( + [Parameter(Mandatory=$true, Position=0)] + [string[]] $targetList, + [Parameter(Mandatory=$true, Position=1)] + [string] $installType + ) + + $local:targetCount = $targetList.Length + $local:foundCount = (Filter-Path $targetList ).Length + + if ( "${targetCount}" -eq "${foundCount}" ) { + $global:leptonInstallType="${installType}" + } +} + +$checkLocalFiles = @( + "userChrome.css", + "userContent.css", + "icons" +) +$checkReleaseFiles = @( + "user.js" + "chrome\userChrome.css" + "chrome\userContent.css" + "chrome\icons" +) +function Check-InstallTypes() { + Check-InstallType $checkLocalFiles "Local" + Check-InstallType $checkReleaseFiles "Release" + + Lepton-OkMessage "Checked install type: ${leptonInstallType}" + if ( "${leptonInstallType}" -eq "Network" ) { + Select-Distribution + } + if ( "${leptonInstallType}" -eq "Local" ) { + if ( Test-Path -Path ".git" -PathType "Container" ) { + Select-Distribution + git checkout "${leptonBranch}" + } + } +} + +#== Install Helpers ============================================================ +$chromeDuplicate = $false +function Check-ChromeExist() { + if ( (Test-Path -Path "chrome") -and (-Not (Test-Path -Path "chrome\${LEPTONINFOFILE}")) ) { + $global:chromeDuplicate = $true + Move-Auto "chrome" "chrome.bak" + Lepton-OkMessage "Backup files" + } +} +function Check-ChromeRestore() { + if ( "${chromeDuplicate}" -eq $true ) { + Restore-Auto "chrome" + Lepton-OkMessage "End restore files" + } + Lepton-OkMessage "End check restore files" +} + +function Clean-Lepton() { + if ( ($chromeDuplicate -ne $true) -and (Test-Path -Path "chrome") ) { + Remove-Item -Path "chrome" -Recurse -Force + } + Lepton-OkMessage "End clean files" +} +function Clone-Lepton() { + Param ( + [Parameter(Position=0)] + [string] $branch = "" + ) + + if ( "${branch}" -eq "" ) { + $branch = "${leptonBranch}" + } + + git clone -b "${branch}" https://github.com/black7375/Firefox-UI-Fix.git chrome + if ( -Not (Test-Path -Path "chrome" -PathType "Container") ) { + Lepton-ErrorMessage "Unable to find downloaded files" + } +} + +function Copy-Lepton() { + Param ( + [Parameter(Position=0)] + [string] $chromeDir = "chrome", + [Parameter(Position=0)] + [string] $userJSPath = "${chromeDir}\user.js" + ) + + foreach ( $profilePath in $global:firefoxProfilePaths ) { + Copy-Auto "${userJSPath}" "${profilePath}\user.js" + Copy-Auto "${chromeDir}" "${profilePath}\chrome" + } + + Lepton-OkMessage "End profile copy" +} + +#== Each Install =============================================================== +function Install-Local() { + Copy-Lepton "${currentDir}" "user.js" +} + +function Install-Release() { + Copy-Lepton "chrome" "user.js" +} + +function Install-Network() { + Check-ChromeExist + Check-Git + + Clone-Lepton + Copy-Lepton + + Clean-Lepton + Check-ChromeRestore +} + +function Install-Profile() { + Lepton-OkMessage "Started install" + + switch ( "${leptonInstallType}" ) { + "Local" { Install-Local } + "Release" { Install-Release } + "Network" { Install-Network } + } + + Lepton-OkMessage "End install" +} + +#** Update ********************************************************************* +function Update-Profile() { + Check-Git + foreach ( $profileDir in $global:firefoxProfileDirPaths ) { + $local:LEPTONINFOPATH = "${profileDir}\${LEPTONINFOFILE}" + $local:LEPTONINFO = Get-IniContent "${LEPTONINFOPATH}" + $local:sections = $LEPTONINFO.Keys + if ( $sections.Length -ne 0 ) { + foreach ( $section in $sections ) { + $local:Type = $LEPTONINFO["${section}"]["Type"] + $local:Branch = $LEPTONINFO["${section}"]["Branch"] + $local:Path = $LEPTONINFO["${section}"]["Path"] + + $local:LEPTONGITPATH="${Path}\chrome\.git" + if ( "${Type}" -eq "Git" ){ + git --git-dir "${LEPTONGITPATH}" checkout "${Branch}" + git --git-dir "${LEPTONGITPATH}" pull --no-edit + } + elseif ( "${Type}" -eq "Local" -or "${Type}" -eq "Release" ) { + Check-ChromeExist + Clone-Lepton + + $firefoxProfilePaths = @("${Path}") + Copy-Lepton + + if ( "${Branch}" -eq $null ) { + $Branch = "${leptonBranch}" + } + git --git-dir "${LEPTONGITPATH}" checkout "${Branch}" + + if ( "${Type}" -eq "Release" ) { + $local:Ver=$(git --git-dir "${LEPTONINFOFILE}" describe --tags --abbrev=0) + git --git-dir "${LEPTONGITPATH}" checkout "tags/${Ver}" + } + } + else { + Lepton-ErrorMessage "Unable to find update type, ${Type} at ${section}" + } + } + } + } + Clean-Lepton + Check-ChromeRestore +} + +#** Main *********************************************************************** +function Check-Help { + # Cheap and dirty way of getting the same output as '-?' for '-h' and '-Help' + if ($help) { + Get-Help "$PSCommandPath" + exit 0 + } +} + +function Install-Lepton { + Verify-PowerShellVersion # Check installed version meets minimum + Check-InstallTypes + + Check-ProfileDir $profileDir + Check-ProfileIni + Update-ProfilePaths + Write-LeptonInfo + + if ( $updateMode ) { + Update-Profile + } + else { + Select-Profile $profileName + Install-Profile + } + + Write-LeptonInfo +} + +Check-Help +Install-Lepton diff --git a/arch-config/.mozilla/firefox/default-release/user.js b/arch-config/.mozilla/firefox/default-release/user.js index 5f2e5ca1..09c18fe9 100644 --- a/arch-config/.mozilla/firefox/default-release/user.js +++ b/arch-config/.mozilla/firefox/default-release/user.js @@ -2,6 +2,12 @@ // userchrome.css usercontent.css activate user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); +// Proton Enabled #127 +user_pref("browser.proton.enabled", true); + +// Proton Tooltip +user_pref("browser.proton.places-tooltip.enabled", true); + // Fill SVG Color user_pref("svg.context-properties.content.enabled", true); @@ -12,8 +18,57 @@ user_pref("layout.css.backdrop-filter.enabled", true); user_pref("browser.compactmode.show", true); // about:home Search Bar -// user_pref("browser.newtabpage.activity-stream.improvesearch.handoffToAwesomebar", false); +user_pref("browser.newtabpage.activity-stream.improvesearch.handoffToAwesomebar", false); // ** Useful Options *********************************************************** // Integrated calculator at urlbar user_pref("browser.urlbar.suggest.calculator", true); + +// Integrated unit convertor at urlbar +// user_pref("browser.urlbar.unitConversion.enabled", true); + +// ** Scrolling Options ******************************************************** +// based on natural smooth scrolling v2 by aveyo +// this preset will reset couple extra variables for consistency +// Pref Value Original +user_pref("apz.allow_zooming", true); /// true +user_pref("apz.force_disable_desktop_zooming_scrollbars", false); /// false +user_pref("apz.paint_skipping.enabled", true); /// true +user_pref("apz.windows.use_direct_manipulation", true); /// true +user_pref("dom.event.wheel-deltaMode-lines.always-disabled", true); /// false +user_pref("general.smoothScroll.currentVelocityWeighting", "0.12"); /// "0.25" <- 1. If scroll too slow, set to "0.15" +user_pref("general.smoothScroll.durationToIntervalRatio", 1000); /// 200 +user_pref("general.smoothScroll.lines.durationMaxMS", 100); /// 150 +user_pref("general.smoothScroll.lines.durationMinMS", 0); /// 150 +user_pref("general.smoothScroll.mouseWheel.durationMaxMS", 100); /// 200 +user_pref("general.smoothScroll.mouseWheel.durationMinMS", 0); /// 50 +user_pref("general.smoothScroll.mouseWheel.migrationPercent", 100); /// 100 +user_pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12); /// 120 +user_pref("general.smoothScroll.msdPhysics.enabled", true); /// false +user_pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 200); /// 1250 +user_pref("general.smoothScroll.msdPhysics.regularSpringConstant", 200); /// 1000 +user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 10); /// 12 +user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", "1.20"); /// "1.3" +user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 1000); /// 2000 +user_pref("general.smoothScroll.other.durationMaxMS", 100); /// 150 +user_pref("general.smoothScroll.other.durationMinMS", 0); /// 150 +user_pref("general.smoothScroll.pages.durationMaxMS", 100); /// 150 +user_pref("general.smoothScroll.pages.durationMinMS", 0); /// 150 +user_pref("general.smoothScroll.pixels.durationMaxMS", 100); /// 150 +user_pref("general.smoothScroll.pixels.durationMinMS", 0); /// 150 +user_pref("general.smoothScroll.scrollbars.durationMaxMS", 100); /// 150 +user_pref("general.smoothScroll.scrollbars.durationMinMS", 0); /// 150 +user_pref("general.smoothScroll.stopDecelerationWeighting", "0.6"); /// "0.4" +user_pref("layers.async-pan-zoom.enabled", true); /// true +user_pref("layout.css.scroll-behavior.spring-constant", "250.0"); /// "250.0" +user_pref("mousewheel.acceleration.factor", 3); /// 10 +user_pref("mousewheel.acceleration.start", -1); /// -1 +user_pref("mousewheel.default.delta_multiplier_x", 100); /// 100 +user_pref("mousewheel.default.delta_multiplier_y", 100); /// 100 +user_pref("mousewheel.default.delta_multiplier_z", 100); /// 100 +user_pref("mousewheel.min_line_scroll_amount", 0); /// 5 +user_pref("mousewheel.system_scroll_override.enabled", true); /// true <- 2. If scroll too fast, set to false +user_pref("mousewheel.system_scroll_override_on_root_content.enabled", false); /// true +user_pref("mousewheel.transaction.timeout", 1500); /// 1500 +user_pref("toolkit.scrollbox.horizontalScrollDistance", 4); /// 5 +user_pref("toolkit.scrollbox.verticalScrollDistance", 3); /// 3