├── .gitignore ├── .prettierrc ├── COPYING ├── LICENSE ├── README.md ├── dynamic-panel-transparency@rockon999.github.io ├── COPYING ├── LICENSE ├── dynamic-panel-transparency.pot ├── events.js ├── extension.js ├── intellifade.js ├── locale │ ├── ar │ │ └── LC_MESSAGES │ │ │ ├── dynamic-panel-transparency.mo │ │ │ └── dynamic-panel-transparency.po │ ├── de │ │ └── LC_MESSAGES │ │ │ ├── dynamic-panel-transparency.mo │ │ │ └── dynamic-panel-transparency.po │ ├── es │ │ └── LC_MESSAGES │ │ │ ├── dynamic-panel-transparency.mo │ │ │ └── dynamic-panel-transparency.po │ ├── fr │ │ └── LC_MESSAGES │ │ │ ├── dynamic-panel-transparency.mo │ │ │ └── dynamic-panel-transparency.po │ ├── pt_BR │ │ └── LC_MESSAGES │ │ │ ├── dynamic-panel-transparency.mo │ │ │ └── dynamic-panel-transparency.po │ ├── ru │ │ └── LC_MESSAGES │ │ │ ├── dynamic-panel-transparency.mo │ │ │ └── dynamic-panel-transparency.po │ ├── sr │ │ └── LC_MESSAGES │ │ │ ├── dynamic-panel-transparency.mo │ │ │ └── dynamic-panel-transparency.po │ ├── sr@latin │ │ └── LC_MESSAGES │ │ │ ├── dynamic-panel-transparency.mo │ │ │ └── dynamic-panel-transparency.po │ └── zh_CN │ │ └── LC_MESSAGES │ │ ├── dynamic-panel-transparency.mo │ │ └── dynamic-panel-transparency.po ├── main.js ├── media │ └── demo.gif ├── metadata.json ├── prefs.js ├── prefs.ui ├── schemas │ ├── gschemas.compiled │ └── org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml ├── settings.js ├── shell.js ├── stylesheet.css ├── theming.js ├── timers.js ├── transitions.js └── util.js ├── imports.d.ts ├── jsconfig.json ├── package.json ├── shell.d.ts ├── update-translations └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | old_files/ 2 | styles/ 3 | .vscode/ 4 | .buildconfig 5 | *~ 6 | *.dpt.css 7 | .goutputstream* 8 | *# 9 | .buildconfig 10 | globals.d.ts 11 | 12 | 13 | node_modules/** -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 4, 3 | "singleQuote": true, 4 | "printWidth": 100 5 | } -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | GPL v2; Copyright (c) 2017 Evan Welsh 2 | 3 | Dynamic Panel Transparency is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, version 2 only. 6 | 7 | Dynamic Panel Transparency is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | GNU General Public License for more details. 11 | 12 | You should have received a copy of the GNU General Public License 13 | along with Dynamic Panel Transparency. If not, see . 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | 3 | Version 2, June 1991 4 | 5 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. 6 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 7 | 8 | Everyone is permitted to copy and distribute verbatim copies 9 | of this license document, but changing it is not allowed. 10 | Preamble 11 | 12 | The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. 13 | 14 | When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. 15 | 16 | To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. 17 | 18 | For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. 19 | 20 | We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. 21 | 22 | Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. 23 | 24 | Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. 25 | 26 | The precise terms and conditions for copying, distribution and modification follow. 27 | 28 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 29 | 30 | 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". 31 | 32 | Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 33 | 34 | 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. 35 | 36 | You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 37 | 38 | 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: 39 | 40 | a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. 41 | b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. 42 | c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) 43 | These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. 44 | 45 | Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. 46 | 47 | In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 48 | 49 | 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: 50 | 51 | a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, 52 | b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, 53 | c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) 54 | The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. 55 | 56 | If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 57 | 58 | 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 59 | 60 | 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 61 | 62 | 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 63 | 64 | 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. 65 | 66 | If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. 67 | 68 | It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. 69 | 70 | This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 71 | 72 | 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 73 | 74 | 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. 75 | 76 | Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 77 | 78 | 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. 79 | 80 | NO WARRANTY 81 | 82 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 83 | 84 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 85 | 86 | END OF TERMS AND CONDITIONS 87 | 88 | How to Apply These Terms to Your New Programs 89 | 90 | If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. 91 | 92 | To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. 93 | 94 | one line to give the program's name and an idea of what it does. 95 | Copyright (C) yyyy name of author 96 | 97 | This program is free software; you can redistribute it and/or 98 | modify it under the terms of the GNU General Public License 99 | as published by the Free Software Foundation; either version 2 100 | of the License, or (at your option) any later version. 101 | 102 | This program is distributed in the hope that it will be useful, 103 | but WITHOUT ANY WARRANTY; without even the implied warranty of 104 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 105 | GNU General Public License for more details. 106 | 107 | You should have received a copy of the GNU General Public License 108 | along with this program; if not, write to the Free Software 109 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 110 | Also add information on how to contact you by electronic and paper mail. 111 | 112 | If the program is interactive, make it output a short notice like this when it starts in an interactive mode: 113 | 114 | Gnomovision version 69, Copyright (C) year name of author 115 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details 116 | type `show w'. This is free software, and you are welcome 117 | to redistribute it under certain conditions; type `show c' 118 | for details. 119 | The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. 120 | 121 | You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: 122 | 123 | Yoyodyne, Inc., hereby disclaims all copyright 124 | interest in the program `Gnomovision' 125 | (which makes passes at compilers) written 126 | by James Hacker. 127 | 128 | signature of Ty Coon, 1 April 1989 129 | Ty Coon, President of Vice 130 | This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. 131 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dynamic Panel Transparency 2 | [![Demo](https://raw.githubusercontent.com/rockon999/dynamic-panel-transparency/master/dynamic-panel-transparency%40rockon999.github.io/media/demo.gif)](https://www.youtube.com/watch?v=P5Eqf65uVhs) 3 | 4 | ## Classy transparency for your panel 5 | This extension *fades* your top panel to nothingness when there are no maximized windows present. Never again will the panel be abruptly darkened! 6 | 7 | ## Installing from source (3.20 and lower) 8 | 9 | To use and test the latest version of this extension you may install it directly from the source. 10 | 11 | Clone the legacy branch with git... 12 | 13 |
git clone -b legacy https://github.com/rockon999/dynamic-panel-transparency.git
14 | ...or download the branch from Github. 15 | 16 | Move the 'dynamic-panel-transparency@rockon999.github.io' folder to ~/.local/share/gnome-shell/extensions/ 17 | 18 | Reload your shell using Alt+F2 r Enter and enable the extension via *gnome-tweak-tool* or *dconf*. 19 | 20 | ## Installing from source (3.22+) 21 | 22 | To use and test the latest version of this extension you may install it directly from the source. 23 | 24 | Clone the master branch with git... 25 | 26 |
git clone https://github.com/rockon999/dynamic-panel-transparency.git
27 | ...or download the branch from Github. 28 | 29 | Move the 'dynamic-panel-transparency@rockon999.github.io' folder to ~/.local/share/gnome-shell/extensions/ 30 | 31 | Reload your shell using Alt+F2 r Enter and enable the extension via *gnome-tweak-tool* or *dconf*. 32 | 33 | ## Bugs 34 | 35 | Report bugs [here](https://github.com/rockon999/dynamic-panel-transparency/issues). 36 | 37 | Please include a list of your installed extensions, current theme, relevant data from `journalctl --since "X seconds ago"`, and any other information you believe is necessary for me to understand your issue. 38 | 39 | ## License 40 | Dynamic Panel Transparency is distributed under the terms of the GNU General Public License v2. 41 | See the COPYING and LICENSE files for details. 42 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/COPYING: -------------------------------------------------------------------------------- 1 | GPL v2; Copyright (c) 2017 Evan Welsh 2 | 3 | Dynamic Panel Transparency is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, version 2 only. 6 | 7 | Dynamic Panel Transparency is distributed in the hope that it will be useful, 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | GNU General Public License for more details. 11 | 12 | You should have received a copy of the GNU General Public License 13 | along with Dynamic Panel Transparency. If not, see . 14 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | 3 | Version 2, June 1991 4 | 5 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. 6 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 7 | 8 | Everyone is permitted to copy and distribute verbatim copies 9 | of this license document, but changing it is not allowed. 10 | Preamble 11 | 12 | The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. 13 | 14 | When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. 15 | 16 | To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. 17 | 18 | For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. 19 | 20 | We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. 21 | 22 | Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. 23 | 24 | Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. 25 | 26 | The precise terms and conditions for copying, distribution and modification follow. 27 | 28 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 29 | 30 | 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". 31 | 32 | Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 33 | 34 | 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. 35 | 36 | You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 37 | 38 | 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: 39 | 40 | a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. 41 | b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. 42 | c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) 43 | These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. 44 | 45 | Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. 46 | 47 | In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 48 | 49 | 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: 50 | 51 | a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, 52 | b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, 53 | c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) 54 | The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. 55 | 56 | If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 57 | 58 | 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 59 | 60 | 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 61 | 62 | 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 63 | 64 | 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. 65 | 66 | If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. 67 | 68 | It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. 69 | 70 | This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 71 | 72 | 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 73 | 74 | 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. 75 | 76 | Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 77 | 78 | 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. 79 | 80 | NO WARRANTY 81 | 82 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 83 | 84 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 85 | 86 | END OF TERMS AND CONDITIONS 87 | 88 | How to Apply These Terms to Your New Programs 89 | 90 | If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. 91 | 92 | To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. 93 | 94 | one line to give the program's name and an idea of what it does. 95 | Copyright (C) yyyy name of author 96 | 97 | This program is free software; you can redistribute it and/or 98 | modify it under the terms of the GNU General Public License 99 | as published by the Free Software Foundation; either version 2 100 | of the License, or (at your option) any later version. 101 | 102 | This program is distributed in the hope that it will be useful, 103 | but WITHOUT ANY WARRANTY; without even the implied warranty of 104 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 105 | GNU General Public License for more details. 106 | 107 | You should have received a copy of the GNU General Public License 108 | along with this program; if not, write to the Free Software 109 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 110 | Also add information on how to contact you by electronic and paper mail. 111 | 112 | If the program is interactive, make it output a short notice like this when it starts in an interactive mode: 113 | 114 | Gnomovision version 69, Copyright (C) year name of author 115 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details 116 | type `show w'. This is free software, and you are welcome 117 | to redistribute it under certain conditions; type `show c' 118 | for details. 119 | The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. 120 | 121 | You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: 122 | 123 | Yoyodyne, Inc., hereby disclaims all copyright 124 | interest in the program `Gnomovision' 125 | (which makes passes at compilers) written 126 | by James Hacker. 127 | 128 | signature of Ty Coon, 1 April 1989 129 | Ty Coon, President of Vice 130 | This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. 131 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/dynamic-panel-transparency.pot: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: PACKAGE VERSION\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2023-03-17 13:32-0700\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=CHARSET\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | 20 | #: prefs.js:121 21 | msgid "default" 22 | msgstr "" 23 | 24 | #: prefs.ui:7 25 | msgid "Classy transparency for your panel." 26 | msgstr "" 27 | 28 | #: prefs.ui:9 29 | msgid "Website" 30 | msgstr "" 31 | 32 | #: prefs.ui:72 33 | msgid "Shell Restart Required." 34 | msgstr "" 35 | 36 | #. Meant to ask the user if they would like to restart right now or later in a yes/no format. 37 | #: prefs.ui:73 38 | msgid "" 39 | "A shell restart is required to view some of your changes. Do you want to " 40 | "restart now?" 41 | msgstr "" 42 | 43 | #. How long the transition will take. 44 | #: prefs.ui:134 45 | msgid "Transition Speed" 46 | msgstr "" 47 | 48 | #: prefs.ui:160 prefs.ui:183 49 | msgid "Overrides 'gtk-enable-animations'." 50 | msgstr "" 51 | 52 | #. Whether the panel transitions should happen with the overview transitions or after. 53 | #: prefs.ui:171 54 | msgid "Transition with the overview" 55 | msgstr "" 56 | 57 | #. Whether the panel should transition when a window touches it or only when a window is actually maximized. 58 | #: prefs.ui:194 59 | msgid "Transition when windows touch the panel" 60 | msgstr "" 61 | 62 | #: prefs.ui:210 63 | msgid "Transitions" 64 | msgstr "" 65 | 66 | #. Allows the user to set their own text color. 67 | #: prefs.ui:257 68 | msgid "Enable custom text coloring" 69 | msgstr "" 70 | 71 | #. The main color to be used. 72 | #: prefs.ui:281 prefs.ui:294 73 | msgid "Primary Color" 74 | msgstr "" 75 | 76 | #. Another color for special functions. 77 | #: prefs.ui:307 prefs.ui:319 78 | msgid "Secondary Color" 79 | msgstr "" 80 | 81 | #: prefs.ui:334 82 | msgid "Use when a window is maximized" 83 | msgstr "" 84 | 85 | #: prefs.ui:352 86 | msgid "Use when the overview is visible" 87 | msgstr "" 88 | 89 | #: prefs.ui:409 90 | msgid "Enable text shadowing" 91 | msgstr "" 92 | 93 | #: prefs.ui:442 prefs.ui:496 prefs.ui:609 prefs.ui:663 94 | msgid "Shadow Color" 95 | msgstr "" 96 | 97 | #: prefs.ui:508 prefs.ui:675 98 | msgid "Radius" 99 | msgstr "" 100 | 101 | #: prefs.ui:520 prefs.ui:687 102 | msgid "Horizontal Offset" 103 | msgstr "" 104 | 105 | #: prefs.ui:532 prefs.ui:699 106 | msgid "Vertical Offset" 107 | msgstr "" 108 | 109 | #: prefs.ui:576 110 | msgid "Enable icon shadowing" 111 | msgstr "" 112 | 113 | #: prefs.ui:734 114 | msgid "Foreground" 115 | msgstr "" 116 | 117 | #. Opacity of the panel when no window is maximized. 118 | #: prefs.ui:785 119 | msgid "Unmaximized Opacity" 120 | msgstr "" 121 | 122 | #. Opacity of the panel when a window is maximized. 123 | #: prefs.ui:829 124 | msgid "Maximized Opacity" 125 | msgstr "" 126 | 127 | #. Allows the user to set their own opacity. 128 | #: prefs.ui:850 129 | msgid "Enable custom opacity" 130 | msgstr "" 131 | 132 | #. The panel's background color. 133 | #: prefs.ui:902 prefs.ui:915 134 | msgid "Panel Color" 135 | msgstr "" 136 | 137 | #. Allows the user to set their own background color for the panel. 138 | #: prefs.ui:935 139 | msgid "Enable custom panel color" 140 | msgstr "" 141 | 142 | #. Removes any extra styling certain themes may have. Fixes theme issues. 143 | #: prefs.ui:983 144 | msgid "Remove excess panel styling" 145 | msgstr "" 146 | 147 | #: prefs.ui:990 148 | msgid "(Fixes theme incompatibilities.)" 149 | msgstr "" 150 | 151 | #: prefs.ui:1010 152 | msgid "Background" 153 | msgstr "" 154 | 155 | #: prefs.ui:1020 156 | msgid "About" 157 | msgstr "" 158 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/events.js: -------------------------------------------------------------------------------- 1 | import Shell from 'gi://Shell'; 2 | 3 | import { main } from './shell.js'; 4 | 5 | /** 6 | * Signal Connections 7 | * js/ui/overview.js/hidden: occurs after the overview is hidden 8 | * js/ui/overview.js/shown: occurs after the overview is open 9 | * MetaScreen/restacked: occurs when the window Z-ordering changes 10 | * window_group/actor-added: occurs when a window actor is added 11 | * window_group/actor-removed: occurs when a window actor is removed 12 | * wm/switch-workspace: occurs after a workspace is switched 13 | */ 14 | 15 | export class Events { 16 | /** 17 | * @param {import('./main.js').DptExtension} extension 18 | */ 19 | constructor(extension) { 20 | this.extension = extension; 21 | this._windowUnminimizeSig = undefined; 22 | } 23 | 24 | bind() { 25 | const { intellifader } = this.extension; 26 | 27 | this._wm_tracker = Shell.WindowTracker.get_default(); 28 | 29 | this._overviewHidingSig = main.overview.connect('hiding', () => intellifader.syncCheck()); 30 | 31 | if (this.extension.settings.transition_with_overview()) { 32 | this._overviewShownSig = main.overview.connect('showing', () => this._overviewShown()); 33 | } else { 34 | this._overviewShownSig = main.overview.connect('shown', () => this._overviewShown()); 35 | } 36 | 37 | let windows = global.get_window_actors(); 38 | 39 | for (let window_actor of windows) { 40 | /* Simulate window creation event, null container because _windowActorAdded doesn't utilize containers */ 41 | this._windowActorAdded(null, window_actor, false); 42 | } 43 | 44 | this._workspaceSwitchSig = global.window_manager.connect_after( 45 | 'switch-workspace', 46 | (...args) => this._workspaceSwitched(...args) 47 | ); 48 | 49 | const screen = global.screen || global.display; 50 | 51 | if (screen) { 52 | this._windowRestackedSig = screen.connect_after('restacked', () => 53 | this._windowRestacked() 54 | ); 55 | } else { 56 | log("[Dynamic Panel Transparency] Error could not register 'restacked' event."); 57 | } 58 | 59 | this._windowActorAddedSig = global.window_group.connect('actor-added', (...args) => 60 | this._windowActorAdded(...args) 61 | ); 62 | this._windowActorRemovedSig = global.window_group.connect('actor-removed', (...args) => 63 | this._windowActorRemoved(...args) 64 | ); 65 | 66 | this._appFocusedSig = this._wm_tracker.connect_after('notify::focus-app', () => 67 | this._windowRestacked() 68 | ); 69 | } 70 | 71 | disconnect(obj, sig) { 72 | try { 73 | if (sig != null && obj) { 74 | obj.disconnect(sig); 75 | } 76 | } catch (error) { 77 | log('[Dynamic Panel Transparency] Failed to disconnect signal: ' + error); 78 | } 79 | } 80 | 81 | /** 82 | * Don't want to hold onto anything that isn't ours. 83 | * 84 | */ 85 | cleanup() { 86 | /* Disconnect Signals */ 87 | if (this._windowUnminimizeSig) { 88 | this.disconnect(global.window_manager, this._windowUnminimizeSig); 89 | } 90 | 91 | this.disconnect(main.overview, this._overviewShownSig); 92 | this.disconnect(main.overview, this._overviewHidingSig); 93 | 94 | this.disconnect(global.window_manager, this._workspaceSwitchSig); 95 | 96 | this.disconnect(global.window_group, this._windowActorAddedSig); 97 | this.disconnect(global.window_group, this._windowActorRemovedSig); 98 | 99 | const screen = global.screen || global.display; 100 | 101 | if (screen) { 102 | this.disconnect(screen, this._windowRestackedSig); 103 | } else { 104 | log("[Dynamic Panel Transparency] Error could not disconnect 'restacked' event."); 105 | } 106 | 107 | this.disconnect(this._wm_tracker, this._appFocusedSig); 108 | 109 | let windows = global.get_window_actors(); 110 | 111 | for (let window_actor of windows) { 112 | if (typeof window_actor._dpt_signals !== 'undefined') { 113 | for (let signalId of window_actor._dpt_signals) { 114 | this.disconnect(window_actor, signalId); 115 | } 116 | } 117 | 118 | delete window_actor._dpt_signals; 119 | delete window_actor._dpt_tracking; 120 | } 121 | 122 | /* Cleanup Signals */ 123 | this._windowRestackedSig = null; 124 | this._overviewShownSig = null; 125 | this._overviewHidingSig = null; 126 | this._windowActorRemovedSig = null; 127 | this._workspaceSwitchSig = null; 128 | this._windowActorAddedSig = null; 129 | 130 | this._wm_tracker = null; 131 | } 132 | 133 | /* Event Handlers */ 134 | 135 | /** 136 | * Called whenever the overview is shown. 137 | * 138 | */ 139 | _overviewShown() { 140 | const { settings, theming, transitions } = this.extension; 141 | 142 | if (!transitions.get_transparency_status().is_blank()) { 143 | transitions.blank_fade_out(); 144 | } 145 | 146 | if ( 147 | settings.get_enable_text_color() && 148 | (settings.get_enable_maximized_text_color() || 149 | settings.get_enable_overview_text_color()) 150 | ) { 151 | if (settings.get_enable_overview_text_color()) { 152 | theming.remove_text_color(); 153 | theming.set_text_color('maximized'); 154 | } else { 155 | theming.remove_text_color('maximized'); 156 | theming.set_text_color(); 157 | } 158 | } 159 | } 160 | 161 | /** 162 | * Called whenever a window actor is removed. 163 | * 164 | */ 165 | _windowActorRemoved(container, window_actor) { 166 | const { intellifader } = this.extension; 167 | if (typeof window_actor._dpt_tracking === 'undefined') { 168 | return; 169 | } 170 | 171 | /* Remove our tracking variable. */ 172 | delete window_actor._dpt_tracking; 173 | 174 | if (typeof window_actor._dpt_signals !== 'undefined') { 175 | for (let signalId of window_actor._dpt_signals) { 176 | window_actor.disconnect(signalId); 177 | } 178 | } 179 | 180 | delete window_actor._dpt_signals; 181 | 182 | intellifader.asyncCheck(); 183 | } 184 | 185 | /** 186 | * Called whenever a window is created in the shell. 187 | * 188 | */ 189 | _windowActorAdded(window_group, window_actor, force = true) { 190 | const { intellifader } = this.extension; 191 | if (window_actor && (force || typeof window_actor._dpt_tracking === 'undefined')) { 192 | window_actor._dpt_tracking = true; 193 | 194 | let ac_wId = window_actor.connect('notify::allocation', () => { 195 | intellifader.asyncCheck(); 196 | }); 197 | 198 | const v_wId = window_actor.connect('notify::visible', () => { 199 | intellifader.asyncCheck(); 200 | }); 201 | window_actor._dpt_signals = [ac_wId, v_wId]; 202 | 203 | intellifader.asyncCheck(); 204 | } 205 | } 206 | 207 | /** 208 | * SPECIAL_CASE: Only update if we're using per-app settings or is desktop icons are enabled. 209 | * 210 | */ 211 | _windowRestacked() { 212 | const { settings, intellifader } = this.extension; 213 | 214 | /* Don't allow restacks while the overview is transitioning. */ 215 | if (!main.overview.visible) { 216 | /* Detect if desktop icons are enabled. */ 217 | if (settings.gs_show_desktop()) { 218 | intellifader.asyncCheck(); 219 | } 220 | } 221 | } 222 | 223 | /** 224 | * SPECIAL_CASE: Update logic requires the workspace that we'll be switching to. 225 | * 226 | */ 227 | _workspaceSwitched(wm, from, to, direction) { 228 | const { settings, intellifader } = this.extension; 229 | 230 | /* Detect if desktop icons are enabled. */ 231 | if (!settings.gs_show_desktop()) { 232 | intellifader.syncCheck(); 233 | } 234 | } 235 | } 236 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/extension.js: -------------------------------------------------------------------------------- 1 | /** @typedef {import('./main.js').DptExtension} DptExtension */ 2 | 3 | /** @type {Promise} */ 4 | let asyncInit; 5 | 6 | function init() { 7 | asyncInit = import('./main.js') 8 | .then(({ DptExtension }) => { 9 | return DptExtension; 10 | }) 11 | .catch((error) => { 12 | logError(error); 13 | log('[Dynamic Panel Transparency] Failed to load.'); 14 | 15 | return null; 16 | }); 17 | } 18 | 19 | /** @type {DptExtension | null} */ 20 | let extension = null; 21 | 22 | function enable() { 23 | asyncInit 24 | .then((DptExtension) => { 25 | if (!DptExtension) return; 26 | 27 | extension = new DptExtension(); 28 | 29 | extension.enable(); 30 | }) 31 | .catch((error) => { 32 | logError(error); 33 | log('[Dynamic Panel Transparency] Failed to enable.'); 34 | }); 35 | } 36 | 37 | function disable() { 38 | extension?.disable(); 39 | } 40 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/intellifade.js: -------------------------------------------------------------------------------- 1 | import Meta from 'gi://Meta'; 2 | import Shell from 'gi://Shell'; 3 | import St from 'gi://St'; 4 | 5 | import * as Util from './util.js'; 6 | import { main } from './shell.js'; 7 | import { setInterval, clearInterval } from './timers.js'; 8 | 9 | /* How often the asynchronous loop should run in milliseconds... */ 10 | const ASYNC_UPDATE_FREQUENCY = 200; // ms 11 | 12 | export class Intellifader { 13 | /** 14 | * @param {import('./main.js').DptExtension} extension 15 | */ 16 | constructor(extension) { 17 | this.extension = extension; 18 | 19 | this._wm_tracker = Shell.WindowTracker.get_default(); 20 | 21 | /* Determines whether to continue the async loop checks. */ 22 | this.continueCheck = false; 23 | /* Variable for current detected maximized window... */ 24 | this.maximized_window = null; 25 | /* Run the next change regardless of the whether it is the same as the current status. */ 26 | // TODO: Find a nicer way to override optimization code. 27 | this.override_optimization = false; 28 | /* Current ID of the async loop (0 if no loop is running) */ 29 | this.timeoutId = 0; 30 | 31 | this.panel = main.panel; 32 | 33 | this._updateBounds(); 34 | } 35 | 36 | cleanup() { 37 | this._wm_tracker = null; 38 | 39 | if (this.timeoutId > 0) { 40 | clearInterval(this.timeoutId); 41 | } 42 | } 43 | 44 | forceSyncCheck() { 45 | this.override_optimization = true; 46 | this.syncCheck(); 47 | } 48 | 49 | syncCheck() { 50 | /* Prevent any asynchronous checks from occuring in the loop. */ 51 | this.continueCheck = false; 52 | /* Stop the asynchronous loop... */ 53 | if (this.timeoutId > 0) clearInterval(this.timeoutId); 54 | /* Remove the old loop ID */ 55 | this.timeoutId = 0; 56 | /* Update bounds when a check is done in sync. */ 57 | this._updateBounds(); 58 | /* Run a check. */ 59 | this._check(); 60 | } 61 | 62 | forceAsyncCheck() { 63 | this.override_optimization = true; 64 | this.asyncCheck(); 65 | } 66 | 67 | asyncCheck() { 68 | if (this.timeoutId <= 0) { 69 | this._check(); 70 | 71 | const id = (this.timeoutId = setInterval(() => { 72 | this._check(); 73 | 74 | if (this.continueCheck) { 75 | this.continueCheck = false; 76 | } else { 77 | this.timeoutId = -1; 78 | return clearInterval(id); 79 | } 80 | }, ASYNC_UPDATE_FREQUENCY)); 81 | } else { 82 | this.continueCheck = true; 83 | } 84 | } 85 | 86 | _updateBounds() { 87 | const { panel } = this; 88 | 89 | this.panel_bounds = { 90 | x: panel.get_x(), 91 | y: panel.get_y(), 92 | height: panel.get_height(), 93 | width: panel.get_width(), 94 | is_top: true, 95 | }; 96 | 97 | this.scale_factor = St.ThemeContext.get_for_stage(global.stage).scale_factor; 98 | 99 | let [, pivot_y] = main.layoutManager.panelBox.get_pivot_point(); 100 | 101 | // Adjust for bottom panel. 102 | if (pivot_y < 0) { 103 | this.panel_bounds.y = -pivot_y; 104 | this.panel_bounds.is_top = false; 105 | } 106 | } 107 | 108 | /* Main extension logic. Modified to fit Gnome Shell 3.26 design patterns. */ 109 | 110 | // TODO: Cleanup use of variable flags. 111 | _check() { 112 | if (main.overview._shown) { 113 | return; 114 | } 115 | 116 | const { theming, transitions, settings } = this.extension; 117 | 118 | let workspace = null; 119 | 120 | const manager = global.workspace_manager; 121 | 122 | if (manager) { 123 | workspace = manager.get_active_workspace(); 124 | } else { 125 | log('[Dynamic Panel Transparency] Error could not get active workspace.'); 126 | } 127 | 128 | let windows = workspace.list_windows(); 129 | windows = global.display.sort_windows_by_stacking(windows); 130 | 131 | let focused_window = global.display.get_focus_window(); 132 | 133 | this.maximized_window = null; 134 | 135 | let add_transparency = true; 136 | let force_transparency = false; 137 | 138 | /* Handle desktop icons (they're a window too) */ 139 | if (focused_window && focused_window.get_window_type() === Meta.WindowType.DESKTOP) { 140 | add_transparency = true; 141 | this.maximized_window = focused_window; 142 | } else { 143 | // TODO: Always negative? Is pivot negative? 144 | for (let i = windows.length - 1; i >= 0; i--) { 145 | let current_window = windows[i]; 146 | 147 | if ( 148 | !current_window.showing_on_its_workspace() || 149 | !current_window.is_on_primary_monitor() 150 | ) { 151 | continue; 152 | } 153 | 154 | /* Make sure the window is on the correct monitor, isn't minimized, isn't supposed to be excluded, and is actually maximized. */ 155 | if (!Util.is_valid(current_window)) { 156 | continue; 157 | } 158 | 159 | if (current_window.maximized_vertically) { 160 | /* Make sure the top-most window is selected */ 161 | if (this.maximized_window === null && !force_transparency) { 162 | this.maximized_window = current_window; 163 | } 164 | 165 | add_transparency = false; 166 | 167 | break; 168 | } 169 | 170 | let frame = current_window.get_frame_rect(); 171 | 172 | if (main.layoutManager._rightPanelBarrier) { 173 | let overlap = 174 | this.panel_bounds.x < frame.x + frame.width && 175 | this.panel_bounds.x + this.panel_bounds.width > frame.x && 176 | this.panel_bounds.y < frame.y + frame.height && 177 | this.panel_bounds.height + this.panel_bounds.y > frame.y; 178 | 179 | if (overlap) { 180 | force_transparency = true; 181 | this.maximized_window = null; 182 | 183 | break; 184 | } 185 | } 186 | 187 | if (settings.transition_when_windows_touch_panel()) { 188 | let touching_panel = false; 189 | 190 | if (this.panel_bounds.is_top) { 191 | touching_panel = 192 | frame.y >= this.panel_bounds.y + this.panel_bounds.height && 193 | frame.y <= this.panel_bounds.y + this.panel_bounds.height; 194 | } else { 195 | touching_panel = 196 | frame.y + frame.height >= this.panel_bounds.y && 197 | frame.y + frame.height <= this.panel_bounds.y; 198 | } 199 | 200 | if (!force_transparency && touching_panel) { 201 | add_transparency = false; 202 | 203 | if (this.maximized_window === null && !force_transparency) { 204 | this.maximized_window = current_window; 205 | } 206 | 207 | break; 208 | } 209 | } 210 | } 211 | } 212 | 213 | if (force_transparency) { 214 | transitions.fade_out(); 215 | force_transparency = false; 216 | /* Only change if the transparency isn't already correct or if override_optimization has been called */ 217 | } else if (transitions.get_transparency_status().is_blank()) { 218 | if (add_transparency) { 219 | transitions.minimum_fade_in(); 220 | } else { 221 | transitions.fade_in(); 222 | } 223 | } else if ( 224 | this.override_optimization || 225 | transitions.get_transparency_status().is_transparent() !== add_transparency 226 | ) { 227 | this.override_optimization = false; 228 | 229 | if (add_transparency) { 230 | transitions.fade_out(); 231 | } else { 232 | transitions.fade_in(); 233 | } 234 | } 235 | 236 | /* Reset text coloring. */ 237 | if ( 238 | settings.get_enable_text_color() && 239 | (settings.get_enable_maximized_text_color() || 240 | settings.get_enable_overview_text_color()) 241 | ) { 242 | if (!add_transparency && settings.get_enable_maximized_text_color()) { 243 | theming.remove_text_color(); 244 | theming.set_text_color('maximized'); 245 | } else { 246 | theming.remove_text_color('maximized'); 247 | theming.set_text_color(); 248 | } 249 | } 250 | } 251 | 252 | /** 253 | * Returns the current visible maximized window as understood by the events' logic. 254 | * The maximized window is not necessarily the highest window in the z-order. 255 | * 256 | * @returns {Object} The current visible maximized window. 257 | */ 258 | get_current_maximized_window() { 259 | return this.maximized_window; 260 | } 261 | } 262 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/ar/LC_MESSAGES/dynamic-panel-transparency.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ewlsh/dynamic-panel-transparency/4ed748a8f048ef4346a7934672bdc59381d1ba43/dynamic-panel-transparency@rockon999.github.io/locale/ar/LC_MESSAGES/dynamic-panel-transparency.mo -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/ar/LC_MESSAGES/dynamic-panel-transparency.po: -------------------------------------------------------------------------------- 1 | # Dynamic Panel Transparency Translation File 2 | # Copyright (c) 2017 3 | # This file is distributed under the same license as the dynamic-panel-transparency package. 4 | # 5 | # Evan Welsh , 2017. 6 | # Mosaab Alzoubi , 2016. 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: \n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2023-03-17 13:31-0700\n" 12 | "PO-Revision-Date: 2016-12-21 12:48+0300\n" 13 | "Last-Translator: Mosaab Alzoubi \n" 14 | "Language-Team: Evan Welsh \n" 15 | "Language: ar_SY\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 20 | "X-Generator: Lokalize 2.0\n" 21 | 22 | #: prefs.js:121 23 | msgid "default" 24 | msgstr "الافتراضي" 25 | 26 | #: prefs.ui:7 27 | msgid "Classy transparency for your panel." 28 | msgstr "شفافية أنيقة لشريطك." 29 | 30 | #: prefs.ui:9 31 | msgid "Website" 32 | msgstr "الموقع" 33 | 34 | #: prefs.ui:72 35 | msgid "Shell Restart Required." 36 | msgstr "إعادة تشغيل غنوم ضرورية." 37 | 38 | #. Meant to ask the user if they would like to restart right now or later in a yes/no format. 39 | #: prefs.ui:73 40 | msgid "" 41 | "A shell restart is required to view some of your changes. Do you want to " 42 | "restart now?" 43 | msgstr "يجب إعادة تشغيل غنوم لتأخذ التغييرات مجراها. هل ترغب بذلك الآن؟" 44 | 45 | #. How long the transition will take. 46 | #: prefs.ui:134 47 | msgid "Transition Speed" 48 | msgstr "سرعة التلاشي" 49 | 50 | #: prefs.ui:160 prefs.ui:183 51 | msgid "Overrides 'gtk-enable-animations'." 52 | msgstr "أبطل 'gtk-enable-animations'." 53 | 54 | #. Whether the panel transitions should happen with the overview transitions or after. 55 | #: prefs.ui:171 56 | msgid "Transition with the overview" 57 | msgstr "" 58 | 59 | #. Whether the panel should transition when a window touches it or only when a window is actually maximized. 60 | #: prefs.ui:194 61 | msgid "Transition when windows touch the panel" 62 | msgstr "" 63 | 64 | #: prefs.ui:210 65 | msgid "Transitions" 66 | msgstr "التلاشيات" 67 | 68 | #. Allows the user to set their own text color. 69 | #: prefs.ui:257 70 | msgid "Enable custom text coloring" 71 | msgstr "تفعيل اللون المخصص للنصوص" 72 | 73 | #. The main color to be used. 74 | #: prefs.ui:281 prefs.ui:294 75 | msgid "Primary Color" 76 | msgstr "اللون الأساسي" 77 | 78 | #. Another color for special functions. 79 | #: prefs.ui:307 prefs.ui:319 80 | msgid "Secondary Color" 81 | msgstr "اللون الثانوي" 82 | 83 | #: prefs.ui:334 84 | msgid "Use when a window is maximized" 85 | msgstr "الاستعمال عند تكبير النافذة" 86 | 87 | #: prefs.ui:352 88 | msgid "Use when the overview is visible" 89 | msgstr "الاستعمال في نمط الاستعراض" 90 | 91 | #: prefs.ui:409 92 | msgid "Enable text shadowing" 93 | msgstr "تفعيل ظل النص" 94 | 95 | #: prefs.ui:442 prefs.ui:496 prefs.ui:609 prefs.ui:663 96 | msgid "Shadow Color" 97 | msgstr "لون الظل" 98 | 99 | #: prefs.ui:508 prefs.ui:675 100 | msgid "Radius" 101 | msgstr "نصف قطري" 102 | 103 | #: prefs.ui:520 prefs.ui:687 104 | msgid "Horizontal Offset" 105 | msgstr "التوازن الأفقي" 106 | 107 | #: prefs.ui:532 prefs.ui:699 108 | msgid "Vertical Offset" 109 | msgstr "التوازن العمودي" 110 | 111 | #: prefs.ui:576 112 | msgid "Enable icon shadowing" 113 | msgstr "تفعيل ظل الرمز" 114 | 115 | #: prefs.ui:734 116 | msgid "Foreground" 117 | msgstr "المقدمة" 118 | 119 | #. Opacity of the panel when no window is maximized. 120 | #: prefs.ui:785 121 | msgid "Unmaximized Opacity" 122 | msgstr "إلغاء الشفافية في حالة عدم التكبير" 123 | 124 | #. Opacity of the panel when a window is maximized. 125 | #: prefs.ui:829 126 | msgid "Maximized Opacity" 127 | msgstr "إلغاء الشفافية في حالة التكبير" 128 | 129 | #. Allows the user to set their own opacity. 130 | #: prefs.ui:850 131 | msgid "Enable custom opacity" 132 | msgstr "تفعيل إلغاء شفافية مخصص" 133 | 134 | #. The panel's background color. 135 | #: prefs.ui:902 prefs.ui:915 136 | msgid "Panel Color" 137 | msgstr "لون الشريط" 138 | 139 | #. Allows the user to set their own background color for the panel. 140 | #: prefs.ui:935 141 | msgid "Enable custom panel color" 142 | msgstr "تفعيل لون خاص للشريط" 143 | 144 | #. Removes any extra styling certain themes may have. Fixes theme issues. 145 | #: prefs.ui:983 146 | msgid "Remove excess panel styling" 147 | msgstr "أزل زوائد نمط الشريط" 148 | 149 | #: prefs.ui:990 150 | msgid "(Fixes theme incompatibilities.)" 151 | msgstr "(أصلح التكاملات مع السمة.)" 152 | 153 | #: prefs.ui:1010 154 | msgid "Background" 155 | msgstr "الخلفية" 156 | 157 | #: prefs.ui:1020 158 | msgid "About" 159 | msgstr "حول" 160 | 161 | #~ msgid "Hide corners" 162 | #~ msgstr "أخف الزوايا" 163 | 164 | #~ msgid "App Tweaks" 165 | #~ msgstr "تطويعات التطبيق" 166 | 167 | #~ msgid "Add a Custom WM_CLASS" 168 | #~ msgstr "أضف WM_CLASS مخصصة" 169 | 170 | #~ msgid "Advanced..." 171 | #~ msgstr "متقدم..." 172 | 173 | #~ msgid "" 174 | #~ "A WM_CLASS is a code that identifies a window. Use this setting if the " 175 | #~ "window you want custom settings for is not part of an application. You " 176 | #~ "can find a window's WM_CLASS with the command 'xprop WM_CLASS'. Enter the " 177 | #~ "second result from 'xprop WM_CLASS' below without quotation marks." 178 | #~ msgstr "" 179 | #~ "إن WM_CLASS هو شيفرة تعرّف النافذة. استعمل هذه الوحدات إذا أردت تنفيذ " 180 | #~ "إعدادات مخصصة ليست جزءًا من التطبيق. بإمكانك العثور عليها من خلال تنفيذ " 181 | #~ "الأمر xprop WM_CLASS وأدخل هنا النتيجة الثانية للأمر بدون علامات التنصيص." 182 | 183 | #~ msgid "WM_CLASS cannot be blank." 184 | #~ msgstr "لا يمكن أن يكون WM_CLASS فارغًا." 185 | 186 | #~ msgid "Enable background app tweaks" 187 | #~ msgstr "فعّل تطويعات الخلفية" 188 | 189 | #~ msgid "Theme Source" 190 | #~ msgstr "مصدر السمة" 191 | 192 | #~ msgid "Always trigger the panel." 193 | #~ msgstr "دومًا علّم الشريط." 194 | 195 | #~ msgid "Force animation" 196 | #~ msgstr "إجبار التحريك" 197 | 198 | #~ msgid "Transition Style" 199 | #~ msgstr "نمط التلاشي" 200 | 201 | #~ msgid "Linear (default)" 202 | #~ msgstr "خطي (الافتراضي)" 203 | 204 | #~ msgid "Sine" 205 | #~ msgstr "جيبي" 206 | 207 | #~ msgid "Quadratic" 208 | #~ msgstr "تربيعي" 209 | 210 | #~ msgid "Cubic" 211 | #~ msgstr "تكعيبي" 212 | 213 | #~ msgid "Quartic" 214 | #~ msgstr "رباعي" 215 | 216 | #~ msgid "Quintic" 217 | #~ msgstr "خماسي" 218 | 219 | #~ msgid "Exponential" 220 | #~ msgstr "أسي" 221 | 222 | #~ msgid "Circle" 223 | #~ msgstr "دائري" 224 | 225 | #~ msgid "Elastic" 226 | #~ msgstr "متمدد" 227 | 228 | #~ msgid "Bounce" 229 | #~ msgstr "ارتدادي" 230 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/de/LC_MESSAGES/dynamic-panel-transparency.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ewlsh/dynamic-panel-transparency/4ed748a8f048ef4346a7934672bdc59381d1ba43/dynamic-panel-transparency@rockon999.github.io/locale/de/LC_MESSAGES/dynamic-panel-transparency.mo -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/de/LC_MESSAGES/dynamic-panel-transparency.po: -------------------------------------------------------------------------------- 1 | # Dynamic Panel Transparency Translation File 2 | # Copyright (c) 2017 3 | # This file is distributed under the same license as the dynamic-panel-transparency package. 4 | # 5 | # Evan Welsh , 2017. 6 | # Jonatan Hatakeyama Zeidler , 2016. 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Dynamic Panel Transparany GNOME Shell Extension\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2023-03-17 13:31-0700\n" 12 | "PO-Revision-Date: 2016-09-19 20:09+0200\n" 13 | "Last-Translator: Jonatan Hatakeyama Zeidler \n" 14 | "Language-Team: Evan Welsh \n" 15 | "Language: de\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "X-Generator: Poedit 1.8.7.1\n" 20 | "X-Poedit-SourceCharset: UTF-8\n" 21 | 22 | #: prefs.js:121 23 | msgid "default" 24 | msgstr "Vorgabe" 25 | 26 | #: prefs.ui:7 27 | msgid "Classy transparency for your panel." 28 | msgstr "Elegante Transparenz für die obere Leiste." 29 | 30 | #: prefs.ui:9 31 | msgid "Website" 32 | msgstr "Webseite" 33 | 34 | #: prefs.ui:72 35 | msgid "Shell Restart Required." 36 | msgstr "Neustart der GNOME Shell erforderlich." 37 | 38 | #. Meant to ask the user if they would like to restart right now or later in a yes/no format. 39 | #: prefs.ui:73 40 | msgid "" 41 | "A shell restart is required to view some of your changes. Do you want to " 42 | "restart now?" 43 | msgstr "" 44 | "Ein Neustart der GNOME Shell ist erforderlich, um einige der Änderungen " 45 | "anzuwenden. Die GNOME Shell jetzt neustarten?" 46 | 47 | #. How long the transition will take. 48 | #: prefs.ui:134 49 | msgid "Transition Speed" 50 | msgstr "Übergangszeit" 51 | 52 | #: prefs.ui:160 prefs.ui:183 53 | msgid "Overrides 'gtk-enable-animations'." 54 | msgstr "Überschreibt 'gtk-enable-animations'." 55 | 56 | #. Whether the panel transitions should happen with the overview transitions or after. 57 | #: prefs.ui:171 58 | msgid "Transition with the overview" 59 | msgstr "" 60 | 61 | #. Whether the panel should transition when a window touches it or only when a window is actually maximized. 62 | #: prefs.ui:194 63 | msgid "Transition when windows touch the panel" 64 | msgstr "" 65 | 66 | #: prefs.ui:210 67 | msgid "Transitions" 68 | msgstr "Übergang" 69 | 70 | #. Allows the user to set their own text color. 71 | #: prefs.ui:257 72 | msgid "Enable custom text coloring" 73 | msgstr "Angepasste Textfarbe aktivieren" 74 | 75 | #. The main color to be used. 76 | #: prefs.ui:281 prefs.ui:294 77 | msgid "Primary Color" 78 | msgstr "Hauptfarbe" 79 | 80 | #. Another color for special functions. 81 | #: prefs.ui:307 prefs.ui:319 82 | msgid "Secondary Color" 83 | msgstr "Zweitfarbe" 84 | 85 | #: prefs.ui:334 86 | msgid "Use when a window is maximized" 87 | msgstr "Nutzen, wenn ein Fenster maximiert ist" 88 | 89 | #: prefs.ui:352 90 | msgid "Use when the overview is visible" 91 | msgstr "Nutzen, wenn ein Fenster sichtbar ist" 92 | 93 | #: prefs.ui:409 94 | msgid "Enable text shadowing" 95 | msgstr "Textschatten aktivieren" 96 | 97 | #: prefs.ui:442 prefs.ui:496 prefs.ui:609 prefs.ui:663 98 | msgid "Shadow Color" 99 | msgstr "Schattenfarbe" 100 | 101 | #: prefs.ui:508 prefs.ui:675 102 | msgid "Radius" 103 | msgstr "Radius" 104 | 105 | #: prefs.ui:520 prefs.ui:687 106 | msgid "Horizontal Offset" 107 | msgstr "Horizontaler Versatz" 108 | 109 | #: prefs.ui:532 prefs.ui:699 110 | msgid "Vertical Offset" 111 | msgstr "Vertikaler Versatz" 112 | 113 | #: prefs.ui:576 114 | msgid "Enable icon shadowing" 115 | msgstr "Symbolschatten aktivieren" 116 | 117 | #: prefs.ui:734 118 | msgid "Foreground" 119 | msgstr "Vordergrund" 120 | 121 | #. Opacity of the panel when no window is maximized. 122 | #: prefs.ui:785 123 | msgid "Unmaximized Opacity" 124 | msgstr "Deckkraft nicht maximiert" 125 | 126 | #. Opacity of the panel when a window is maximized. 127 | #: prefs.ui:829 128 | msgid "Maximized Opacity" 129 | msgstr "Deckkraft maximiert" 130 | 131 | #. Allows the user to set their own opacity. 132 | #: prefs.ui:850 133 | msgid "Enable custom opacity" 134 | msgstr "Angepasste Deckkraft aktivieren" 135 | 136 | #. The panel's background color. 137 | #: prefs.ui:902 prefs.ui:915 138 | msgid "Panel Color" 139 | msgstr "Hintergrundfarbe" 140 | 141 | #. Allows the user to set their own background color for the panel. 142 | #: prefs.ui:935 143 | msgid "Enable custom panel color" 144 | msgstr "Angepasste Hintergrundfarbe aktivieren" 145 | 146 | #. Removes any extra styling certain themes may have. Fixes theme issues. 147 | #: prefs.ui:983 148 | msgid "Remove excess panel styling" 149 | msgstr "Entfernt übertriebene Gestaltung der oberen Leiste" 150 | 151 | #: prefs.ui:990 152 | msgid "(Fixes theme incompatibilities.)" 153 | msgstr "(Behebt Themeninkompatibilitäten.)" 154 | 155 | #: prefs.ui:1010 156 | msgid "Background" 157 | msgstr "Hintergrund" 158 | 159 | #: prefs.ui:1020 160 | msgid "About" 161 | msgstr "Info" 162 | 163 | #~ msgid "Hide corners" 164 | #~ msgstr "Ecken deaktivieren" 165 | 166 | #~ msgid "App Tweaks" 167 | #~ msgstr "Anwendungsoptimierung" 168 | 169 | #~ msgid "Add a Custom WM_CLASS" 170 | #~ msgstr "Angepasste WM_CLASS hinzufügen\t" 171 | 172 | #~ msgid "Advanced..." 173 | #~ msgstr "Fortgeschritten …" 174 | 175 | #~ msgid "" 176 | #~ "A WM_CLASS is a code that identifies a window. Use this setting if the " 177 | #~ "window you want custom settings for is not part of an application. You " 178 | #~ "can find a window's WM_CLASS with the command 'xprop WM_CLASS'. Enter the " 179 | #~ "second result from 'xprop WM_CLASS' below without quotation marks." 180 | #~ msgstr "" 181 | #~ "Eine WM_CLASS ist ein Code zur Identifizierung von Fenstern. Diese " 182 | #~ "Einstellung ist nützlich, wenn das Fenster nicht Teil einer gelisteten " 183 | #~ "Anwendung ist. Die WM_CLASS eines Fensters kann mit dem Befehl 'xprop " 184 | #~ "WM_CLASS' herausgefunden werden. Bitte den zweiten Treffer des Befehls " 185 | #~ "hier eintragen (Ohne Anführungsstriche)." 186 | 187 | #~ msgid "WM_CLASS cannot be blank." 188 | #~ msgstr "WM_CLASS darf nicht leer sein." 189 | 190 | #~ msgid "Enable background app tweaks" 191 | #~ msgstr "Anwendungsoptimierung aktivieren" 192 | 193 | #~ msgid "Theme Source" 194 | #~ msgstr "Themenquelle" 195 | 196 | #~ msgid "Always trigger the panel." 197 | #~ msgstr "Obere Leiste immer anpassen" 198 | 199 | #~ msgid "Force animation" 200 | #~ msgstr "Animation erzwingen" 201 | 202 | #~ msgid "Transition Style" 203 | #~ msgstr "Übergangsstil" 204 | 205 | #~ msgid "Linear (default)" 206 | #~ msgstr "Linear (Vorgabe)" 207 | 208 | #~ msgid "Sine" 209 | #~ msgstr "Sinus\t" 210 | 211 | #~ msgid "Quadratic" 212 | #~ msgstr "Quadratisch" 213 | 214 | #~ msgid "Cubic" 215 | #~ msgstr "Kubisch" 216 | 217 | #~ msgid "Quartic" 218 | #~ msgstr "Biquadratisch" 219 | 220 | #~ msgid "Quintic" 221 | #~ msgstr "Polynom fünften Grades" 222 | 223 | #~ msgid "Exponential" 224 | #~ msgstr "Exponentiell" 225 | 226 | #~ msgid "Circle" 227 | #~ msgstr "Kreisförmig" 228 | 229 | #~ msgid "Elastic" 230 | #~ msgstr "Elastisch" 231 | 232 | #~ msgid "Bounce" 233 | #~ msgstr "Prellend" 234 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/es/LC_MESSAGES/dynamic-panel-transparency.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ewlsh/dynamic-panel-transparency/4ed748a8f048ef4346a7934672bdc59381d1ba43/dynamic-panel-transparency@rockon999.github.io/locale/es/LC_MESSAGES/dynamic-panel-transparency.mo -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/es/LC_MESSAGES/dynamic-panel-transparency.po: -------------------------------------------------------------------------------- 1 | # Dynamic Panel Transparency Translation File 2 | # Copyright (c) 2017 3 | # This file is distributed under the same license as the dynamic-panel-transparency package. 4 | # 5 | # Evan Welsh , 2017. 6 | # Alonso Lara , 2017. 7 | # Óscar Fernández , 2020. 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: \n" 11 | "Report-Msgid-Bugs-To: \n" 12 | "POT-Creation-Date: 2023-03-17 13:31-0700\n" 13 | "PO-Revision-Date: 2021-04-27 12:48+0200\n" 14 | "Last-Translator: Óscar Fernández \n" 15 | "Language-Team: Evan Welsh \n" 16 | "Language: es\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "X-Generator: Poedit 2.4.2\n" 21 | 22 | #: prefs.js:121 23 | msgid "default" 24 | msgstr "por defecto" 25 | 26 | #: prefs.ui:7 27 | msgid "Classy transparency for your panel." 28 | msgstr "Transparencia con clase para tu panel." 29 | 30 | #: prefs.ui:9 31 | msgid "Website" 32 | msgstr "Sitio Web" 33 | 34 | #: prefs.ui:72 35 | msgid "Shell Restart Required." 36 | msgstr "Se requiere reiniciar la línea de comandos." 37 | 38 | #. Meant to ask the user if they would like to restart right now or later in a yes/no format. 39 | #: prefs.ui:73 40 | msgid "" 41 | "A shell restart is required to view some of your changes. Do you want to " 42 | "restart now?" 43 | msgstr "" 44 | "Se requiere reiniciar la línea de comandos para ver algunos de sus cambios. " 45 | "¿Desea reiniciar ahora?" 46 | 47 | #. How long the transition will take. 48 | #: prefs.ui:134 49 | msgid "Transition Speed" 50 | msgstr "Velocidad de transición" 51 | 52 | #: prefs.ui:160 prefs.ui:183 53 | msgid "Overrides 'gtk-enable-animations'." 54 | msgstr "Sobreescribe 'gtk-enable-animations'." 55 | 56 | #. Whether the panel transitions should happen with the overview transitions or after. 57 | #: prefs.ui:171 58 | msgid "Transition with the overview" 59 | msgstr "Transición con la vista general" 60 | 61 | #. Whether the panel should transition when a window touches it or only when a window is actually maximized. 62 | #: prefs.ui:194 63 | msgid "Transition when windows touch the panel" 64 | msgstr "Transición cuando las ventanas tocan el panel" 65 | 66 | #: prefs.ui:210 67 | msgid "Transitions" 68 | msgstr "Transiciones" 69 | 70 | #. Allows the user to set their own text color. 71 | #: prefs.ui:257 72 | msgid "Enable custom text coloring" 73 | msgstr "Acticar color de texto personalizado" 74 | 75 | #. The main color to be used. 76 | #: prefs.ui:281 prefs.ui:294 77 | msgid "Primary Color" 78 | msgstr "Color primario" 79 | 80 | #. Another color for special functions. 81 | #: prefs.ui:307 prefs.ui:319 82 | msgid "Secondary Color" 83 | msgstr "Color secundario" 84 | 85 | #: prefs.ui:334 86 | msgid "Use when a window is maximized" 87 | msgstr "Usar cuando una ventana está maximizada" 88 | 89 | #: prefs.ui:352 90 | msgid "Use when the overview is visible" 91 | msgstr "Usar cuando la vista general está visible" 92 | 93 | #: prefs.ui:409 94 | msgid "Enable text shadowing" 95 | msgstr "Activar sombras de texto" 96 | 97 | #: prefs.ui:442 prefs.ui:496 prefs.ui:609 prefs.ui:663 98 | msgid "Shadow Color" 99 | msgstr "Color de la sombra" 100 | 101 | #: prefs.ui:508 prefs.ui:675 102 | msgid "Radius" 103 | msgstr "Radio" 104 | 105 | #: prefs.ui:520 prefs.ui:687 106 | msgid "Horizontal Offset" 107 | msgstr "Desplazamiento horizontal" 108 | 109 | #: prefs.ui:532 prefs.ui:699 110 | msgid "Vertical Offset" 111 | msgstr "Desplazamiento vertical" 112 | 113 | #: prefs.ui:576 114 | msgid "Enable icon shadowing" 115 | msgstr "Activar sombras de iconos" 116 | 117 | #: prefs.ui:734 118 | msgid "Foreground" 119 | msgstr "Primer plano" 120 | 121 | #. Opacity of the panel when no window is maximized. 122 | #: prefs.ui:785 123 | msgid "Unmaximized Opacity" 124 | msgstr "Opacidad sin maximizado" 125 | 126 | #. Opacity of the panel when a window is maximized. 127 | #: prefs.ui:829 128 | msgid "Maximized Opacity" 129 | msgstr "Opacidad con maximizado" 130 | 131 | #. Allows the user to set their own opacity. 132 | #: prefs.ui:850 133 | msgid "Enable custom opacity" 134 | msgstr "Activar opacidad personalizada" 135 | 136 | #. The panel's background color. 137 | #: prefs.ui:902 prefs.ui:915 138 | msgid "Panel Color" 139 | msgstr "Color del panel" 140 | 141 | #. Allows the user to set their own background color for the panel. 142 | #: prefs.ui:935 143 | msgid "Enable custom panel color" 144 | msgstr "Activar color del panel personalizado" 145 | 146 | #. Removes any extra styling certain themes may have. Fixes theme issues. 147 | #: prefs.ui:983 148 | msgid "Remove excess panel styling" 149 | msgstr "Eliminar estilo sobrante del panel" 150 | 151 | #: prefs.ui:990 152 | msgid "(Fixes theme incompatibilities.)" 153 | msgstr "(Corrigue incompatibilidades del tema.)" 154 | 155 | #: prefs.ui:1010 156 | msgid "Background" 157 | msgstr "Fondo" 158 | 159 | #: prefs.ui:1020 160 | msgid "About" 161 | msgstr "Acerca de" 162 | 163 | #~ msgid "Hide corners" 164 | #~ msgstr "Ocultar esquinas" 165 | 166 | #~ msgid "" 167 | #~ "A WM_CLASS is a code that identifies a window. Use this setting if the " 168 | #~ "window you want custom settings for is not part of an application. You " 169 | #~ "can find a window's WM_CLASS with the command 'xprop WM_CLASS'. Enter the " 170 | #~ "second result from 'xprop WM_CLASS' below without quotation marks." 171 | #~ msgstr "" 172 | #~ "Un WM_CLASS es un código que identifica una ventana. Use este ajuste si " 173 | #~ "la ventana que desea personalizar no es parte de una aplicación. Puede " 174 | #~ "localizar el WM_CLASS de una ventana mediante el comando 'xprop " 175 | #~ "WM_CLASS'. Introduzca el segundo resultado de 'xprop WM_CLASS' sin " 176 | #~ "comillas." 177 | 178 | #~ msgid "WM_CLASS cannot be blank." 179 | #~ msgstr "WM_CLASS no puede estar en blanco." 180 | 181 | #~ msgid "Enable background app tweaks" 182 | #~ msgstr "Activar ajustes de la aplicación de fondo" 183 | 184 | #~ msgid "Theme Source" 185 | #~ msgstr "Fuente del tema" 186 | 187 | #~ msgid "Always trigger the panel." 188 | #~ msgstr "Desplegar siempre el panel." 189 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/fr/LC_MESSAGES/dynamic-panel-transparency.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ewlsh/dynamic-panel-transparency/4ed748a8f048ef4346a7934672bdc59381d1ba43/dynamic-panel-transparency@rockon999.github.io/locale/fr/LC_MESSAGES/dynamic-panel-transparency.mo -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/fr/LC_MESSAGES/dynamic-panel-transparency.po: -------------------------------------------------------------------------------- 1 | # Dynamic Panel Transparency Translation File 2 | # Copyright (c) 2017 3 | # This file is distributed under the same license as the dynamic-panel-transparency package. 4 | # 5 | # Evan Welsh , 2017. 6 | # narzb <>, 2016. 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: \n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2023-03-17 13:31-0700\n" 12 | "PO-Revision-Date: 2016-10-27 23:39+0200\n" 13 | "Last-Translator: narzb <>\n" 14 | "Language-Team: Evan Welsh \n" 15 | "Language: fr_FR\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "X-Generator: Poedit 1.8.9\n" 20 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 21 | 22 | #: prefs.js:121 23 | msgid "default" 24 | msgstr "défaut" 25 | 26 | #: prefs.ui:7 27 | msgid "Classy transparency for your panel." 28 | msgstr "Transparence élégante pour votre Barre supérieure." 29 | 30 | #: prefs.ui:9 31 | msgid "Website" 32 | msgstr "Site web" 33 | 34 | #: prefs.ui:72 35 | msgid "Shell Restart Required." 36 | msgstr "Redémarrage du shell requis." 37 | 38 | #. Meant to ask the user if they would like to restart right now or later in a yes/no format. 39 | #: prefs.ui:73 40 | msgid "" 41 | "A shell restart is required to view some of your changes. Do you want to " 42 | "restart now?" 43 | msgstr "" 44 | "Un redémarrage est nécessaire pour visualiser certains de vos changements. " 45 | "Voulez-vous redémarrer maintenant ?" 46 | 47 | #. How long the transition will take. 48 | #: prefs.ui:134 49 | msgid "Transition Speed" 50 | msgstr "Vitesse de transition" 51 | 52 | #: prefs.ui:160 prefs.ui:183 53 | msgid "Overrides 'gtk-enable-animations'." 54 | msgstr "Outrepasser 'gtk-enable-animations'." 55 | 56 | #. Whether the panel transitions should happen with the overview transitions or after. 57 | #: prefs.ui:171 58 | msgid "Transition with the overview" 59 | msgstr "" 60 | 61 | #. Whether the panel should transition when a window touches it or only when a window is actually maximized. 62 | #: prefs.ui:194 63 | msgid "Transition when windows touch the panel" 64 | msgstr "" 65 | 66 | #: prefs.ui:210 67 | msgid "Transitions" 68 | msgstr "Vitesse de transition" 69 | 70 | #. Allows the user to set their own text color. 71 | #: prefs.ui:257 72 | msgid "Enable custom text coloring" 73 | msgstr "Activer personnalisation couleur du texte" 74 | 75 | #. The main color to be used. 76 | #: prefs.ui:281 prefs.ui:294 77 | msgid "Primary Color" 78 | msgstr "Couleur Principale" 79 | 80 | #. Another color for special functions. 81 | #: prefs.ui:307 prefs.ui:319 82 | msgid "Secondary Color" 83 | msgstr "Couleur secondaire" 84 | 85 | #: prefs.ui:334 86 | msgid "Use when a window is maximized" 87 | msgstr "Utiliser quand la fenêtre est maximisée" 88 | 89 | #: prefs.ui:352 90 | msgid "Use when the overview is visible" 91 | msgstr "Utiliser dans la Vue d'ensemble" 92 | 93 | #: prefs.ui:409 94 | msgid "Enable text shadowing" 95 | msgstr "Activer l'ombre du texte" 96 | 97 | #: prefs.ui:442 prefs.ui:496 prefs.ui:609 prefs.ui:663 98 | msgid "Shadow Color" 99 | msgstr "Couleur de l'ombre" 100 | 101 | #: prefs.ui:508 prefs.ui:675 102 | msgid "Radius" 103 | msgstr "Rayon" 104 | 105 | #: prefs.ui:520 prefs.ui:687 106 | msgid "Horizontal Offset" 107 | msgstr "Décalage horizontal" 108 | 109 | #: prefs.ui:532 prefs.ui:699 110 | msgid "Vertical Offset" 111 | msgstr "Décalage vertical" 112 | 113 | #: prefs.ui:576 114 | msgid "Enable icon shadowing" 115 | msgstr "Activer l'ombre de l'icône" 116 | 117 | #: prefs.ui:734 118 | msgid "Foreground" 119 | msgstr "Premier plan" 120 | 121 | #. Opacity of the panel when no window is maximized. 122 | #: prefs.ui:785 123 | msgid "Unmaximized Opacity" 124 | msgstr "Opacité fenêtre non maximisée" 125 | 126 | #. Opacity of the panel when a window is maximized. 127 | #: prefs.ui:829 128 | msgid "Maximized Opacity" 129 | msgstr "Opacité fenêtre maximisée" 130 | 131 | #. Allows the user to set their own opacity. 132 | #: prefs.ui:850 133 | msgid "Enable custom opacity" 134 | msgstr "Activer la personnalisation de l'opacité" 135 | 136 | #. The panel's background color. 137 | #: prefs.ui:902 prefs.ui:915 138 | msgid "Panel Color" 139 | msgstr "Couleur Barre supérieure" 140 | 141 | #. Allows the user to set their own background color for the panel. 142 | #: prefs.ui:935 143 | msgid "Enable custom panel color" 144 | msgstr "Activer personnalisation couleur Barre supérieure" 145 | 146 | #. Removes any extra styling certain themes may have. Fixes theme issues. 147 | #: prefs.ui:983 148 | msgid "Remove excess panel styling" 149 | msgstr "" 150 | 151 | #: prefs.ui:990 152 | msgid "(Fixes theme incompatibilities.)" 153 | msgstr "(Réparer les incompatibilités de thèmes.)" 154 | 155 | #: prefs.ui:1010 156 | msgid "Background" 157 | msgstr "Arrière-plan" 158 | 159 | #: prefs.ui:1020 160 | msgid "About" 161 | msgstr "À propos" 162 | 163 | #~ msgid "Hide corners" 164 | #~ msgstr "Cacher les coins arrondis" 165 | 166 | #~ msgid "App Tweaks" 167 | #~ msgstr "Réglages applications" 168 | 169 | #~ msgid "Add a Custom WM_CLASS" 170 | #~ msgstr "Ajouter un WM_CLASS personnalisé" 171 | 172 | #~ msgid "Advanced..." 173 | #~ msgstr "Fonctionnalités avancées" 174 | 175 | #~ msgid "" 176 | #~ "A WM_CLASS is a code that identifies a window. Use this setting if the " 177 | #~ "window you want custom settings for is not part of an application. You " 178 | #~ "can find a window's WM_CLASS with the command 'xprop WM_CLASS'. Enter the " 179 | #~ "second result from 'xprop WM_CLASS' below without quotation marks." 180 | #~ msgstr "" 181 | #~ "WM_CLASS est un code qui identifie une fenêtre. Utilisez ce paramètre si " 182 | #~ "la fenêtre que vous voulez personnaliser ne fait pas partie d'une " 183 | #~ "application. Vous pouvez trouver le WM_CLASS d'une fenêtre avec la " 184 | #~ "commande «xprop WM_CLASS». Entrez le deuxième résultat de «xprop " 185 | #~ "WM_CLASS» ci-dessous sans guillemets." 186 | 187 | #~ msgid "WM_CLASS cannot be blank." 188 | #~ msgstr "WM_CLASS ne peut pas être vide." 189 | 190 | #~ msgid "Enable background app tweaks" 191 | #~ msgstr "Activer les réglages d'applications en arrière plan" 192 | 193 | #~ msgid "Theme Source" 194 | #~ msgstr "Source du Thème" 195 | 196 | #~ msgid "Always trigger the panel." 197 | #~ msgstr "Toujours déclencher la coloration de la Barre supérieure" 198 | 199 | #~ msgid "Force animation" 200 | #~ msgstr "Forcer l'animation" 201 | 202 | #~ msgid "Transition Style" 203 | #~ msgstr "Style de transition" 204 | 205 | #~ msgid "Linear (default)" 206 | #~ msgstr "Linéaire (défaut)" 207 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/pt_BR/LC_MESSAGES/dynamic-panel-transparency.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ewlsh/dynamic-panel-transparency/4ed748a8f048ef4346a7934672bdc59381d1ba43/dynamic-panel-transparency@rockon999.github.io/locale/pt_BR/LC_MESSAGES/dynamic-panel-transparency.mo -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/pt_BR/LC_MESSAGES/dynamic-panel-transparency.po: -------------------------------------------------------------------------------- 1 | # Dynamic Panel Transparency Translation File 2 | # Copyright (c) 2017 3 | # This file is distributed under the same license as the dynamic-panel-transparency package. 4 | # 5 | # Evan Welsh , 2017. 6 | # Fábio Nogueira , 2016. 7 | # 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: \n" 11 | "Report-Msgid-Bugs-To: \n" 12 | "POT-Creation-Date: 2023-03-17 13:31-0700\n" 13 | "PO-Revision-Date: 2016-09-29 15:09-0300\n" 14 | "Last-Translator: Fábio Nogueira \n" 15 | "Language-Team: Evan Welsh \n" 16 | "Language: pt_BR\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "X-Generator: Poedit 1.8.9\n" 21 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 22 | 23 | #: prefs.js:121 24 | msgid "default" 25 | msgstr "padrão" 26 | 27 | #: prefs.ui:7 28 | msgid "Classy transparency for your panel." 29 | msgstr "Transparência elegante para o seu painel." 30 | 31 | #: prefs.ui:9 32 | msgid "Website" 33 | msgstr "Site" 34 | 35 | #: prefs.ui:72 36 | msgid "Shell Restart Required." 37 | msgstr "É necessário reiniciar o shell." 38 | 39 | #. Meant to ask the user if they would like to restart right now or later in a yes/no format. 40 | #: prefs.ui:73 41 | msgid "" 42 | "A shell restart is required to view some of your changes. Do you want to " 43 | "restart now?" 44 | msgstr "" 45 | "É necessário reiniciar o shell para visualizar algumas de suas alterações. " 46 | "Gostaria de reiniciar agora?" 47 | 48 | #. How long the transition will take. 49 | #: prefs.ui:134 50 | msgid "Transition Speed" 51 | msgstr "Velocidade de transição" 52 | 53 | #: prefs.ui:160 prefs.ui:183 54 | msgid "Overrides 'gtk-enable-animations'." 55 | msgstr "Substitui o 'gtk-enable-animations'." 56 | 57 | #. Whether the panel transitions should happen with the overview transitions or after. 58 | #: prefs.ui:171 59 | msgid "Transition with the overview" 60 | msgstr "" 61 | 62 | #. Whether the panel should transition when a window touches it or only when a window is actually maximized. 63 | #: prefs.ui:194 64 | msgid "Transition when windows touch the panel" 65 | msgstr "" 66 | 67 | #: prefs.ui:210 68 | msgid "Transitions" 69 | msgstr "Transição" 70 | 71 | #. Allows the user to set their own text color. 72 | #: prefs.ui:257 73 | msgid "Enable custom text coloring" 74 | msgstr "Ativar coloração customizada do texto" 75 | 76 | #. The main color to be used. 77 | #: prefs.ui:281 prefs.ui:294 78 | msgid "Primary Color" 79 | msgstr "Cor primária" 80 | 81 | #. Another color for special functions. 82 | #: prefs.ui:307 prefs.ui:319 83 | msgid "Secondary Color" 84 | msgstr "Cor secundária" 85 | 86 | #: prefs.ui:334 87 | msgid "Use when a window is maximized" 88 | msgstr "Utilizar quando um janela for maximizada" 89 | 90 | #: prefs.ui:352 91 | msgid "Use when the overview is visible" 92 | msgstr "Utilizar quando a visão geral estiver visível" 93 | 94 | #: prefs.ui:409 95 | msgid "Enable text shadowing" 96 | msgstr "Habilitar sombras ao texto" 97 | 98 | #: prefs.ui:442 prefs.ui:496 prefs.ui:609 prefs.ui:663 99 | msgid "Shadow Color" 100 | msgstr "Cor da sombra" 101 | 102 | #: prefs.ui:508 prefs.ui:675 103 | msgid "Radius" 104 | msgstr "Raio" 105 | 106 | #: prefs.ui:520 prefs.ui:687 107 | msgid "Horizontal Offset" 108 | msgstr "Deslocamento horizontal" 109 | 110 | #: prefs.ui:532 prefs.ui:699 111 | msgid "Vertical Offset" 112 | msgstr "Deslocamento vertical" 113 | 114 | #: prefs.ui:576 115 | msgid "Enable icon shadowing" 116 | msgstr "Habilitar sombreamento do ícone" 117 | 118 | #: prefs.ui:734 119 | msgid "Foreground" 120 | msgstr "Primeiro plano" 121 | 122 | #. Opacity of the panel when no window is maximized. 123 | #: prefs.ui:785 124 | msgid "Unmaximized Opacity" 125 | msgstr "Opacidade desmaximizada" 126 | 127 | #. Opacity of the panel when a window is maximized. 128 | #: prefs.ui:829 129 | msgid "Maximized Opacity" 130 | msgstr "Opacidade máxima" 131 | 132 | #. Allows the user to set their own opacity. 133 | #: prefs.ui:850 134 | msgid "Enable custom opacity" 135 | msgstr "Habilitar opacidade customizada" 136 | 137 | #. The panel's background color. 138 | #: prefs.ui:902 prefs.ui:915 139 | msgid "Panel Color" 140 | msgstr "Esquema de cores" 141 | 142 | #. Allows the user to set their own background color for the panel. 143 | #: prefs.ui:935 144 | msgid "Enable custom panel color" 145 | msgstr "Habilitar painel customizado de cores" 146 | 147 | #. Removes any extra styling certain themes may have. Fixes theme issues. 148 | #: prefs.ui:983 149 | msgid "Remove excess panel styling" 150 | msgstr "Retirar o excesso de estilo do painel" 151 | 152 | #: prefs.ui:990 153 | msgid "(Fixes theme incompatibilities.)" 154 | msgstr "(Consertar temas incompatíveis.)" 155 | 156 | #: prefs.ui:1010 157 | msgid "Background" 158 | msgstr "Segundo plano" 159 | 160 | #: prefs.ui:1020 161 | msgid "About" 162 | msgstr "Sobre" 163 | 164 | #~ msgid "Hide corners" 165 | #~ msgstr "Ocultar os cantos" 166 | 167 | #~ msgid "App Tweaks" 168 | #~ msgstr "Aplicativo de ajustes" 169 | 170 | #~ msgid "Add a Custom WM_CLASS" 171 | #~ msgstr "Adicionar uma WM_CLASS customizada" 172 | 173 | #~ msgid "Advanced..." 174 | #~ msgstr "Avançado..." 175 | 176 | #~ msgid "" 177 | #~ "A WM_CLASS is a code that identifies a window. Use this setting if the " 178 | #~ "window you want custom settings for is not part of an application. You " 179 | #~ "can find a window's WM_CLASS with the command 'xprop WM_CLASS'. Enter the " 180 | #~ "second result from 'xprop WM_CLASS' below without quotation marks." 181 | #~ msgstr "" 182 | #~ "Uma WM_CLASS é um código que identiifica uma janela. Utilize esta " 183 | #~ "configuração se a janela que deseja configurar de forma personalizada não " 184 | #~ "for parte de uma aplicação. Você pode encontrar uma WM_CLASS da janela " 185 | #~ "com o comando 'xprop WM_CLASS'. Digite o segundo resultado de 'xprop " 186 | #~ "WM_CLASS' abaixo sem as aspas." 187 | 188 | #~ msgid "WM_CLASS cannot be blank." 189 | #~ msgstr "WM_CLASS não pode ser em branco." 190 | 191 | #~ msgid "Enable background app tweaks" 192 | #~ msgstr "Habilitar o aplicativo de ajustes em segundo plano" 193 | 194 | #~ msgid "Theme Source" 195 | #~ msgstr "Origem do tema" 196 | 197 | #~ msgid "Always trigger the panel." 198 | #~ msgstr "Sempre acionar o painel." 199 | 200 | #~ msgid "Force animation" 201 | #~ msgstr "Forçar animação" 202 | 203 | #~ msgid "Transition Style" 204 | #~ msgstr "Estilo de transição" 205 | 206 | #~ msgid "Linear (default)" 207 | #~ msgstr "Linear (padrão)" 208 | 209 | #~ msgid "Sine" 210 | #~ msgstr "Seno" 211 | 212 | #~ msgid "Quadratic" 213 | #~ msgstr "Ao quadrado" 214 | 215 | #~ msgid "Cubic" 216 | #~ msgstr "Ao cubo" 217 | 218 | #~ msgid "Quartic" 219 | #~ msgstr "Quarta potência" 220 | 221 | #~ msgid "Quintic" 222 | #~ msgstr "Quinta potência" 223 | 224 | #~ msgid "Exponential" 225 | #~ msgstr "Exponencial" 226 | 227 | #~ msgid "Circle" 228 | #~ msgstr "Círculo" 229 | 230 | #~ msgid "Elastic" 231 | #~ msgstr "Elástico" 232 | 233 | #~ msgid "Bounce" 234 | #~ msgstr "Pulo" 235 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/ru/LC_MESSAGES/dynamic-panel-transparency.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ewlsh/dynamic-panel-transparency/4ed748a8f048ef4346a7934672bdc59381d1ba43/dynamic-panel-transparency@rockon999.github.io/locale/ru/LC_MESSAGES/dynamic-panel-transparency.mo -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/ru/LC_MESSAGES/dynamic-panel-transparency.po: -------------------------------------------------------------------------------- 1 | # Dynamic Panel Transparency Translation File 2 | # Copyright (c) 2017 3 | # This file is distributed under the same license as the dynamic-panel-transparency package. 4 | # 5 | # Evan Welsh , 2017. 6 | # Alexey Varfolomeev , 2016. 7 | # vantu5z , 2020. 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: GNOME Shell Extension Dynamic Panel Transparency\n" 11 | "Report-Msgid-Bugs-To: \n" 12 | "POT-Creation-Date: 2023-03-17 13:31-0700\n" 13 | "PO-Revision-Date: 2020-01-12 16:06+0300\n" 14 | "Last-Translator: vantu5z \n" 15 | "Language-Team: Evan Welsh \n" 16 | "Language: ru\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "X-Generator: Poedit 1.8.7\n" 21 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " 22 | "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" 23 | 24 | #: prefs.js:121 25 | msgid "default" 26 | msgstr "по-умолчанию" 27 | 28 | #: prefs.ui:7 29 | msgid "Classy transparency for your panel." 30 | msgstr "Настройка прозрачности панели." 31 | 32 | #: prefs.ui:9 33 | msgid "Website" 34 | msgstr "Веб-сайт" 35 | 36 | #: prefs.ui:72 37 | msgid "Shell Restart Required." 38 | msgstr "Необходим перезапуск Shell" 39 | 40 | #. Meant to ask the user if they would like to restart right now or later in a yes/no format. 41 | #: prefs.ui:73 42 | msgid "" 43 | "A shell restart is required to view some of your changes. Do you want to " 44 | "restart now?" 45 | msgstr "" 46 | "Необходимо перезапустить Shell для применения изменений. Хотите " 47 | "перезапустить сейчас?" 48 | 49 | #. How long the transition will take. 50 | #: prefs.ui:134 51 | msgid "Transition Speed" 52 | msgstr "Скорость перехода" 53 | 54 | #: prefs.ui:160 prefs.ui:183 55 | msgid "Overrides 'gtk-enable-animations'." 56 | msgstr "Переопределение 'gtk-enable-animations'." 57 | 58 | #. Whether the panel transitions should happen with the overview transitions or after. 59 | #: prefs.ui:171 60 | msgid "Transition with the overview" 61 | msgstr "Переход в режиме Обзор" 62 | 63 | #. Whether the panel should transition when a window touches it or only when a window is actually maximized. 64 | #: prefs.ui:194 65 | msgid "Transition when windows touch the panel" 66 | msgstr "Переход при косании панели окном" 67 | 68 | #: prefs.ui:210 69 | msgid "Transitions" 70 | msgstr "Скорость перехода" 71 | 72 | #. Allows the user to set their own text color. 73 | #: prefs.ui:257 74 | msgid "Enable custom text coloring" 75 | msgstr "Настроить цвет текста" 76 | 77 | #. The main color to be used. 78 | #: prefs.ui:281 prefs.ui:294 79 | msgid "Primary Color" 80 | msgstr "Основной цвет" 81 | 82 | #. Another color for special functions. 83 | #: prefs.ui:307 prefs.ui:319 84 | msgid "Secondary Color" 85 | msgstr "Дополнительный цвет" 86 | 87 | #: prefs.ui:334 88 | msgid "Use when a window is maximized" 89 | msgstr "Использовать при развёрнутом окне" 90 | 91 | #: prefs.ui:352 92 | msgid "Use when the overview is visible" 93 | msgstr "Использовать в режиме Обзор" 94 | 95 | #: prefs.ui:409 96 | msgid "Enable text shadowing" 97 | msgstr "Добавить тень для текста" 98 | 99 | #: prefs.ui:442 prefs.ui:496 prefs.ui:609 prefs.ui:663 100 | msgid "Shadow Color" 101 | msgstr "Цвет тени" 102 | 103 | #: prefs.ui:508 prefs.ui:675 104 | msgid "Radius" 105 | msgstr "Радиус" 106 | 107 | #: prefs.ui:520 prefs.ui:687 108 | msgid "Horizontal Offset" 109 | msgstr "По горизонтали" 110 | 111 | #: prefs.ui:532 prefs.ui:699 112 | msgid "Vertical Offset" 113 | msgstr "По вертикали" 114 | 115 | #: prefs.ui:576 116 | msgid "Enable icon shadowing" 117 | msgstr "Добавить тень для значков" 118 | 119 | #: prefs.ui:734 120 | msgid "Foreground" 121 | msgstr "Текст и тени" 122 | 123 | #. Opacity of the panel when no window is maximized. 124 | #: prefs.ui:785 125 | msgid "Unmaximized Opacity" 126 | msgstr "Минимальная прозрачность" 127 | 128 | #. Opacity of the panel when a window is maximized. 129 | #: prefs.ui:829 130 | msgid "Maximized Opacity" 131 | msgstr "Максимальная прозрачность" 132 | 133 | #. Allows the user to set their own opacity. 134 | #: prefs.ui:850 135 | msgid "Enable custom opacity" 136 | msgstr "Настроить прозрачность" 137 | 138 | #. The panel's background color. 139 | #: prefs.ui:902 prefs.ui:915 140 | msgid "Panel Color" 141 | msgstr "Цвет панели" 142 | 143 | #. Allows the user to set their own background color for the panel. 144 | #: prefs.ui:935 145 | msgid "Enable custom panel color" 146 | msgstr "Настроить цвет панели" 147 | 148 | #. Removes any extra styling certain themes may have. Fixes theme issues. 149 | #: prefs.ui:983 150 | msgid "Remove excess panel styling" 151 | msgstr "Удалить лишние стили" 152 | 153 | #: prefs.ui:990 154 | msgid "(Fixes theme incompatibilities.)" 155 | msgstr "(Исправляет несовместимость с темой)" 156 | 157 | #: prefs.ui:1010 158 | msgid "Background" 159 | msgstr "Фон" 160 | 161 | #: prefs.ui:1020 162 | msgid "About" 163 | msgstr "О приложении" 164 | 165 | #~ msgid "Hide corners" 166 | #~ msgstr "Скрыть углы" 167 | 168 | #~ msgid "App Tweaks" 169 | #~ msgstr "Расширенные настройки" 170 | 171 | #~ msgid "Add a Custom WM_CLASS" 172 | #~ msgstr "Добавить пользовательский WM_CLASS" 173 | 174 | #~ msgid "Advanced..." 175 | #~ msgstr "Дополнительно..." 176 | 177 | #~ msgid "" 178 | #~ "A WM_CLASS is a code that identifies a window. Use this setting if the " 179 | #~ "window you want custom settings for is not part of an application. You " 180 | #~ "can find a window's WM_CLASS with the command 'xprop WM_CLASS'. Enter the " 181 | #~ "second result from 'xprop WM_CLASS' below without quotation marks." 182 | #~ msgstr "" 183 | #~ "WM_CLASS - это код, который определяет окно. Используйте этот параметр, " 184 | #~ "если окно, которое необходимо настроить не является частью приложения. " 185 | #~ "Получить WM_CLASS для окна можно с помощью команды 'xprop WM_CLASS'. " 186 | #~ "Введите второй результат вывода 'xprop WM_CLASS' ниже без кавычек." 187 | 188 | #~ msgid "WM_CLASS cannot be blank." 189 | #~ msgstr "WM_CLASS не может быть пустым" 190 | 191 | #~ msgid "Theme Source" 192 | #~ msgstr "Исходная тема" 193 | 194 | #~ msgid "Force animation" 195 | #~ msgstr "Принудительная анимация" 196 | 197 | #~ msgid "Transition Style" 198 | #~ msgstr "Скорость перехода" 199 | 200 | #~ msgid "Linear (default)" 201 | #~ msgstr "по-умолчанию" 202 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/sr/LC_MESSAGES/dynamic-panel-transparency.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ewlsh/dynamic-panel-transparency/4ed748a8f048ef4346a7934672bdc59381d1ba43/dynamic-panel-transparency@rockon999.github.io/locale/sr/LC_MESSAGES/dynamic-panel-transparency.mo -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/sr/LC_MESSAGES/dynamic-panel-transparency.po: -------------------------------------------------------------------------------- 1 | # Dynamic Panel Transparency Translation File 2 | # Copyright (c) 2017 3 | # This file is distributed under the same license as the dynamic-panel-transparency package. 4 | # 5 | # Evan Welsh , 2017. 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: \n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2023-03-17 13:31-0700\n" 11 | "PO-Revision-Date: 2017-11-18 20:00+0100\n" 12 | "Last-Translator: Слободан Терзић \n" 13 | "Language-Team: Evan Welsh \n" 14 | "Language: sr\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 2.0.4\n" 19 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " 20 | "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" 21 | 22 | #: prefs.js:121 23 | msgid "default" 24 | msgstr "поразумевана" 25 | 26 | #: prefs.ui:7 27 | msgid "Classy transparency for your panel." 28 | msgstr "Елегантна транспарентност вашег панела." 29 | 30 | #: prefs.ui:9 31 | msgid "Website" 32 | msgstr "Домаћа страница" 33 | 34 | #: prefs.ui:72 35 | msgid "Shell Restart Required." 36 | msgstr "Неопходно је поновно покретање шкољке" 37 | 38 | #. Meant to ask the user if they would like to restart right now or later in a yes/no format. 39 | #: prefs.ui:73 40 | msgid "" 41 | "A shell restart is required to view some of your changes. Do you want to " 42 | "restart now?" 43 | msgstr "Неопходно је поново покренути шкољку. Желите ли да то учиним одмах?" 44 | 45 | #. How long the transition will take. 46 | #: prefs.ui:134 47 | msgid "Transition Speed" 48 | msgstr "Брзина прелаза" 49 | 50 | #: prefs.ui:160 prefs.ui:183 51 | msgid "Overrides 'gtk-enable-animations'." 52 | msgstr "Премошћује „gtk-enable-animations“." 53 | 54 | #. Whether the panel transitions should happen with the overview transitions or after. 55 | #: prefs.ui:171 56 | msgid "Transition with the overview" 57 | msgstr "Прелаз при прегледу" 58 | 59 | #. Whether the panel should transition when a window touches it or only when a window is actually maximized. 60 | #: prefs.ui:194 61 | msgid "Transition when windows touch the panel" 62 | msgstr "Прелаз када прозор дотакне панел" 63 | 64 | #: prefs.ui:210 65 | msgid "Transitions" 66 | msgstr "Прелази" 67 | 68 | #. Allows the user to set their own text color. 69 | #: prefs.ui:257 70 | msgid "Enable custom text coloring" 71 | msgstr "Прилагођено бојење текста" 72 | 73 | #. The main color to be used. 74 | #: prefs.ui:281 prefs.ui:294 75 | msgid "Primary Color" 76 | msgstr "Примарна боја" 77 | 78 | #. Another color for special functions. 79 | #: prefs.ui:307 prefs.ui:319 80 | msgid "Secondary Color" 81 | msgstr "Секундарна боја" 82 | 83 | #: prefs.ui:334 84 | msgid "Use when a window is maximized" 85 | msgstr "Када је прозор максимизован" 86 | 87 | #: prefs.ui:352 88 | msgid "Use when the overview is visible" 89 | msgstr "Када је видљив преглед" 90 | 91 | #: prefs.ui:409 92 | msgid "Enable text shadowing" 93 | msgstr "Сенчење текста" 94 | 95 | #: prefs.ui:442 prefs.ui:496 prefs.ui:609 prefs.ui:663 96 | msgid "Shadow Color" 97 | msgstr "Боја сенке" 98 | 99 | #: prefs.ui:508 prefs.ui:675 100 | msgid "Radius" 101 | msgstr "Радијус" 102 | 103 | #: prefs.ui:520 prefs.ui:687 104 | msgid "Horizontal Offset" 105 | msgstr "Хоризонтално одступање" 106 | 107 | #: prefs.ui:532 prefs.ui:699 108 | msgid "Vertical Offset" 109 | msgstr "Вертикално одступање" 110 | 111 | #: prefs.ui:576 112 | msgid "Enable icon shadowing" 113 | msgstr "Сенчење иконе" 114 | 115 | #: prefs.ui:734 116 | msgid "Foreground" 117 | msgstr "Први план" 118 | 119 | #. Opacity of the panel when no window is maximized. 120 | #: prefs.ui:785 121 | msgid "Unmaximized Opacity" 122 | msgstr "Непрозирност немаксимизованог" 123 | 124 | #. Opacity of the panel when a window is maximized. 125 | #: prefs.ui:829 126 | msgid "Maximized Opacity" 127 | msgstr "Непрозирност максимизованог" 128 | 129 | #. Allows the user to set their own opacity. 130 | #: prefs.ui:850 131 | msgid "Enable custom opacity" 132 | msgstr "Прилагођена непрозирност" 133 | 134 | #. The panel's background color. 135 | #: prefs.ui:902 prefs.ui:915 136 | msgid "Panel Color" 137 | msgstr "Боја панела" 138 | 139 | #. Allows the user to set their own background color for the panel. 140 | #: prefs.ui:935 141 | msgid "Enable custom panel color" 142 | msgstr "Прилагођена боја панела" 143 | 144 | #. Removes any extra styling certain themes may have. Fixes theme issues. 145 | #: prefs.ui:983 146 | msgid "Remove excess panel styling" 147 | msgstr "Уклони прекомерно стилизовање панела" 148 | 149 | #: prefs.ui:990 150 | msgid "(Fixes theme incompatibilities.)" 151 | msgstr "(поправља несагласности у теми)" 152 | 153 | #: prefs.ui:1010 154 | msgid "Background" 155 | msgstr "Позадина" 156 | 157 | #: prefs.ui:1020 158 | msgid "About" 159 | msgstr "О проширењу" 160 | 161 | #~ msgid "Hide corners" 162 | #~ msgstr "Скривени ћошкови" 163 | 164 | #~ msgid "App Tweaks" 165 | #~ msgstr "Штеловање апликација" 166 | 167 | #~ msgid "Add a Custom WM_CLASS" 168 | #~ msgstr "Додај прилагођену WM_CLASS" 169 | 170 | #~ msgid "Advanced..." 171 | #~ msgstr "Напредно..." 172 | 173 | #~ msgid "" 174 | #~ "A WM_CLASS is a code that identifies a window. Use this setting if the " 175 | #~ "window you want custom settings for is not part of an application. You " 176 | #~ "can find a window's WM_CLASS with the command 'xprop WM_CLASS'. Enter the " 177 | #~ "second result from 'xprop WM_CLASS' below without quotation marks." 178 | #~ msgstr "" 179 | #~ "WM_CLASS је код који идентификује прозор. Користите ово подешавање " 180 | #~ "уколико прозор чију поставку желите није део апликације. WM_CLASS прозора " 181 | #~ "можете добити командом „xprop WM_CLASS“. Унесите други резултат добијен " 182 | #~ "том наредбом, без наводника." 183 | 184 | #~ msgid "WM_CLASS cannot be blank." 185 | #~ msgstr "WM_CLASS не може бити празна." 186 | 187 | #~ msgid "Enable background app tweaks" 188 | #~ msgstr "Укључи штеловање позадинске апликације" 189 | 190 | #~ msgid "Theme Source" 191 | #~ msgstr "Основа теме" 192 | 193 | #~ msgid "Always trigger the panel." 194 | #~ msgstr "Увек окини панел." 195 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/sr@latin/LC_MESSAGES/dynamic-panel-transparency.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ewlsh/dynamic-panel-transparency/4ed748a8f048ef4346a7934672bdc59381d1ba43/dynamic-panel-transparency@rockon999.github.io/locale/sr@latin/LC_MESSAGES/dynamic-panel-transparency.mo -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/sr@latin/LC_MESSAGES/dynamic-panel-transparency.po: -------------------------------------------------------------------------------- 1 | # Dynamic Panel Transparency Translation File 2 | # Copyright (c) 2017 3 | # This file is distributed under the same license as the dynamic-panel-transparency package. 4 | # 5 | # Evan Welsh , 2017. 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: \n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2023-03-17 13:31-0700\n" 11 | "PO-Revision-Date: 2017-11-18 20:01+0100\n" 12 | "Last-Translator: Слободан Терзић \n" 13 | "Language-Team: Evan Welsh \n" 14 | "Language: sr\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 2.0.4\n" 19 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " 20 | "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" 21 | 22 | #: prefs.js:121 23 | msgid "default" 24 | msgstr "porazumevana" 25 | 26 | #: prefs.ui:7 27 | msgid "Classy transparency for your panel." 28 | msgstr "Elegantna transparentnost vašeg panela." 29 | 30 | #: prefs.ui:9 31 | msgid "Website" 32 | msgstr "Domaća stranica" 33 | 34 | #: prefs.ui:72 35 | msgid "Shell Restart Required." 36 | msgstr "Neophodno je ponovno pokretanje školjke" 37 | 38 | #. Meant to ask the user if they would like to restart right now or later in a yes/no format. 39 | #: prefs.ui:73 40 | msgid "" 41 | "A shell restart is required to view some of your changes. Do you want to " 42 | "restart now?" 43 | msgstr "Neophodno je ponovo pokrenuti školjku. Želite li da to učinim odmah?" 44 | 45 | #. How long the transition will take. 46 | #: prefs.ui:134 47 | msgid "Transition Speed" 48 | msgstr "Brzina prelaza" 49 | 50 | #: prefs.ui:160 prefs.ui:183 51 | msgid "Overrides 'gtk-enable-animations'." 52 | msgstr "Premošćuje „gtk-enable-animations“." 53 | 54 | #. Whether the panel transitions should happen with the overview transitions or after. 55 | #: prefs.ui:171 56 | msgid "Transition with the overview" 57 | msgstr "Prelaz pri pregledu" 58 | 59 | #. Whether the panel should transition when a window touches it or only when a window is actually maximized. 60 | #: prefs.ui:194 61 | msgid "Transition when windows touch the panel" 62 | msgstr "Prelaz kada prozor dotakne panel" 63 | 64 | #: prefs.ui:210 65 | msgid "Transitions" 66 | msgstr "Prelazi" 67 | 68 | #. Allows the user to set their own text color. 69 | #: prefs.ui:257 70 | msgid "Enable custom text coloring" 71 | msgstr "Prilagođeno bojenje teksta" 72 | 73 | #. The main color to be used. 74 | #: prefs.ui:281 prefs.ui:294 75 | msgid "Primary Color" 76 | msgstr "Primarna boja" 77 | 78 | #. Another color for special functions. 79 | #: prefs.ui:307 prefs.ui:319 80 | msgid "Secondary Color" 81 | msgstr "Sekundarna boja" 82 | 83 | #: prefs.ui:334 84 | msgid "Use when a window is maximized" 85 | msgstr "Kada je prozor maksimizovan" 86 | 87 | #: prefs.ui:352 88 | msgid "Use when the overview is visible" 89 | msgstr "Kada je vidljiv pregled" 90 | 91 | #: prefs.ui:409 92 | msgid "Enable text shadowing" 93 | msgstr "Senčenje teksta" 94 | 95 | #: prefs.ui:442 prefs.ui:496 prefs.ui:609 prefs.ui:663 96 | msgid "Shadow Color" 97 | msgstr "Boja senke" 98 | 99 | #: prefs.ui:508 prefs.ui:675 100 | msgid "Radius" 101 | msgstr "Radijus" 102 | 103 | #: prefs.ui:520 prefs.ui:687 104 | msgid "Horizontal Offset" 105 | msgstr "Horizontalno odstupanje" 106 | 107 | #: prefs.ui:532 prefs.ui:699 108 | msgid "Vertical Offset" 109 | msgstr "Vertikalno odstupanje" 110 | 111 | #: prefs.ui:576 112 | msgid "Enable icon shadowing" 113 | msgstr "Senčenje ikone" 114 | 115 | #: prefs.ui:734 116 | msgid "Foreground" 117 | msgstr "Prvi plan" 118 | 119 | #. Opacity of the panel when no window is maximized. 120 | #: prefs.ui:785 121 | msgid "Unmaximized Opacity" 122 | msgstr "Neprozirnost nemaksimizovanog" 123 | 124 | #. Opacity of the panel when a window is maximized. 125 | #: prefs.ui:829 126 | msgid "Maximized Opacity" 127 | msgstr "Neprozirnost maksimizovanog" 128 | 129 | #. Allows the user to set their own opacity. 130 | #: prefs.ui:850 131 | msgid "Enable custom opacity" 132 | msgstr "Prilagođena neprozirnost" 133 | 134 | #. The panel's background color. 135 | #: prefs.ui:902 prefs.ui:915 136 | msgid "Panel Color" 137 | msgstr "Boja panela" 138 | 139 | #. Allows the user to set their own background color for the panel. 140 | #: prefs.ui:935 141 | msgid "Enable custom panel color" 142 | msgstr "Prilagođena boja panela" 143 | 144 | #. Removes any extra styling certain themes may have. Fixes theme issues. 145 | #: prefs.ui:983 146 | msgid "Remove excess panel styling" 147 | msgstr "Ukloni prekomerno stilizovanje panela" 148 | 149 | #: prefs.ui:990 150 | msgid "(Fixes theme incompatibilities.)" 151 | msgstr "(popravlja nesaglasnosti u temi)" 152 | 153 | #: prefs.ui:1010 154 | msgid "Background" 155 | msgstr "Pozadina" 156 | 157 | #: prefs.ui:1020 158 | msgid "About" 159 | msgstr "O proširenju" 160 | 161 | #~ msgid "Hide corners" 162 | #~ msgstr "Skriveni ćoškovi" 163 | 164 | #~ msgid "App Tweaks" 165 | #~ msgstr "Štelovanje aplikacija" 166 | 167 | #~ msgid "Add a Custom WM_CLASS" 168 | #~ msgstr "Dodaj prilagođenu WM_CLASS" 169 | 170 | #~ msgid "Advanced..." 171 | #~ msgstr "Napredno..." 172 | 173 | #~ msgid "" 174 | #~ "A WM_CLASS is a code that identifies a window. Use this setting if the " 175 | #~ "window you want custom settings for is not part of an application. You " 176 | #~ "can find a window's WM_CLASS with the command 'xprop WM_CLASS'. Enter the " 177 | #~ "second result from 'xprop WM_CLASS' below without quotation marks." 178 | #~ msgstr "" 179 | #~ "WM_CLASS je kod koji identifikuje prozor. Koristite ovo podešavanje " 180 | #~ "ukoliko prozor čiju postavku želite nije deo aplikacije. WM_CLASS prozora " 181 | #~ "možete dobiti komandom „xprop WM_CLASS“. Unesite drugi rezultat dobijen " 182 | #~ "tom naredbom, bez navodnika." 183 | 184 | #~ msgid "WM_CLASS cannot be blank." 185 | #~ msgstr "WM_CLASS ne može biti prazna." 186 | 187 | #~ msgid "Enable background app tweaks" 188 | #~ msgstr "Uključi štelovanje pozadinske aplikacije" 189 | 190 | #~ msgid "Theme Source" 191 | #~ msgstr "Osnova teme" 192 | 193 | #~ msgid "Always trigger the panel." 194 | #~ msgstr "Uvek okini panel." 195 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/zh_CN/LC_MESSAGES/dynamic-panel-transparency.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ewlsh/dynamic-panel-transparency/4ed748a8f048ef4346a7934672bdc59381d1ba43/dynamic-panel-transparency@rockon999.github.io/locale/zh_CN/LC_MESSAGES/dynamic-panel-transparency.mo -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/locale/zh_CN/LC_MESSAGES/dynamic-panel-transparency.po: -------------------------------------------------------------------------------- 1 | # Dynamic Panel Transparency Translation File 2 | # Copyright (c) 2017 3 | # This file is distributed under the same license as the dynamic-panel-transparency package. 4 | # 5 | # Evan Welsh , 2017. 6 | # Dingzhong Chen , 2016. 7 | # 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: \n" 11 | "Report-Msgid-Bugs-To: \n" 12 | "POT-Creation-Date: 2023-03-17 13:31-0700\n" 13 | "PO-Revision-Date: 2016-10-01 15:53+0800\n" 14 | "Last-Translator: Dingzhong Chen \n" 15 | "Language-Team: Chinese (China) \n" 16 | "Language: zh_CN\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "X-Generator: Gtranslator 2.91.7\n" 21 | "Plural-Forms: nplurals=1; plural=0;\n" 22 | 23 | #: prefs.js:121 24 | msgid "default" 25 | msgstr "默认" 26 | 27 | #: prefs.ui:7 28 | msgid "Classy transparency for your panel." 29 | msgstr "给你的面板加上优雅的透明感。" 30 | 31 | #: prefs.ui:9 32 | msgid "Website" 33 | msgstr "网站" 34 | 35 | #: prefs.ui:72 36 | msgid "Shell Restart Required." 37 | msgstr "需要重启 Shell。" 38 | 39 | #. Meant to ask the user if they would like to restart right now or later in a yes/no format. 40 | #: prefs.ui:73 41 | msgid "" 42 | "A shell restart is required to view some of your changes. Do you want to " 43 | "restart now?" 44 | msgstr "为了观看你的一些更改的效果需要重启 shell。想现在就重启吗?" 45 | 46 | #. How long the transition will take. 47 | #: prefs.ui:134 48 | msgid "Transition Speed" 49 | msgstr "切换速度" 50 | 51 | #: prefs.ui:160 prefs.ui:183 52 | msgid "Overrides 'gtk-enable-animations'." 53 | msgstr "改写 'gtk-enable-animations'。" 54 | 55 | #. Whether the panel transitions should happen with the overview transitions or after. 56 | #: prefs.ui:171 57 | msgid "Transition with the overview" 58 | msgstr "" 59 | 60 | #. Whether the panel should transition when a window touches it or only when a window is actually maximized. 61 | #: prefs.ui:194 62 | msgid "Transition when windows touch the panel" 63 | msgstr "" 64 | 65 | #: prefs.ui:210 66 | msgid "Transitions" 67 | msgstr "切换" 68 | 69 | #. Allows the user to set their own text color. 70 | #: prefs.ui:257 71 | msgid "Enable custom text coloring" 72 | msgstr "启用自定义文字颜色" 73 | 74 | #. The main color to be used. 75 | #: prefs.ui:281 prefs.ui:294 76 | msgid "Primary Color" 77 | msgstr "主色" 78 | 79 | #. Another color for special functions. 80 | #: prefs.ui:307 prefs.ui:319 81 | msgid "Secondary Color" 82 | msgstr "副色" 83 | 84 | #: prefs.ui:334 85 | msgid "Use when a window is maximized" 86 | msgstr "窗口最大化时使用" 87 | 88 | #: prefs.ui:352 89 | msgid "Use when the overview is visible" 90 | msgstr "概览视图时使用" 91 | 92 | #: prefs.ui:409 93 | msgid "Enable text shadowing" 94 | msgstr "启用文字阴影" 95 | 96 | #: prefs.ui:442 prefs.ui:496 prefs.ui:609 prefs.ui:663 97 | msgid "Shadow Color" 98 | msgstr "阴影颜色" 99 | 100 | #: prefs.ui:508 prefs.ui:675 101 | msgid "Radius" 102 | msgstr "半径" 103 | 104 | #: prefs.ui:520 prefs.ui:687 105 | msgid "Horizontal Offset" 106 | msgstr "水平偏移" 107 | 108 | #: prefs.ui:532 prefs.ui:699 109 | msgid "Vertical Offset" 110 | msgstr "垂直偏移" 111 | 112 | #: prefs.ui:576 113 | msgid "Enable icon shadowing" 114 | msgstr "启用图标阴影" 115 | 116 | #: prefs.ui:734 117 | msgid "Foreground" 118 | msgstr "前景" 119 | 120 | #. Opacity of the panel when no window is maximized. 121 | #: prefs.ui:785 122 | msgid "Unmaximized Opacity" 123 | msgstr "非最大化的不透明度" 124 | 125 | #. Opacity of the panel when a window is maximized. 126 | #: prefs.ui:829 127 | msgid "Maximized Opacity" 128 | msgstr "最大化的不透明度" 129 | 130 | #. Allows the user to set their own opacity. 131 | #: prefs.ui:850 132 | msgid "Enable custom opacity" 133 | msgstr "启用自定义不透明度" 134 | 135 | #. The panel's background color. 136 | #: prefs.ui:902 prefs.ui:915 137 | msgid "Panel Color" 138 | msgstr "面板颜色" 139 | 140 | #. Allows the user to set their own background color for the panel. 141 | #: prefs.ui:935 142 | msgid "Enable custom panel color" 143 | msgstr "启用自定义面板颜色" 144 | 145 | #. Removes any extra styling certain themes may have. Fixes theme issues. 146 | #: prefs.ui:983 147 | msgid "Remove excess panel styling" 148 | msgstr "移除过度的面板修饰风格" 149 | 150 | #: prefs.ui:990 151 | msgid "(Fixes theme incompatibilities.)" 152 | msgstr "(修复主题的不兼容性。)" 153 | 154 | #: prefs.ui:1010 155 | msgid "Background" 156 | msgstr "背景" 157 | 158 | #: prefs.ui:1020 159 | msgid "About" 160 | msgstr "关于" 161 | 162 | #~ msgid "Hide corners" 163 | #~ msgstr "隐藏圆角" 164 | 165 | #~ msgid "App Tweaks" 166 | #~ msgstr "应用优化" 167 | 168 | #~ msgid "Add a Custom WM_CLASS" 169 | #~ msgstr "添加自定义 WM_CLASS" 170 | 171 | #~ msgid "Advanced..." 172 | #~ msgstr "高级…" 173 | 174 | #~ msgid "" 175 | #~ "A WM_CLASS is a code that identifies a window. Use this setting if the " 176 | #~ "window you want custom settings for is not part of an application. You " 177 | #~ "can find a window's WM_CLASS with the command 'xprop WM_CLASS'. Enter the " 178 | #~ "second result from 'xprop WM_CLASS' below without quotation marks." 179 | #~ msgstr "" 180 | #~ "WM_CLASS 是用于标识窗口的代码。使用此项设置,如果您想自定义设置的窗口不是" 181 | #~ "应用程序的一部分。您可以用命令 'xprop WM_CLASS' 来查找窗口的 WM_CLASS。输" 182 | #~ "入 'xprop WM_CLASS' 下面的第二个结果,不带引号。" 183 | 184 | #~ msgid "WM_CLASS cannot be blank." 185 | #~ msgstr "WM_CLASS 无法为空。" 186 | 187 | #~ msgid "Enable background app tweaks" 188 | #~ msgstr "启用后台应用优化" 189 | 190 | #~ msgid "Theme Source" 191 | #~ msgstr "主题来源" 192 | 193 | #~ msgid "Always trigger the panel." 194 | #~ msgstr "总是触发面板。" 195 | 196 | #~ msgid "Force animation" 197 | #~ msgstr "强制动画" 198 | 199 | #~ msgid "Transition Style" 200 | #~ msgstr "切换风格" 201 | 202 | #~ msgid "Linear (default)" 203 | #~ msgstr "线性(默认)" 204 | 205 | #~ msgid "Sine" 206 | #~ msgstr "正弦" 207 | 208 | #~ msgid "Quadratic" 209 | #~ msgstr "平方" 210 | 211 | #~ msgid "Cubic" 212 | #~ msgstr "立方" 213 | 214 | #~ msgid "Quartic" 215 | #~ msgstr "四阶" 216 | 217 | #~ msgid "Quintic" 218 | #~ msgstr "五阶" 219 | 220 | #~ msgid "Exponential" 221 | #~ msgstr "指数" 222 | 223 | #~ msgid "Circle" 224 | #~ msgstr "循环" 225 | 226 | #~ msgid "Elastic" 227 | #~ msgstr "弹性" 228 | 229 | #~ msgid "Bounce" 230 | #~ msgstr "跳动" 231 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/main.js: -------------------------------------------------------------------------------- 1 | /* exported init, enable, disable */ 2 | 3 | import St from 'gi://St'; 4 | 5 | import * as Util from './util.js'; 6 | 7 | import { Events } from './events.js'; 8 | import { Intellifader } from './intellifade.js'; 9 | import { Settings } from './settings.js'; 10 | import { Theming } from './theming.js'; 11 | import { Transitions } from './transitions.js'; 12 | 13 | import { main } from './shell.js'; 14 | import { setTimeout } from './timers.js'; 15 | 16 | const SETTINGS_DELAY = 3000; 17 | 18 | export class DptExtension { 19 | constructor() { 20 | this.settings = new Settings(); 21 | 22 | this.transitions = new Transitions(this); 23 | this.theming = new Theming(this); 24 | this.intellifader = new Intellifader(this); 25 | this.events = new Events(this); 26 | } 27 | 28 | enable() { 29 | /* Initialize settings */ 30 | this.initializeSettings(); 31 | 32 | this.theming.setup(); 33 | 34 | /* Modify the panel. */ 35 | this.modifyPanel(); 36 | 37 | /* Start the event loop. */ 38 | this.events.bind(); 39 | 40 | /* Simulate window changes. */ 41 | this.intellifader.forceSyncCheck(); 42 | } 43 | 44 | disable() { 45 | const { settings, events, theming, transitions, intellifader } = this; 46 | /* Do this first in case any of the upcoming methods fail. */ 47 | this.unmodify_panel(); 48 | 49 | try { 50 | /* Disconnect & Null Signals */ 51 | events.cleanup(); 52 | 53 | /* Cleanup settings */ 54 | settings.unbind(); 55 | settings.cleanup(); 56 | 57 | /* Cleanup Transitions */ 58 | transitions.cleanup(); 59 | 60 | /* Cleanup theming */ 61 | theming.cleanup(); 62 | 63 | /* Cleanup Intellifade */ 64 | intellifader.cleanup(); 65 | } catch (error) { 66 | log('[DPT] Encountered an error cleaning up extension: ' + error); 67 | } 68 | } 69 | 70 | modifyPanel() { 71 | const { theming, settings } = this; 72 | 73 | /* Get Rid of the Panel's CSS Background */ 74 | theming.initialize_background_styles(); 75 | 76 | let text_shadow = theming.register_text_shadow( 77 | settings.get_text_shadow_color(), 78 | settings.get_text_shadow_position() 79 | ); 80 | let icon_shadow = theming.register_icon_shadow( 81 | settings.get_icon_shadow_color(), 82 | settings.get_icon_shadow_position() 83 | ); 84 | 85 | /* Add Text Shadowing */ 86 | if (settings.add_text_shadow()) { 87 | if (text_shadow !== null) { 88 | theming.add_text_shadow(); 89 | } else { 90 | log('[Dynamic Panel Transparency] Failed to enabled text shadowing.'); 91 | } 92 | } 93 | 94 | /* Add Icon Shadowing */ 95 | if (settings.add_icon_shadow()) { 96 | if (icon_shadow !== null) { 97 | theming.add_icon_shadow(); 98 | } else { 99 | log('[Dynamic Panel Transparency] Failed to enabled icon shadowing.'); 100 | } 101 | } 102 | 103 | /* Register text color styling. */ 104 | let [text] = theming.register_text_color(settings.get_text_color()); 105 | theming.register_text_color(settings.get_maximized_text_color(), 'maximized'); 106 | if (settings.get_enable_text_color()) { 107 | if (text !== null) { 108 | theming.set_text_color(); 109 | } else { 110 | log('[Dynamic Panel Transparency] Failed to enabled text coloring.'); 111 | } 112 | } 113 | } 114 | 115 | unmodify_panel() { 116 | const { theming } = this; 117 | 118 | /* Remove Our Styling */ 119 | theming.reapply_panel_styling(); 120 | theming.reapply_panel_background_image(); 121 | 122 | theming.remove_panel_transparency(); 123 | 124 | /* Remove shadowing */ 125 | if (theming.has_text_shadow()) { 126 | theming.remove_text_shadow(); 127 | } 128 | 129 | if (theming.has_icon_shadow()) { 130 | theming.remove_icon_shadow(); 131 | } 132 | 133 | /* Remove text coloring */ 134 | theming.remove_text_color(); 135 | 136 | /* Remove maximized text coloring */ 137 | theming.remove_text_color('maximized'); 138 | } 139 | 140 | // TODO: Merge handler code or hide it behind the backend. 141 | initializeSettings() { 142 | const { settings, theming, intellifader } = this; 143 | 144 | /* Register settings... */ 145 | settings.on('transition-speed', () => { 146 | main.panel.remove_style_class_name('dpt-panel-transition-duration'); 147 | 148 | let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); 149 | 150 | for (let i = theming.stylesheets.length - 1; i >= 0; i--) { 151 | let stylesheet = theming.stylesheets[i]; 152 | if ( 153 | stylesheet.indexOf('transitions') !== -1 && 154 | stylesheet.endsWith('panel-transition-duration.dpt.css') 155 | ) { 156 | theme.unload_stylesheet(Util.get_file(stylesheet)); 157 | Util.remove_file(stylesheet); 158 | theming.stylesheets.splice(i, 1); 159 | } 160 | } 161 | 162 | const id = (this.panel_transition_update_id = setTimeout(() => { 163 | if (id !== this.panel_transition_update_id) { 164 | return; 165 | } 166 | 167 | /* Get Rid of the Panel's CSS */ 168 | theming.update_transition_css(); 169 | 170 | intellifader.forceSyncCheck(); 171 | 172 | return; 173 | }, SETTINGS_DELAY)); 174 | }); 175 | settings.on('unmaximized-opacity', () => { 176 | const super_id = (this.opacity_update_id = setTimeout(() => { 177 | if (super_id !== this.opacity_update_id) { 178 | return; 179 | } 180 | 181 | let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); 182 | 183 | for (let i = theming.stylesheets.length - 1; i >= 0; i--) { 184 | let stylesheet = theming.stylesheets[i]; 185 | if ( 186 | stylesheet.indexOf('background') !== -1 && 187 | stylesheet.indexOf('panel-') !== -1 188 | ) { 189 | theme.unload_stylesheet(Util.get_file(stylesheet)); 190 | Util.remove_file(stylesheet); 191 | theming.stylesheets.splice(i, 1); 192 | } 193 | } 194 | 195 | theming.initialize_background_styles(); 196 | 197 | const id = (this.panel_color_update_id = setTimeout(() => { 198 | if (id !== this.panel_color_update_id) { 199 | return; 200 | } 201 | 202 | /* Get Rid of the Panel's CSS Background */ 203 | theming.remove_background_color(); 204 | 205 | intellifader.forceSyncCheck(); 206 | 207 | return; 208 | }, SETTINGS_DELAY)); 209 | 210 | return; 211 | }, SETTINGS_DELAY)); 212 | }); 213 | 214 | settings.on('maximized-opacity', () => { 215 | const super_id = (this.opacity_update_id = setTimeout(() => { 216 | if (super_id !== this.opacity_update_id) { 217 | return; 218 | } 219 | 220 | let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); 221 | 222 | for (let i = theming.stylesheets.length - 1; i >= 0; i--) { 223 | let stylesheet = theming.stylesheets[i]; 224 | if ( 225 | stylesheet.indexOf('background') !== -1 && 226 | stylesheet.indexOf('panel-') !== -1 227 | ) { 228 | theme.unload_stylesheet(Util.get_file(stylesheet)); 229 | Util.remove_file(stylesheet); 230 | theming.stylesheets.splice(i, 1); 231 | } 232 | } 233 | 234 | theming.initialize_background_styles(); 235 | 236 | const id = (this.panel_color_update_id = setTimeout(() => { 237 | if (id !== this.panel_color_update_id) { 238 | return; 239 | } 240 | 241 | /* Get Rid of the Panel's CSS Background */ 242 | intellifader.forceSyncCheck(); 243 | 244 | return; 245 | }, SETTINGS_DELAY)); 246 | 247 | return; 248 | }, SETTINGS_DELAY)); 249 | }); 250 | 251 | settings.on('panel-color', () => { 252 | theming.remove_background_color(); 253 | 254 | let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); 255 | 256 | for (let i = theming.stylesheets.length - 1; i >= 0; i--) { 257 | let stylesheet = theming.stylesheets[i]; 258 | if ( 259 | stylesheet.indexOf('background') !== -1 && 260 | stylesheet.indexOf('panel.dpt.css') !== -1 261 | ) { 262 | theme.unload_stylesheet(Util.get_file(stylesheet)); 263 | Util.remove_file(stylesheet); 264 | theming.stylesheets.splice(i, 1); 265 | } 266 | } 267 | 268 | theming.register_background_color(settings.get_panel_color(), 'custom'); 269 | 270 | const id = (this.panel_color_update_id = setTimeout(() => { 271 | if (id !== this.panel_color_update_id) { 272 | return; 273 | } 274 | 275 | /* Get Rid of the Panel's CSS Background */ 276 | theming.remove_background_color(); 277 | 278 | intellifader.forceSyncCheck(); 279 | 280 | return; 281 | }, SETTINGS_DELAY)); 282 | }); 283 | 284 | settings.on('text-shadow', () => { 285 | if (settings.add_text_shadow()) { 286 | theming.add_text_shadow(); 287 | } else { 288 | theming.remove_text_shadow(); 289 | } 290 | }); 291 | 292 | settings.on('icon-shadow', () => { 293 | if (settings.add_icon_shadow()) { 294 | theming.add_icon_shadow(); 295 | } else { 296 | theming.remove_icon_shadow(); 297 | } 298 | }); 299 | 300 | settings.on('text-shadow-position', () => { 301 | theming.remove_text_shadow(); 302 | 303 | let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); 304 | 305 | for (let i = theming.stylesheets.length - 1; i >= 0; i--) { 306 | let stylesheet = theming.stylesheets[i]; 307 | if (stylesheet.indexOf('shadow') !== -1 && stylesheet.indexOf('text') !== -1) { 308 | theme.unload_stylesheet(Util.get_file(stylesheet)); 309 | Util.remove_file(stylesheet); 310 | theming.stylesheets.splice(i, 1); 311 | } 312 | } 313 | let text_shadow = theming.register_text_shadow( 314 | settings.get_text_shadow_color(), 315 | settings.get_text_shadow_position() 316 | ); 317 | const id = (this.text_shadow_update_id = setTimeout(() => { 318 | if (id !== this.text_shadow_update_id) { 319 | return; 320 | } 321 | 322 | /* Add Text Shadowing */ 323 | if (settings.add_text_shadow()) { 324 | if (text_shadow !== null) { 325 | theming.add_text_shadow(); 326 | } else { 327 | log('[Dynamic Panel Transparency] Failed to enabled text shadowing.'); 328 | } 329 | } 330 | 331 | intellifader.forceSyncCheck(); 332 | 333 | return; 334 | }, SETTINGS_DELAY)); 335 | }); 336 | settings.on('icon-shadow-position', () => { 337 | theming.remove_icon_shadow(); 338 | 339 | let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); 340 | 341 | for (let i = theming.stylesheets.length - 1; i >= 0; i--) { 342 | let stylesheet = theming.stylesheets[i]; 343 | if (stylesheet.indexOf('shadow') !== -1 && stylesheet.indexOf('icon') !== -1) { 344 | theme.unload_stylesheet(Util.get_file(stylesheet)); 345 | Util.remove_file(stylesheet); 346 | theming.stylesheets.splice(i, 1); 347 | } 348 | } 349 | let icon_shadow = theming.register_icon_shadow( 350 | settings.get_icon_shadow_color(), 351 | settings.get_icon_shadow_position() 352 | ); 353 | const id = (this.icon_shadow_update_id = setTimeout(() => { 354 | if (id !== this.icon_shadow_update_id) { 355 | return; 356 | } 357 | 358 | /* Add Icon Shadowing */ 359 | if (settings.add_icon_shadow()) { 360 | if (icon_shadow !== null) { 361 | theming.add_icon_shadow(); 362 | } else { 363 | log('[Dynamic Panel Transparency] Failed to enabled icon shadowing.'); 364 | } 365 | } 366 | 367 | intellifader.forceSyncCheck(); 368 | 369 | return; 370 | }, SETTINGS_DELAY)); 371 | }); 372 | settings.on('icon-shadow-color', () => { 373 | theming.remove_icon_shadow(); 374 | 375 | let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); 376 | 377 | for (let i = theming.stylesheets.length - 1; i >= 0; i--) { 378 | let stylesheet = theming.stylesheets[i]; 379 | if (stylesheet.indexOf('shadow') !== -1 && stylesheet.indexOf('icon') !== -1) { 380 | theme.unload_stylesheet(Util.get_file(stylesheet)); 381 | Util.remove_file(stylesheet); 382 | theming.stylesheets.splice(i, 1); 383 | } 384 | } 385 | let icon_shadow = theming.register_icon_shadow( 386 | settings.get_icon_shadow_color(), 387 | settings.get_icon_shadow_position() 388 | ); 389 | const id = (this.icon_shadow_update_id = setTimeout(() => { 390 | if (id !== this.icon_shadow_update_id) { 391 | return; 392 | } 393 | 394 | /* Add Icon Shadowing */ 395 | if (settings.add_icon_shadow()) { 396 | if (icon_shadow !== null) { 397 | theming.add_icon_shadow(); 398 | } else { 399 | log('[Dynamic Panel Transparency] Failed to enabled icon shadowing.'); 400 | } 401 | } 402 | 403 | intellifader.forceSyncCheck(); 404 | 405 | return; 406 | }, SETTINGS_DELAY)); 407 | }); 408 | settings.on('text-shadow-color', () => { 409 | theming.remove_text_shadow(); 410 | 411 | let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); 412 | 413 | for (let i = theming.stylesheets.length - 1; i >= 0; i--) { 414 | let stylesheet = theming.stylesheets[i]; 415 | if (stylesheet.indexOf('shadow') !== -1 && stylesheet.indexOf('text') !== -1) { 416 | theme.unload_stylesheet(Util.get_file(stylesheet)); 417 | Util.remove_file(stylesheet); 418 | theming.stylesheets.splice(i, 1); 419 | } 420 | } 421 | let text_shadow = theming.register_text_shadow( 422 | settings.get_text_shadow_color(), 423 | settings.get_text_shadow_position() 424 | ); 425 | const id = (this.text_shadow_update_id = setTimeout(() => { 426 | if (id !== this.text_shadow_update_id) { 427 | return; 428 | } 429 | 430 | /* Add Text Shadowing */ 431 | if (settings.add_text_shadow()) { 432 | if (text_shadow !== null) { 433 | theming.add_text_shadow(); 434 | } else { 435 | log('[Dynamic Panel Transparency] Failed to enabled text shadowing.'); 436 | } 437 | } 438 | 439 | intellifader.forceSyncCheck(); 440 | 441 | return; 442 | }, SETTINGS_DELAY)); 443 | }); 444 | 445 | settings.on('enable-maximized-text-color', () => { 446 | intellifader.forceSyncCheck(); 447 | }); 448 | 449 | settings.on('enable-text-color', () => { 450 | if (settings.get_enable_text_color()) { 451 | intellifader.forceSyncCheck(); 452 | } else { 453 | theming.remove_text_color(); 454 | theming.remove_text_color('maximized'); 455 | } 456 | }); 457 | } 458 | } 459 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/media/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ewlsh/dynamic-panel-transparency/4ed748a8f048ef4346a7934672bdc59381d1ba43/dynamic-panel-transparency@rockon999.github.io/media/demo.gif -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "This extension fades your top panel to nothingness when there are no maximized windows present. Never again will the panel be abruptly darkened!", 3 | "name": "Dynamic Panel Transparency", 4 | "shell-version": [ 5 | "42", 6 | "43" 7 | ], 8 | "uuid": "dynamic-panel-transparency@rockon999.github.io", 9 | "settings-schema": "org.gnome.shell.extensions.dynamic-panel-transparency", 10 | "version": 35, 11 | "gettext-domain": "dynamic-panel-transparency", 12 | "url": "https://github.com/ewlsh/dynamic-panel-transparency/" 13 | } -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/prefs.js: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | 3 | /* exported init, buildPrefsWidget */ 4 | 5 | const GLib = imports.gi.GLib; 6 | const GObject = imports.gi.GObject; 7 | const Gdk = imports.gi.Gdk; 8 | const Gio = imports.gi.Gio; 9 | const Gtk = imports.gi.Gtk; 10 | 11 | const ExtensionUtils = imports.misc.extensionUtils; 12 | const Me = ExtensionUtils.getCurrentExtension(); 13 | 14 | const Gettext = imports.gettext.domain('dynamic-panel-transparency'); 15 | const _ = Gettext.gettext; 16 | 17 | const gtk30_ = imports.gettext.domain('gtk30').gettext; 18 | 19 | /** 20 | * Evaluates parameter 'value' and returns either 'value' or 'min'/'max' if 'value' is outside of the range. 21 | * 22 | * @param {Number} value - Test value. 23 | * @param {Number} min - Minimum value. 24 | * @param {Number} max - Maximum value. 25 | * 26 | * @returns {Number} 'value' or the minimum or maximum. 27 | * 28 | */ 29 | function clamp(value, min, max) { 30 | return Math.min(Math.max(value, min), max); 31 | } 32 | 33 | /** 34 | * Converts a GdkColor into a JS/CSS color object. 35 | * 36 | * @param {Object} color - GdkColor to convert. 37 | * 38 | * @returns {Object} Converted RGB color. 39 | * 40 | */ 41 | function gdk_to_css_color(color) { 42 | let red = Math.round(clamp(color.red * 255, 0, 255)); 43 | let green = Math.round(clamp(color.green * 255, 0, 255)); 44 | let blue = Math.round(clamp(color.blue * 255, 0, 255)); 45 | 46 | return { red: red, green: green, blue: blue }; 47 | } 48 | 49 | /* Settings Keys */ 50 | const SETTINGS_ENABLE_BACKGROUND_COLOR = 'enable-background-color'; 51 | const SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR = 'enable-maximized-text-color'; 52 | const SETTINGS_ENABLE_OPACITY = 'enable-opacity'; 53 | const SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR = 'enable-overview-text-color'; 54 | const SETTINGS_ENABLE_TEXT_COLOR = 'enable-text-color'; 55 | const SETTINGS_ICON_SHADOW = 'icon-shadow'; 56 | const SETTINGS_ICON_SHADOW_COLOR = 'icon-shadow-color'; 57 | const SETTINGS_ICON_SHADOW_POSITION = 'icon-shadow-position'; 58 | const SETTINGS_MAXIMIZED_OPACITY = 'maximized-opacity'; 59 | const SETTINGS_MAXIMIZED_TEXT_COLOR = 'maximized-text-color'; 60 | const SETTINGS_PANEL_COLOR = 'panel-color'; 61 | const SETTINGS_REMOVE_PANEL_STYLING = 'remove-panel-styling'; 62 | const SETTINGS_TEXT_COLOR = 'text-color'; 63 | const SETTINGS_TEXT_SHADOW = 'text-shadow'; 64 | const SETTINGS_TEXT_SHADOW_COLOR = 'text-shadow-color'; 65 | const SETTINGS_TEXT_SHADOW_POSITION = 'text-shadow-position'; 66 | const SETTINGS_TRANSITION_SPEED = 'transition-speed'; 67 | const SETTINGS_TRANSITION_WITH_OVERVIEW = 'transition-with-overview'; 68 | const SETTINGS_TRANSITION_WINDOWS_TOUCH = 'transition-windows-touch'; 69 | const SETTINGS_UNMAXIMIZED_OPACITY = 'unmaximized-opacity'; 70 | 71 | const Page = { TRANSITIONS: 0, FOREGROUND: 1, BACKGROUND: 2, ABOUT: 3 }; 72 | Object.freeze(Page); 73 | 74 | /* Color Array Indices */ 75 | const RED = 0; 76 | const GREEN = 1; 77 | const BLUE = 2; 78 | const ALPHA = 3; 79 | 80 | /* Shadow Positioning Indices */ 81 | const HORIZONTAL_OFFSET = 0; 82 | const VERTICAL_OFFSET = 1; 83 | const BLUR_RADIUS = 2; 84 | 85 | /* UI spacing & similar values. */ 86 | const WEBSITE_LABEL_BOTTOM_MARGIN = 50; 87 | const WEBSITE_LABEL_TOP_MARGIN = 20; 88 | 89 | /* Color Scaling Factor (Byte to Decimal) */ 90 | const SCALE_FACTOR = 255.9999999; 91 | 92 | function init() { 93 | ExtensionUtils.initTranslations(); 94 | } 95 | 96 | /* UI Setup */ 97 | function buildPrefsWidget() { 98 | /* Stores settings until the user applies them. */ 99 | 100 | /* Get Settings */ 101 | let settings = ExtensionUtils.getSettings(); 102 | /* Create a UI Builder */ 103 | let builder = new Gtk.Builder(); 104 | /* Setup Translation */ 105 | builder.set_translation_domain(Me.metadata['gettext-domain']); 106 | /* Get UI File */ 107 | builder.add_from_file(Me.path + '/prefs.ui'); 108 | 109 | /* Main Widget (Grid) */ 110 | let main_widget = builder.get_object('main_box'); 111 | 112 | { 113 | /* Transition speed control */ 114 | let speed_scale = builder.get_object('speed_scale'); 115 | /* Init value. */ 116 | speed_scale.adjustment.set_value(settings.get_int(SETTINGS_TRANSITION_SPEED)); 117 | /* Add default marking. */ 118 | speed_scale.add_mark( 119 | settings.get_default_value(SETTINGS_TRANSITION_SPEED).unpack(), 120 | Gtk.PositionType.BOTTOM, 121 | _('default') 122 | ); 123 | /* Add formatting */ 124 | speed_scale.set_format_value_func((scale, value) => { 125 | return value + 'ms'; 126 | }); 127 | speed_scale.connect( 128 | 'value-changed', 129 | function (widget) { 130 | settings.set_value( 131 | SETTINGS_TRANSITION_SPEED, 132 | new GLib.Variant('i', widget.adjustment.get_value()) 133 | ); 134 | }.bind(this) 135 | ); 136 | 137 | let transition_windows_touch = builder.get_object('transition_windows_touch_check'); 138 | transition_windows_touch.set_active( 139 | settings.get_boolean(SETTINGS_TRANSITION_WINDOWS_TOUCH) 140 | ); 141 | 142 | transition_windows_touch.connect( 143 | 'toggled', 144 | function (widget) { 145 | settings.set_value( 146 | SETTINGS_TRANSITION_WINDOWS_TOUCH, 147 | new GLib.Variant('b', widget.get_active()) 148 | ); 149 | }.bind(this) 150 | ); 151 | 152 | let transition_with_overview = builder.get_object('transition_with_overview_check'); 153 | transition_with_overview.set_active( 154 | settings.get_boolean(SETTINGS_TRANSITION_WITH_OVERVIEW) 155 | ); 156 | 157 | transition_with_overview.connect( 158 | 'toggled', 159 | function (widget) { 160 | settings.set_value( 161 | SETTINGS_TRANSITION_WITH_OVERVIEW, 162 | new GLib.Variant('b', widget.get_active()) 163 | ); 164 | }.bind(this) 165 | ); 166 | } 167 | 168 | /* Setup foreground tab */ 169 | { 170 | let text_color_switch = builder.get_object('text_color_switch'); 171 | let text_color_revealer = builder.get_object('text_color_revealer'); 172 | 173 | text_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_TEXT_COLOR)); 174 | text_color_switch.connect( 175 | 'state-set', 176 | function (widget, state) { 177 | settings.set_value(SETTINGS_ENABLE_TEXT_COLOR, new GLib.Variant('b', state)); 178 | text_color_revealer.set_reveal_child(state); 179 | }.bind(this) 180 | ); 181 | 182 | let maximized_text_color_switch = builder.get_object('maximized_text_color_check'); 183 | maximized_text_color_switch.set_active( 184 | settings.get_boolean(SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR) 185 | ); 186 | 187 | maximized_text_color_switch.connect( 188 | 'toggled', 189 | function (widget) { 190 | settings.set_value( 191 | SETTINGS_ENABLE_MAXIMIZED_TEXT_COLOR, 192 | new GLib.Variant('b', widget.get_active()) 193 | ); 194 | }.bind(this) 195 | ); 196 | 197 | let overview_text_color_switch = builder.get_object('overview_text_color_check'); 198 | overview_text_color_switch.set_active( 199 | settings.get_boolean(SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR) 200 | ); 201 | 202 | overview_text_color_switch.connect( 203 | 'toggled', 204 | function (widget) { 205 | settings.set_value( 206 | SETTINGS_ENABLE_OVERVIEW_TEXT_COLOR, 207 | new GLib.Variant('b', widget.get_active()) 208 | ); 209 | }.bind(this) 210 | ); 211 | 212 | let remove_panel_styling_check = builder.get_object('remove_panel_styling_check'); 213 | remove_panel_styling_check.set_active(settings.get_boolean(SETTINGS_REMOVE_PANEL_STYLING)); 214 | 215 | remove_panel_styling_check.connect( 216 | 'toggled', 217 | function (widget) { 218 | settings.set_value( 219 | SETTINGS_REMOVE_PANEL_STYLING, 220 | new GLib.Variant('b', widget.get_active()) 221 | ); 222 | }.bind(this) 223 | ); 224 | 225 | let maximized_text_color_btn = builder.get_object('maximized_text_color_btn'); 226 | let maximized_text_color = settings.get_value(SETTINGS_MAXIMIZED_TEXT_COLOR).deep_unpack(); 227 | 228 | let css_color = 229 | 'rgba(' + 230 | maximized_text_color[RED] + 231 | ',' + 232 | maximized_text_color[GREEN] + 233 | ',' + 234 | maximized_text_color[BLUE] + 235 | ', 1.0)'; 236 | let scaled_color = new Gdk.RGBA(); 237 | 238 | if (scaled_color.parse(css_color)) { 239 | maximized_text_color_btn.set_rgba(scaled_color); 240 | } 241 | 242 | maximized_text_color_btn.connect( 243 | 'color-set', 244 | function (color_btn) { 245 | let color = gdk_to_css_color(color_btn.get_rgba()); 246 | let rgb = [color.red, color.green, color.blue]; 247 | 248 | settings.set_value(SETTINGS_MAXIMIZED_TEXT_COLOR, new GLib.Variant('(iii)', rgb)); 249 | }.bind(this) 250 | ); 251 | 252 | let text_color_btn = builder.get_object('text_color_btn'); 253 | let text_color = settings.get_value(SETTINGS_TEXT_COLOR).deep_unpack(); 254 | 255 | css_color = 256 | 'rgba(' + text_color[RED] + ',' + text_color[GREEN] + ',' + text_color[BLUE] + ', 1.0)'; 257 | scaled_color = new Gdk.RGBA(); 258 | 259 | if (scaled_color.parse(css_color)) { 260 | text_color_btn.set_rgba(scaled_color); 261 | } 262 | 263 | text_color_btn.connect( 264 | 'color-set', 265 | function (color_btn) { 266 | let color = gdk_to_css_color(color_btn.get_rgba()); 267 | let rgb = [color.red, color.green, color.blue]; 268 | 269 | settings.set_value(SETTINGS_TEXT_COLOR, new GLib.Variant('(iii)', rgb)); 270 | }.bind(this) 271 | ); 272 | 273 | let text_shadow_switch = builder.get_object('text_shadow_switch'); 274 | let text_shadow_revealer = builder.get_object('text_shadow_revealer'); 275 | 276 | text_shadow_switch.set_active(settings.get_boolean(SETTINGS_TEXT_SHADOW)); 277 | 278 | text_shadow_switch.connect( 279 | 'state-set', 280 | function (widget, state) { 281 | settings.set_value(SETTINGS_TEXT_SHADOW, new GLib.Variant('b', state)); 282 | text_shadow_revealer.set_reveal_child(state); 283 | }.bind(this) 284 | ); 285 | 286 | let text_shadow_vertical_offset = builder.get_object('text_shadow_vertical_offset'); 287 | settings.set_value( 288 | SETTINGS_TEXT_SHADOW_POSITION, 289 | settings.get_value(SETTINGS_TEXT_SHADOW_POSITION) 290 | ); 291 | text_shadow_vertical_offset.set_value( 292 | settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack()[VERTICAL_OFFSET] 293 | ); 294 | text_shadow_vertical_offset.connect( 295 | 'value-changed', 296 | function (widget) { 297 | let position = settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack(); 298 | position[VERTICAL_OFFSET] = widget.get_value_as_int(); 299 | settings.set_value( 300 | SETTINGS_TEXT_SHADOW_POSITION, 301 | new GLib.Variant('(iii)', position) 302 | ); 303 | }.bind(this) 304 | ); 305 | 306 | let text_shadow_horizontal_offset = builder.get_object('text_shadow_horizontal_offset'); 307 | text_shadow_horizontal_offset.set_value( 308 | settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack()[HORIZONTAL_OFFSET] 309 | ); 310 | text_shadow_horizontal_offset.connect( 311 | 'value-changed', 312 | function (widget) { 313 | let position = settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack(); 314 | position[HORIZONTAL_OFFSET] = widget.get_value_as_int(); 315 | settings.set_value( 316 | SETTINGS_TEXT_SHADOW_POSITION, 317 | new GLib.Variant('(iii)', position) 318 | ); 319 | }.bind(this) 320 | ); 321 | 322 | let text_shadow_radius = builder.get_object('text_shadow_radius'); 323 | text_shadow_radius.set_value( 324 | settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack()[BLUR_RADIUS] 325 | ); 326 | text_shadow_radius.connect( 327 | 'value-changed', 328 | function (widget) { 329 | let position = settings.get_value(SETTINGS_TEXT_SHADOW_POSITION).deep_unpack(); 330 | position[BLUR_RADIUS] = widget.get_value_as_int(); 331 | settings.set_value( 332 | SETTINGS_TEXT_SHADOW_POSITION, 333 | new GLib.Variant('(iii)', position) 334 | ); 335 | }.bind(this) 336 | ); 337 | 338 | let text_shadow_color_btn = builder.get_object('text_shadow_color'); 339 | text_shadow_color_btn.show_editor = true; 340 | 341 | let text_shadow_color = settings.get_value(SETTINGS_TEXT_SHADOW_COLOR).deep_unpack(); 342 | 343 | css_color = 344 | 'rgba(' + 345 | text_shadow_color[RED] + 346 | ',' + 347 | text_shadow_color[GREEN] + 348 | ',' + 349 | text_shadow_color[BLUE] + 350 | ',' + 351 | text_shadow_color[ALPHA].toFixed(2) + 352 | ')'; 353 | scaled_color = new Gdk.RGBA(); 354 | if (scaled_color.parse(css_color)) text_shadow_color_btn.set_rgba(scaled_color); 355 | 356 | text_shadow_color_btn.connect( 357 | 'color-set', 358 | function (color_btn) { 359 | let color = gdk_to_css_color(color_btn.get_rgba()); 360 | let alpha = +color_btn.get_rgba().alpha.toFixed(2); 361 | 362 | let rgba = [color.red, color.green, color.blue, alpha]; 363 | settings.set_value(SETTINGS_TEXT_SHADOW_COLOR, new GLib.Variant('(iiid)', rgba)); 364 | }.bind(this) 365 | ); 366 | 367 | let icon_shadow = builder.get_object('icon_shadow_switch'); 368 | let icon_shadow_revealer = builder.get_object('icon_shadow_revealer'); 369 | 370 | icon_shadow.set_active(settings.get_boolean(SETTINGS_ICON_SHADOW)); 371 | 372 | icon_shadow.connect( 373 | 'state-set', 374 | function (widget, state) { 375 | settings.set_value(SETTINGS_ICON_SHADOW, new GLib.Variant('b', state)); 376 | icon_shadow_revealer.set_reveal_child(state); 377 | }.bind(this) 378 | ); 379 | 380 | let icon_shadow_vertical_offset = builder.get_object('icon_shadow_vertical_offset'); 381 | 382 | settings.set_value( 383 | SETTINGS_ICON_SHADOW_POSITION, 384 | settings.get_value(SETTINGS_ICON_SHADOW_POSITION) 385 | ); 386 | icon_shadow_vertical_offset.set_value( 387 | settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack()[VERTICAL_OFFSET] 388 | ); 389 | icon_shadow_vertical_offset.connect( 390 | 'value-changed', 391 | function (widget) { 392 | let position = settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack(); 393 | position[VERTICAL_OFFSET] = widget.get_value_as_int(); 394 | settings.set_value( 395 | SETTINGS_ICON_SHADOW_POSITION, 396 | new GLib.Variant('(iii)', position) 397 | ); 398 | }.bind(this) 399 | ); 400 | let icon_shadow_horizontal_offset = builder.get_object('icon_shadow_horizontal_offset'); 401 | icon_shadow_horizontal_offset.set_value( 402 | settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack()[HORIZONTAL_OFFSET] 403 | ); 404 | icon_shadow_horizontal_offset.connect( 405 | 'value-changed', 406 | function (widget) { 407 | let position = settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack(); 408 | position[HORIZONTAL_OFFSET] = widget.get_value_as_int(); 409 | settings.set_value( 410 | SETTINGS_ICON_SHADOW_POSITION, 411 | new GLib.Variant('(iii)', position) 412 | ); 413 | }.bind(this) 414 | ); 415 | let icon_shadow_radius = builder.get_object('icon_shadow_radius'); 416 | icon_shadow_radius.set_value( 417 | settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack()[BLUR_RADIUS] 418 | ); 419 | icon_shadow_radius.connect( 420 | 'value-changed', 421 | function (widget) { 422 | let position = settings.get_value(SETTINGS_ICON_SHADOW_POSITION).deep_unpack(); 423 | position[BLUR_RADIUS] = widget.get_value_as_int(); 424 | settings.set_value( 425 | SETTINGS_ICON_SHADOW_POSITION, 426 | new GLib.Variant('(iii)', position) 427 | ); 428 | }.bind(this) 429 | ); 430 | 431 | let icon_shadow_color_btn = builder.get_object('icon_shadow_color'); 432 | icon_shadow_color_btn.show_editor = true; 433 | 434 | let icon_shadow_color = settings.get_value(SETTINGS_ICON_SHADOW_COLOR).deep_unpack(); 435 | 436 | css_color = 437 | 'rgba(' + 438 | icon_shadow_color[RED] + 439 | ',' + 440 | icon_shadow_color[GREEN] + 441 | ',' + 442 | icon_shadow_color[BLUE] + 443 | ',' + 444 | icon_shadow_color[ALPHA].toFixed(2) + 445 | ')'; 446 | scaled_color = new Gdk.RGBA(); 447 | if (scaled_color.parse(css_color)) { 448 | icon_shadow_color_btn.set_rgba(scaled_color); 449 | } 450 | 451 | icon_shadow_color_btn.connect( 452 | 'color-set', 453 | function (color_btn) { 454 | let color = gdk_to_css_color(color_btn.get_rgba()); 455 | let alpha = +color_btn.get_rgba().alpha.toFixed(2); 456 | 457 | let rgba = [color.red, color.green, color.blue, alpha]; 458 | 459 | settings.set_value(SETTINGS_ICON_SHADOW_COLOR, new GLib.Variant('(iiid)', rgba)); 460 | }.bind(this) 461 | ); 462 | } 463 | 464 | /* Setup Background Tab */ 465 | { 466 | let background_color_switch = builder.get_object('background_color_switch'); 467 | let opacity_switch = builder.get_object('opacity_switch'); 468 | let background_color_revealer = builder.get_object('background_color_revealer'); 469 | let opacity_revealer = builder.get_object('opacity_revealer'); 470 | 471 | background_color_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_BACKGROUND_COLOR)); 472 | background_color_switch.connect( 473 | 'state-set', 474 | function (widget, state) { 475 | settings.set_value(SETTINGS_ENABLE_BACKGROUND_COLOR, new GLib.Variant('b', state)); 476 | background_color_revealer.set_reveal_child(state); 477 | }.bind(this) 478 | ); 479 | 480 | opacity_switch.set_active(settings.get_boolean(SETTINGS_ENABLE_OPACITY)); 481 | opacity_switch.connect( 482 | 'state-set', 483 | function (widget, state) { 484 | settings.set_value(SETTINGS_ENABLE_OPACITY, new GLib.Variant('b', state)); 485 | opacity_revealer.set_reveal_child(state); 486 | }.bind(this) 487 | ); 488 | 489 | /* Maximum opacity control */ 490 | let maximum_scale = builder.get_object('maximum_scale'); 491 | /* Init value. */ 492 | maximum_scale.adjustment.set_value(settings.get_int(SETTINGS_MAXIMIZED_OPACITY)); 493 | /* Add formatting */ 494 | maximum_scale.set_format_value_func((scale, value) => { 495 | return ((value / SCALE_FACTOR) * 100).toFixed(0) + '%'; // eslint-disable-line no-magic-numbers 496 | }); 497 | maximum_scale.connect( 498 | 'value-changed', 499 | function (widget) { 500 | settings.set_value( 501 | SETTINGS_MAXIMIZED_OPACITY, 502 | new GLib.Variant('i', widget.adjustment.get_value()) 503 | ); 504 | }.bind(this) 505 | ); 506 | 507 | /* Minimum opacity control */ 508 | let minimum_scale = builder.get_object('minimum_scale'); 509 | /* Init value. */ 510 | minimum_scale.adjustment.set_value(settings.get_int(SETTINGS_UNMAXIMIZED_OPACITY)); 511 | /* Add formatting */ 512 | minimum_scale.set_format_value_func((scale, value) => { 513 | return ((value / SCALE_FACTOR) * 100).toFixed(0) + '%'; // eslint-disable-line no-magic-numbers 514 | }); 515 | minimum_scale.connect( 516 | 'value-changed', 517 | function (widget) { 518 | settings.set_value( 519 | SETTINGS_UNMAXIMIZED_OPACITY, 520 | new GLib.Variant('i', widget.adjustment.get_value()) 521 | ); 522 | }.bind(this) 523 | ); 524 | 525 | /* Convert & scale color. */ 526 | let panel_color = settings.get_value(SETTINGS_PANEL_COLOR).deep_unpack(); 527 | 528 | let color_btn = builder.get_object('color_btn'); 529 | let css_color = 530 | 'rgba(' + 531 | panel_color[RED] + 532 | ',' + 533 | panel_color[GREEN] + 534 | ',' + 535 | panel_color[BLUE] + 536 | ', 1.0)'; 537 | 538 | let scaled_color = new Gdk.RGBA(); 539 | if (scaled_color.parse(css_color)) { 540 | color_btn.set_rgba(scaled_color); 541 | } 542 | color_btn.connect( 543 | 'color-set', 544 | function (color_btn) { 545 | let color = gdk_to_css_color(color_btn.get_rgba()); 546 | let rgb = [color.red, color.green, color.blue]; 547 | 548 | settings.set_value(SETTINGS_PANEL_COLOR, new GLib.Variant('ai', rgb)); 549 | }.bind(this) 550 | ); 551 | } 552 | 553 | let about_button = builder.get_object('about_button'); 554 | let about_dialog = builder.get_object('about_dialog'); 555 | about_dialog.set_version('v' + Me.metadata['version']); 556 | about_button.connect('clicked', () => { 557 | about_dialog.set_transient_for(main_widget.get_root()); 558 | about_dialog.set_modal(true); 559 | about_dialog.present(); 560 | }); 561 | 562 | return main_widget; 563 | } 564 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/schemas/gschemas.compiled: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ewlsh/dynamic-panel-transparency/4ed748a8f048ef4346a7934672bdc59381d1ba43/dynamic-panel-transparency@rockon999.github.io/schemas/gschemas.compiled -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/schemas/org.gnome.shell.extensions.dynamic-panel-transparency.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1000 5 | Transition Speed 6 | How fast the panel fades in and out. 7 | 8 | 9 | 255 10 | Maximized Opacity 11 | The opacity of the panel when there are maximized windows [0-255]. 12 | 13 | 14 | 0 15 | Unmaximized Opacity 16 | The opacity of the panel when there are no maximized windows [0-255]. 17 | 18 | 19 | false 20 | Force Animation 21 | Overrides 'gtk-enable-animations' on installations where animations are disabled. 22 | 23 | 24 | [0,0,0] 25 | Panel Color 26 | The background color of the panel. 27 | 28 | 29 | false 30 | Enable custom opacities 31 | Whether to enable custom opacities or use the theme values. 32 | 33 | 34 | false 35 | Enable custom background color 36 | Whether to enable custom coloring or use the theme value. 37 | 38 | 39 | false 40 | Add shadowing to text 41 | Adds a shadowing effect to make the panel's text readable on light backgrounds. 42 | 43 | 44 | false 45 | Add shadowing to icons 46 | Adds a shadowing effect to make the panel's icons visible on light backgrounds. 47 | 48 | 49 | (0,3,5) 50 | Text shadow position 51 | The position of the text shadow. (h-offset, v-offset, radius) 52 | 53 | 54 | (0,2,5) 55 | Icon shadow position 56 | The position of the icon shadow. (h-offset, v-offset, radius) 57 | 58 | 59 | (0,0,0,0.5) 60 | Color of shadowing for icons. 61 | The color of the icon shadow. (red, green, blue, alpha) 62 | 63 | 64 | (0,0,0,1.0) 65 | Color of shadowing for text. 66 | The color of the text shadow. (red, green, blue, alpha) 67 | 68 | 69 | (255,255,255) 70 | What color the panel text should be. 71 | What color the panel text should be. 72 | 73 | 74 | (255,255,255) 75 | What color the maximized panel text should be. 76 | What color the panel text should be when windows are maximized 77 | 78 | 79 | false 80 | Enable custom text color 81 | Whether to enable custom primary text coloring or use the user's theme values. 82 | 83 | 84 | false 85 | Enable custom maximized text color 86 | Whether to enable custom secondary text coloring when a window is maximized or not. 87 | 88 | 89 | false 90 | Enable custom overview text color 91 | Whether to enable secondary custom text coloring when the overview is visible. 92 | 93 | 94 | false 95 | Remove incompatible theming 96 | Whether certain usually incompatible theme styles should be removed. 97 | 98 | 99 | 1 100 | Transition type 101 | The transition function used on the panel 102 | 103 | 104 | true 105 | Transition with overview 106 | Transition the panel at the same time as the overview 107 | 108 | 109 | true 110 | Transition when windows touch the panel 111 | Transition when windows touch the panel 112 | 113 | 114 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/settings.js: -------------------------------------------------------------------------------- 1 | import Gio from 'gi://Gio'; 2 | 3 | import * as Util from './util.js'; 4 | import { extensionUtils } from './shell.js'; 5 | 6 | const GNOME_BACKGROUND_SCHEMA = 'org.gnome.desktop.wm.keybindings'; 7 | const SETTINGS_SHOW_DESKTOP = 'show-desktop'; 8 | 9 | const GNOME_INTERFACE_SCHEMA = 'org.gnome.desktop.interface'; 10 | const SETTINGS_ENABLE_ANIMATIONS = 'enable-animations'; 11 | 12 | /** @typedef {import('./theming.js').Color} Color */ 13 | 14 | export class Settings { 15 | constructor() { 16 | this._settings = extensionUtils.getSettings(); 17 | this._background_settings = null; 18 | this._interface_settings = null; 19 | 20 | /* Setup background settings. */ 21 | 22 | try { 23 | let schemaObj = extensionUtils.getSchemaObj(GNOME_BACKGROUND_SCHEMA, true); 24 | 25 | if (schemaObj) { 26 | this._background_settings = new Gio.Settings({ 27 | settings_schema: schemaObj, 28 | }); 29 | } 30 | } catch (error) {} // eslint-disable-line 31 | 32 | try { 33 | let schemaObj = extensionUtils.getSchemaObj(GNOME_INTERFACE_SCHEMA, true); 34 | 35 | if (schemaObj) { 36 | this._interface_settings = new Gio.Settings({ 37 | settings_schema: schemaObj, 38 | }); 39 | } 40 | } catch (error) {} // eslint-disable-line 41 | 42 | this._keys = []; 43 | this._app_keys = {}; 44 | this._overriden_keys = []; 45 | 46 | this.settingsBoundIds = []; 47 | 48 | this._show_desktop = null; 49 | 50 | if (this._background_settings) { 51 | this._show_desktop = 52 | this._background_settings.get_strv(SETTINGS_SHOW_DESKTOP).length > 0; 53 | 54 | this.settingsBoundIds.push( 55 | this._background_settings.connect('changed::' + SETTINGS_SHOW_DESKTOP, () => { 56 | this._show_desktop = 57 | this._background_settings.get_strv(SETTINGS_SHOW_DESKTOP).length > 0; 58 | }) 59 | ); 60 | } 61 | 62 | if (this._interface_settings) { 63 | this._enable_animations = this._interface_settings.get_boolean( 64 | SETTINGS_ENABLE_ANIMATIONS 65 | ); 66 | 67 | this.settingsBoundIds.push( 68 | this._interface_settings.connect('changed::' + SETTINGS_ENABLE_ANIMATIONS, () => { 69 | this._enable_animations = this._interface_settings.get_boolean( 70 | SETTINGS_ENABLE_ANIMATIONS 71 | ); 72 | }) 73 | ); 74 | } 75 | 76 | this.gs_show_desktop = function () { 77 | return this._show_desktop; 78 | }; 79 | 80 | this.gs_enable_animations = function () { 81 | return this._enable_animations; 82 | }; 83 | } 84 | 85 | cleanup() { 86 | this.settingsBoundIds = null; 87 | this._settings = null; 88 | } 89 | 90 | unbind() { 91 | for (let i = 0; i < this.settingsBoundIds.length; ++i) { 92 | this._settings.disconnect(this.settingsBoundIds[i]); 93 | } 94 | } 95 | 96 | on(key, handler) { 97 | this.settingsBoundIds.push( 98 | this._settings.connect('changed::' + key, function () { 99 | // TODO: Find a better way to handle settings being changed right as the extension starts up. 100 | try { 101 | handler.call(this); 102 | } catch (error) { 103 | log( 104 | '[Dynamic Panel Transparency] Error handling setting (' + key + ') change.' 105 | ); 106 | log(error); 107 | } 108 | }) 109 | ); 110 | } 111 | 112 | get_transition_speed() { 113 | return this._settings.get_int('transition-speed'); 114 | } 115 | 116 | get_unmaximized_opacity() { 117 | return this._settings.get_int('unmaximized-opacity'); 118 | } 119 | 120 | get_maximized_opacity() { 121 | return this._settings.get_int('maximized-opacity'); 122 | } 123 | 124 | get_panel_color() { 125 | return Util.tuple_to_native_color(this._settings.get_value('panel-color').deep_unpack()); 126 | } 127 | 128 | add_text_shadow() { 129 | return this._settings.get_boolean('text-shadow'); 130 | } 131 | 132 | add_icon_shadow() { 133 | return this._settings.get_boolean('icon-shadow'); 134 | } 135 | 136 | get_tuple(key, parser) { 137 | const value = this._settings.get_value(key).deep_unpack(); 138 | return parser?.(value) ?? value; 139 | } 140 | 141 | /** 142 | * @returns {[number, number, number]} 143 | */ 144 | get_text_shadow_position() { 145 | return this.get_tuple('text-shadow-position'); 146 | } 147 | 148 | /** 149 | * @returns {[number, number, number]} 150 | */ 151 | get_icon_shadow_position() { 152 | return this.get_tuple('icon-shadow-position'); 153 | } 154 | 155 | /** 156 | * @returns {Color} 157 | */ 158 | get_icon_shadow_color() { 159 | return this.get_tuple('icon-shadow-color', Util.tuple_to_native_color); 160 | } 161 | 162 | /** 163 | * @returns {Color} 164 | */ 165 | get_text_shadow_color() { 166 | return this.get_tuple('text-shadow-color', Util.tuple_to_native_color); 167 | } 168 | 169 | /** 170 | * @returns {Color} 171 | */ 172 | get_text_color() { 173 | return this.get_tuple('text-color', Util.tuple_to_native_color); 174 | } 175 | 176 | /** 177 | * @returns {Color} 178 | */ 179 | get_maximized_text_color() { 180 | return this.get_tuple('maximized-text-color', Util.tuple_to_native_color); 181 | } 182 | 183 | get_enable_maximized_text_color() { 184 | return this._settings.get_boolean('enable-maximized-text-color'); 185 | } 186 | 187 | remove_panel_styling() { 188 | return this._settings.get_boolean('remove-panel-styling'); 189 | } 190 | 191 | get_enable_overview_text_color() { 192 | return this._settings.get_boolean('enable-overview-text-color'); 193 | } 194 | 195 | get_enable_text_color() { 196 | return this._settings.get_boolean('enable-text-color'); 197 | } 198 | 199 | enable_custom_opacity() { 200 | return this._settings.get_boolean('enable-opacity'); 201 | } 202 | 203 | enable_custom_background_color() { 204 | return this._settings.get_boolean('enable-background-color'); 205 | } 206 | 207 | transition_with_overview() { 208 | return this._settings.get_boolean('transition-with-overview'); 209 | } 210 | 211 | transition_when_windows_touch_panel() { 212 | return this._settings.get_boolean('transition-windows-touch'); 213 | } 214 | } 215 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/shell.js: -------------------------------------------------------------------------------- 1 | // @ts-expect-error 2 | const Main = imports.ui.main; 3 | // @ts-expect-error 4 | const ExtensionUtils = imports.misc.extensionUtils; 5 | // @ts-expect-error 6 | const Config = imports.misc.config; 7 | 8 | export { ExtensionUtils as extensionUtils }; 9 | export { Main as main }; 10 | export { Config }; 11 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Used to remove odd effects when full transparency is needed. */ 2 | 3 | .panel-transparency { 4 | background-color: rgba(0, 0, 0, 0); 5 | } 6 | 7 | .panel-effect-transparency { 8 | box-shadow: none; 9 | border: none; 10 | /* Gnome Shell specific CSS */ 11 | background-gradient-direction: none; 12 | background-gradient-start: none; 13 | background-gradient-end: none; 14 | } 15 | 16 | /* Used to remove backgrounds when full transparency is needed. */ 17 | 18 | .panel-background-image-transparency { 19 | border-image: none; 20 | background-image: none; 21 | } 22 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/theming.js: -------------------------------------------------------------------------------- 1 | import St from 'gi://St'; 2 | import GLib from 'gi://GLib'; 3 | 4 | import * as Util from './util.js'; 5 | import { extensionUtils, main } from './shell.js'; 6 | 7 | /* Scale factor for color conversion. */ 8 | const SCALE_FACTOR = 255.9999999; 9 | 10 | /** 11 | * @typedef {Object} Color - Represents a standard color object 12 | * @property {number} red - Red value ranging from 0-255. 13 | * @property {number} green - Green value ranging from 0-255. 14 | * @property {number} blue - Blue value ranging from 0-255. 15 | * @property {number=} [alpha] - Alpha value ranging from 0-1.0 with support for two decimal places. 16 | */ 17 | 18 | export class Theming { 19 | /** 20 | * @param {import('./main.js').DptExtension} extension 21 | */ 22 | constructor(extension) { 23 | this.extension = extension; 24 | 25 | this.panel = main.panel; 26 | 27 | this.stylesheets = []; 28 | this.styles = []; 29 | 30 | this.background_styles = []; 31 | } 32 | 33 | setup() { 34 | this.update_transition_css(); 35 | } 36 | 37 | /** 38 | * Used to release any held assets of theming. 39 | * 40 | */ 41 | cleanup() { 42 | let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); 43 | 44 | for (let style of this.styles) { 45 | this.panel.remove_style_class_name(style); 46 | } 47 | 48 | for (let style of this.background_styles) { 49 | this.panel.remove_style_class_name(style); 50 | } 51 | 52 | for (let sheet of this.stylesheets) { 53 | theme.unload_stylesheet(Util.get_file(sheet)); 54 | Util.remove_file(sheet); 55 | } 56 | 57 | this.background_styles = null; 58 | this.stylesheets = null; 59 | this.styles = null; 60 | } 61 | 62 | /** 63 | * Registers a shadow stylesheet for text in the panel. 64 | * 65 | * @param {Color} text_color - Object representing an RGBA color. 66 | * @param {Number[]} text_position - Integer array containing horizontal offset, vertical offset, radius. (in that order) 67 | */ 68 | register_text_shadow(text_color, text_position) { 69 | let text_color_css = 70 | 'rgba(' + 71 | text_color.red + 72 | ', ' + 73 | text_color.green + 74 | ', ' + 75 | text_color.blue + 76 | ', ' + 77 | text_color.alpha.toFixed(2) + 78 | ')'; 79 | let text_position_css = 80 | '' + text_position[0] + 'px ' + text_position[1] + 'px ' + text_position[2] + 'px'; 81 | 82 | this.register_style('dpt-panel-text-shadow'); 83 | 84 | return this.apply_stylesheet_css( 85 | '.dpt-panel-text-shadow .panel-button { text-shadow: ' + 86 | text_position_css + 87 | ' ' + 88 | text_color_css + 89 | '; }', 90 | 'foreground/panel-text-shadow' 91 | ); 92 | } 93 | 94 | /** 95 | * Adds the currently registered shadow stylesheet to the text in the panel. 96 | */ 97 | add_text_shadow() { 98 | this.panel.add_style_class_name('dpt-panel-text-shadow'); 99 | } 100 | 101 | /** 102 | * Register a shadow stylesheet for icons in the panel. 103 | * 104 | * @param {Color} icon_color - Object representing an RGBA color. 105 | * @param {Number[]} icon_position - Integer array containing horizontal offset, vertical offset, radius. (in that order) 106 | */ 107 | register_icon_shadow(icon_color, icon_position) { 108 | let icon_color_css = 109 | 'rgba(' + 110 | icon_color.red + 111 | ', ' + 112 | icon_color.green + 113 | ', ' + 114 | icon_color.blue + 115 | ', ' + 116 | icon_color.alpha.toFixed(2) + 117 | ')'; 118 | let icon_position_css = 119 | '' + icon_position[0] + 'px ' + icon_position[1] + 'px ' + icon_position[2] + 'px'; 120 | 121 | let stylesheet = this.apply_stylesheet_css( 122 | '.dpt-panel-icon-shadow .system-status-icon { icon-shadow: ' + 123 | icon_position_css + 124 | ' ' + 125 | icon_color_css + 126 | '; }\n.dpt-panel-arrow-shadow .popup-menu-arrow { icon-shadow: ' + 127 | icon_position_css + 128 | ' ' + 129 | icon_color_css + 130 | '; }', 131 | 'foreground/panel-icon-shadow' 132 | ); 133 | 134 | this.register_style('dpt-panel-icon-shadow'); 135 | this.register_style('dpt-panel-arrow-shadow'); 136 | 137 | return stylesheet; 138 | } 139 | 140 | /** 141 | * Adds the currently register shadow stylesheet to icons in the panel. 142 | * 143 | */ 144 | add_icon_shadow() { 145 | this.panel.add_style_class_name('dpt-panel-icon-shadow'); 146 | this.panel.add_style_class_name('dpt-panel-arrow-shadow'); 147 | } 148 | 149 | /** 150 | * Determines if the panel currently has text shadowing applied. 151 | * 152 | * @returns {Boolean} If the panel has text shadowing. 153 | */ 154 | has_text_shadow() { 155 | return this.panel.has_style_class_name('dpt-panel-text-shadow'); 156 | } 157 | 158 | /** 159 | * Determines if the panel currently has icon shadowing applied. 160 | * 161 | * @returns {Boolean} If the panel has icon shadowing. 162 | */ 163 | has_icon_shadow() { 164 | return ( 165 | this.panel.has_style_class_name('dpt-panel-icon-shadow') || 166 | this.panel.has_style_class_name('dpt-panel-arrow-shadow') 167 | ); 168 | } 169 | 170 | /** 171 | * Removes any text shadowing; deregistering the stylesheet and removing the css. 172 | * 173 | */ 174 | remove_text_shadow() { 175 | this.panel.remove_style_class_name('dpt-panel-text-shadow'); 176 | } 177 | 178 | /** 179 | * Removes any icon shadowing; deregistering the stylesheet and removing the css. 180 | * 181 | */ 182 | remove_icon_shadow() { 183 | this.panel.remove_style_class_name('dpt-panel-icon-shadow'); 184 | this.panel.remove_style_class_name('dpt-panel-arrow-shadow'); 185 | } 186 | 187 | /** 188 | * Registers text & icon coloring. 189 | * 190 | * @param {Color} color - Object containing an RGB color value. 191 | * @param {string} [prefix] - What prefix to apply to the stylesheet. '-' is the default. 192 | */ 193 | register_text_color(color, prefix) { 194 | let color_css = 'color: rgb(' + color.red + ', ' + color.green + ', ' + color.blue + ');'; 195 | 196 | if (prefix) { 197 | prefix = '-' + prefix + '-'; 198 | } else { 199 | prefix = '-'; 200 | } 201 | 202 | let stylesheet = this.apply_stylesheet_css( 203 | '.dpt-panel' + 204 | prefix + 205 | 'text-color .panel-button { ' + 206 | color_css + 207 | ' }\n.dpt-panel' + 208 | prefix + 209 | 'icon-color .system-status-icon { ' + 210 | color_css + 211 | ' }\n.dpt-panel' + 212 | prefix + 213 | 'arrow-color .popup-menu-arrow { ' + 214 | color_css + 215 | ' }', 216 | 'foreground/panel' + prefix + 'text-color' 217 | ); 218 | 219 | this.register_style('dpt-panel' + prefix + 'text-color'); 220 | this.register_style('dpt-panel' + prefix + 'icon-color'); 221 | this.register_style('dpt-panel' + prefix + 'arrow-color'); 222 | 223 | return stylesheet; 224 | } 225 | 226 | /** 227 | * Sets which registered text color stylesheet to use for the text coloring. @see register_text_color 228 | * 229 | * @param {string} [prefix] - What stylesheet prefix to retrieve. '-' is the default. 230 | */ 231 | set_text_color(prefix) { 232 | if (prefix) { 233 | prefix = '-' + prefix + '-'; 234 | } else { 235 | prefix = '-'; 236 | } 237 | 238 | this.panel.add_style_class_name(`dpt-panel${prefix}text-color`); 239 | this.panel.add_style_class_name(`dpt-panel${prefix}icon-color`); 240 | this.panel.add_style_class_name(`dpt-panel${prefix}arrow-color`); 241 | } 242 | 243 | /** 244 | * Remove a registered text color stylesheet from the panel. @see set_text_color 245 | * 246 | * @param {string} [prefix] - What stylesheet prefix to retrieve. '-' is the default. 247 | */ 248 | remove_text_color(prefix) { 249 | if (prefix) { 250 | prefix = `-${prefix}-`; 251 | } else { 252 | prefix = '-'; 253 | } 254 | 255 | this.panel.remove_style_class_name(`dpt-panel${prefix}text-color`); 256 | this.panel.remove_style_class_name(`dpt-panel${prefix}icon-color`); 257 | this.panel.remove_style_class_name(`dpt-panel${prefix}arrow-color`); 258 | } 259 | 260 | /** 261 | * Registers any custom style so that it can be removed when the extension is disabled. 262 | * 263 | * @param {string} style - The name of a CSS styling. 264 | */ 265 | register_style(style) { 266 | if (this.styles.indexOf(style) === -1) { 267 | this.styles.push(style); 268 | } 269 | } 270 | 271 | /** 272 | * Returns the user's desired panel color from Settings. Handles theme detection again. 273 | * DEPENDENCY: Settings 274 | * 275 | * @returns {Object} Object containing an RGBA color value. 276 | */ 277 | get_background_color() { 278 | const { settings } = this.extension; 279 | 280 | if (!settings.enable_custom_background_color()) { 281 | return { 282 | red: 0, 283 | blue: 0, 284 | green: 0, 285 | }; 286 | } 287 | 288 | return settings.get_panel_color(); 289 | } 290 | 291 | /** 292 | * Returns the user's desired maximized panel opacity from Settings or their theme. 293 | * DEPENDENCY: Settings 294 | * TODO: Needs better system to determine when default theme opacities are too low. 295 | * 296 | * @returns {Number} Alpha value from 0-255. 297 | */ 298 | get_maximized_opacity() { 299 | const { settings } = this.extension; 300 | 301 | let maximized_opacity = settings.get_maximized_opacity(); 302 | 303 | if (!settings.enable_custom_opacity()) { 304 | return 255; 305 | } else { 306 | return maximized_opacity; 307 | } 308 | } 309 | 310 | /** 311 | * Returns the user's desired unmaximized panel opacity from Settings or their theme. 312 | * DEPENDENCY: Settings 313 | * 314 | * @returns {Number} Alpha value from 0-255. 315 | */ 316 | get_unmaximized_opacity() { 317 | const { settings } = this.extension; 318 | 319 | if (settings.enable_custom_opacity()) { 320 | return settings.get_unmaximized_opacity(); 321 | } else { 322 | return 50; 323 | } 324 | } 325 | 326 | /** 327 | * Applies the style class 'panel-transparency' which makes the panel fully transparent. 328 | * 329 | */ 330 | apply_panel_transparency() { 331 | this.panel.add_style_class_name('panel-transparency'); 332 | } 333 | 334 | /** 335 | * Applies the style class 'panel-transparency' which makes the panel fully transparent. 336 | * 337 | */ 338 | remove_panel_transparency() { 339 | this.panel.remove_style_class_name('panel-transparency'); 340 | } 341 | 342 | /** 343 | * Applies the style class 'panel-effect-transparency' and removes the basic CSS preventing this extension's transitions. 344 | * 345 | */ 346 | strip_panel_styling() { 347 | this.panel.add_style_class_name('panel-effect-transparency'); 348 | } 349 | 350 | /** 351 | * Removes the style class 'panel-effect-transparency' and enables the stock CSS preventing this extension's transitions. 352 | * 353 | */ 354 | reapply_panel_styling() { 355 | this.panel.remove_style_class_name('panel-effect-transparency'); 356 | } 357 | 358 | /** 359 | * Applies the style class 'panel-background-image-transparency' and removes the basic CSS preventing this extension's transitions. 360 | * 361 | */ 362 | strip_panel_background_image() { 363 | this.panel.add_style_class_name('panel-background-image-transparency'); 364 | } 365 | 366 | /** 367 | * Removes the style class 'panel-background-image-transparency' and enables the stock CSS preventing this extension's transitions. 368 | * 369 | */ 370 | reapply_panel_background_image() { 371 | this.panel.remove_style_class_name('panel-background-image-transparency'); 372 | } 373 | 374 | /** 375 | * Writes CSS data to a file and loads the stylesheet into the Shell. 376 | * 377 | * @param {string} css - CSS data. 378 | * @param {string} name - Name of the intended CSS stylesheet. 379 | * 380 | * @returns {string} Filename of the stylesheet. 381 | */ 382 | apply_stylesheet_css(css, name) { 383 | const Me = extensionUtils.getCurrentExtension(); 384 | 385 | let file_name = GLib.build_filenamev([ 386 | GLib.get_user_data_dir(), 387 | 'gnome-shell', 388 | 'extensions', 389 | Me.uuid, 390 | 'styles', 391 | name + '.dpt.css', 392 | ]); 393 | 394 | /* Write to the file. */ 395 | if (!Util.write_to_file(file_name, css)) { 396 | log(`[Dynamic Panel Transparency] Could not access: ${file_name}`); 397 | log('[Dynamic Panel Transparency] The extension will not until access is granted.'); 398 | return null; 399 | } 400 | 401 | let theme = St.ThemeContext.get_for_stage(global.stage).get_theme(); 402 | 403 | if (theme.load_stylesheet(Util.get_file(file_name))) { 404 | this.stylesheets.push(file_name); 405 | } else { 406 | log(`[Dynamic Panel Transparency] Error Loading Temporary Stylesheet: ${name}`); 407 | return null; 408 | } 409 | 410 | return file_name; 411 | } 412 | 413 | initialize_background_styles() { 414 | const { settings } = this.extension; 415 | 416 | this.panel.add_style_class_name('dpt'); 417 | 418 | this.register_background_color(settings.get_panel_color(), 'custom'); 419 | this.register_background_color({ 420 | red: 0, 421 | green: 0, 422 | blue: 0, 423 | }); 424 | } 425 | 426 | cleanup_background_styles() { 427 | this.panel.remove_style_class_name('dpt'); 428 | 429 | this.remove_background_color(); 430 | } 431 | 432 | register_background_style(style) { 433 | if (this.background_styles.indexOf(style) === -1) { 434 | this.background_styles.push(style); 435 | } 436 | } 437 | 438 | register_background_color(bg_color, prefix) { 439 | let suffix = prefix ? '-' + prefix : ''; 440 | 441 | if (prefix) { 442 | prefix = `-${prefix}-`; 443 | } else { 444 | prefix = '-'; 445 | } 446 | 447 | const maximized_opacity = Util.clamp( 448 | this.get_maximized_opacity() / SCALE_FACTOR, 449 | 0, 450 | 1 451 | ).toFixed(2); 452 | const unmaximized_opacity = Util.clamp( 453 | this.get_unmaximized_opacity() / SCALE_FACTOR, 454 | 0, 455 | 1 456 | ).toFixed(2); 457 | 458 | const rgb = [bg_color.red, bg_color.green, bg_color.blue].join(', '); 459 | const maximized_bg_color_css = `rgba(${rgb}, ${maximized_opacity})`; 460 | const unmaximized_bg_color_css = `rgba(${rgb}, ${unmaximized_opacity})`; 461 | const maximized_corner_color_css = `rgb(${rgb})`; 462 | const unmaximized_corner_color_css = `rgb(${rgb})`; 463 | 464 | this.register_background_style('dpt-panel' + prefix + 'maximized'); 465 | this.register_background_style('dpt-panel' + prefix + 'unmaximized'); 466 | 467 | const file_prefix = 'background/panel'; 468 | 469 | const panel = this.apply_stylesheet_css( 470 | ` 471 | .dpt-panel${prefix}unmaximized { 472 | background-color: ${unmaximized_bg_color_css}; 473 | } 474 | 475 | .dpt.dpt-panel${prefix}unmaximized .panel-corner { 476 | -panel-corner-background-color: ${unmaximized_corner_color_css}; 477 | -panel-corner-opacity: ${unmaximized_opacity}; 478 | } 479 | 480 | .dpt-panel${prefix}maximized { 481 | background-color: ${maximized_bg_color_css}; 482 | } 483 | 484 | .dpt.dpt-panel${prefix}maximized .panel-corner { 485 | -panel-corner-background-color: ${maximized_corner_color_css}; 486 | -panel-corner-opacity: ${maximized_opacity}; 487 | }`, 488 | file_prefix + suffix 489 | ); 490 | 491 | return panel; 492 | } 493 | 494 | set_unmaximized_background_color(prefix) { 495 | if (prefix) { 496 | prefix = '-' + prefix + '-'; 497 | } else { 498 | prefix = '-'; 499 | } 500 | 501 | this.panel.add_style_class_name(`dpt-panel${prefix}unmaximized`); 502 | } 503 | 504 | set_maximized_background_color(prefix) { 505 | if (prefix) { 506 | prefix = `-${prefix}-`; 507 | } else { 508 | prefix = '-'; 509 | } 510 | 511 | this.panel.add_style_class_name(`dpt-panel${prefix}maximized`); 512 | } 513 | 514 | remove_unmaximized_background_color(prefix) { 515 | if (prefix) { 516 | prefix = '-' + prefix + '-'; 517 | } else { 518 | prefix = '-'; 519 | } 520 | 521 | this.panel.remove_style_class_name(`dpt-panel${prefix}unmaximized`); 522 | } 523 | 524 | remove_maximized_background_color(prefix) { 525 | if (prefix) { 526 | prefix = `-${prefix}-`; 527 | } else { 528 | prefix = '-'; 529 | } 530 | 531 | this.panel.remove_style_class_name(`dpt-panel${prefix}maximized`); 532 | } 533 | 534 | remove_background_color() { 535 | this.remove_unmaximized_background_color('custom'); 536 | this.remove_unmaximized_background_color(); 537 | 538 | this.remove_maximized_background_color('custom'); 539 | this.remove_maximized_background_color(); 540 | } 541 | 542 | update_transition_css() { 543 | const { settings } = this.extension; 544 | 545 | const duration_css = settings.get_transition_speed(); 546 | 547 | const stylesheet = this.apply_stylesheet_css( 548 | `.dpt-panel-transition-duration { 549 | transition-duration: ${duration_css}ms; 550 | }`, 551 | 'transitions/panel-transition-duration' 552 | ); 553 | 554 | this.panel.add_style_class_name('dpt-panel-transition-duration'); 555 | 556 | this.register_style('dpt-panel-transition-duration'); 557 | 558 | return stylesheet; 559 | } 560 | } 561 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/timers.js: -------------------------------------------------------------------------------- 1 | const Mainloop = imports.mainloop; 2 | 3 | let removed = new Set(); 4 | 5 | /** 6 | * @param {(...args: any[]) => any} handler 7 | * @param {number} ms 8 | * @returns {number} 9 | */ 10 | export function setTimeout(handler, ms, ...args) { 11 | let id = Mainloop.timeout_add(ms, () => { 12 | if (removed.has(id)) { 13 | return true; 14 | } 15 | 16 | handler?.(...args); 17 | return false; 18 | }); 19 | 20 | removed.delete(id); 21 | 22 | return id; 23 | } 24 | 25 | /** 26 | * @param {(...args: any[]) => any} handler 27 | * @param {number} ms 28 | * @returns {number} 29 | */ 30 | export function setInterval(handler, ms, ...args) { 31 | let id = Mainloop.timeout_add(ms, () => { 32 | if (removed.has(id)) { 33 | return true; 34 | } 35 | 36 | handler?.(...args); 37 | return true; 38 | }); 39 | 40 | removed.delete(id); 41 | 42 | return id; 43 | } 44 | 45 | /** 46 | * @param {number} id 47 | */ 48 | export function clearTimeout(id) { 49 | removed.add(id); 50 | Mainloop.source_remove(id); 51 | } 52 | 53 | /** 54 | * @param {number} id 55 | */ 56 | export function clearInterval(id) { 57 | removed.add(id); 58 | Mainloop.source_remove(id); 59 | } 60 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/transitions.js: -------------------------------------------------------------------------------- 1 | class TransparencyStatus { 2 | constructor() { 3 | this.transparent = false; 4 | this.blank = false; 5 | } 6 | 7 | is_transparent() { 8 | return this.transparent; 9 | } 10 | 11 | is_blank() { 12 | return this.blank; 13 | } 14 | 15 | set_transparent(transparent) { 16 | this.transparent = transparent; 17 | } 18 | 19 | set_blank(blank) { 20 | this.blank = blank; 21 | } 22 | } 23 | 24 | export class Transitions { 25 | /** 26 | * @param {import('./main.js').DptExtension} extension 27 | */ 28 | constructor(extension) { 29 | this.extension = extension; 30 | /* Objects to track where the transparency is and where it's going. */ 31 | this.status = new TransparencyStatus(); 32 | } 33 | 34 | /** 35 | * Freeup any held assets on disable. 36 | * 37 | */ 38 | cleanup() { 39 | this.status = null; 40 | } 41 | 42 | /** 43 | * Get the current status of the panel's transparency. 44 | * 45 | * @returns {Object} Current transparency. @see TransparencyStatus 46 | */ 47 | get_transparency_status() { 48 | return this.status; 49 | } 50 | 51 | /** 52 | * Get any animation that the panel is currently doing. 53 | * DEPRECATED. 54 | * 55 | * @returns {Object} Current animation status. @see AnimationStatus 56 | */ 57 | get_animation_status() { 58 | return { destination: null, action: null }; 59 | } 60 | 61 | /** 62 | * Fades the panel into the unmaximized (minimum) alpha. Used for closing the overview. 63 | * 64 | */ 65 | minimum_fade_in() { 66 | /* The CSS backend doesn't need different starting/ending values */ 67 | this.fade_out(); 68 | } 69 | 70 | /** 71 | * Fades the panel into the nmaximized (maximum) alpha. 72 | * 73 | */ 74 | fade_in() { 75 | const { theming, settings } = this.extension; 76 | 77 | if (settings.enable_custom_background_color()) { 78 | theming.set_maximized_background_color('custom'); 79 | 80 | theming.remove_unmaximized_background_color(); 81 | theming.remove_unmaximized_background_color('custom'); 82 | } else { 83 | theming.set_maximized_background_color(); 84 | 85 | theming.remove_unmaximized_background_color(); 86 | theming.remove_unmaximized_background_color('custom'); 87 | } 88 | 89 | if (!settings.remove_panel_styling()) { 90 | theming.reapply_panel_styling(); 91 | theming.reapply_panel_background_image(); 92 | } 93 | 94 | theming.remove_panel_transparency(); 95 | 96 | this.status.set_transparent(false); 97 | this.status.set_blank(false); 98 | } 99 | 100 | /** 101 | * Fades the panel into the unmaximized (minimum) alpha. 102 | * 103 | */ 104 | fade_out() { 105 | const { theming, settings } = this.extension; 106 | 107 | theming.strip_panel_background_image(); 108 | theming.strip_panel_styling(); 109 | 110 | if (settings.enable_custom_background_color()) { 111 | theming.set_unmaximized_background_color('custom'); 112 | 113 | theming.remove_maximized_background_color(); 114 | theming.remove_maximized_background_color('custom'); 115 | } else { 116 | theming.set_unmaximized_background_color(); 117 | 118 | theming.remove_maximized_background_color(); 119 | theming.remove_maximized_background_color('custom'); 120 | } 121 | 122 | theming.remove_panel_transparency(); 123 | 124 | /* Keep the status up to date */ 125 | this.status.set_transparent(true); 126 | this.status.set_blank(false); 127 | } 128 | 129 | /** 130 | * Fades the panel's alpha to 0. Used for opening the overview & displaying the screenShield. 131 | * 132 | */ 133 | blank_fade_out() { 134 | const { theming } = this.extension; 135 | 136 | this.status.set_transparent(true); 137 | this.status.set_blank(true); 138 | 139 | /* Completely remove every possible background style... */ 140 | theming.remove_background_color(); 141 | 142 | theming.strip_panel_background_image(); 143 | theming.strip_panel_styling(); 144 | 145 | theming.apply_panel_transparency(); 146 | } 147 | } 148 | -------------------------------------------------------------------------------- /dynamic-panel-transparency@rockon999.github.io/util.js: -------------------------------------------------------------------------------- 1 | import GLib from 'gi://GLib'; 2 | import Gio from 'gi://Gio'; 3 | import { Config } from './shell.js'; 4 | 5 | /* This import can't be a constant as it requires lazy initialization. */ 6 | let Meta = null; 7 | 8 | /* Gnome Versioning */ 9 | const MAJOR_VERSION = Number.parseInt(Config.PACKAGE_VERSION.split('.')[0], 10); 10 | const MINOR_VERSION = Number.parseInt(Config.PACKAGE_VERSION.split('.')[1], 10); 11 | 12 | /* Permission setting for created files. */ 13 | const PERMISSIONS_MODE = Number.parseInt('0744', 8); 14 | 15 | /* Utility Variable Access */ 16 | 17 | /** 18 | * Returns the current shell version. 19 | * 20 | * @returns {Object} The current shell version. 21 | * 22 | */ 23 | function get_shell_version() { 24 | return { major: MAJOR_VERSION, minor: MINOR_VERSION }; 25 | } 26 | 27 | /* Utility Functions */ 28 | 29 | /** 30 | * Evaluates parameter 'value' and returns either 'value' or 'min'/'max' if 'value' is outside of the range. 31 | * 32 | * @param {Number} value - Test value. 33 | * @param {Number} min - Minimum value. 34 | * @param {Number} max - Maximum value. 35 | * 36 | * @returns {Number} 'value' or the minimum or maximum. 37 | * 38 | */ 39 | function clamp(value, min, max) { 40 | return Math.min(Math.max(value, min), max); 41 | } 42 | 43 | /** 44 | * Determines if 'window' is a valid window to watch. 45 | * Will not work outside the extension code. 46 | * 47 | * @param {Object} window - Window to check. 48 | * 49 | * @returns {Boolean} Whether 'window' is a valid window to watch. 50 | * 51 | */ 52 | function is_valid(window) { 53 | if (!Meta) { 54 | Meta = imports.gi.Meta; 55 | } 56 | 57 | let windowTypes = [ 58 | Meta.WindowType.NORMAL, 59 | Meta.WindowType.DIALOG, 60 | Meta.WindowType.MODAL_DIALOG, 61 | Meta.WindowType.TOOLBAR, 62 | Meta.WindowType.MENU, 63 | Meta.WindowType.UTILITY, 64 | ]; 65 | 66 | let type = window.get_window_type(); 67 | 68 | return windowTypes.indexOf(type) !== -1; 69 | } 70 | 71 | /** 72 | * Retrieves the GFile for a file path. 73 | * 74 | * @param {string} file_path - Path for a file. 75 | * 76 | * @returns {Object} GFile for the path or null if the path is not valid. 77 | * 78 | */ 79 | function get_file(file_path) { 80 | try { 81 | return Gio.file_new_for_path(file_path); 82 | } catch (error) { 83 | log('[Dynamic Panel Transparency] Error getting file: ' + error); 84 | } 85 | 86 | return null; 87 | } 88 | 89 | /** 90 | * Write the given string to a file path; creating the necessary files and directories. 91 | * 92 | * @param {string} file_path - Path for a file. 93 | * @param {string} text - Text to write to the file. 94 | * 95 | * @returns {Boolean} Whether the file write was a success. 96 | * 97 | */ 98 | function write_to_file(file_path, text) { 99 | try { 100 | let file = get_file(file_path); 101 | let parent = file.get_parent(); 102 | 103 | if (GLib.mkdir_with_parents(parent.get_path(), PERMISSIONS_MODE) === 0) { 104 | let success = file.replace_contents( 105 | text, 106 | null, 107 | false, 108 | Gio.FileCreateFlags.REPLACE_DESTINATION, 109 | null 110 | ); 111 | return success[0]; 112 | } 113 | } catch (error) { 114 | log('[Dynamic Panel Transparency] Error writing to file: ' + file_path); 115 | log(error); 116 | } 117 | 118 | return false; 119 | } 120 | 121 | /** 122 | * Deletes the given file_path. 123 | * 124 | * @param {string} file_path - Path for a file. 125 | * 126 | * @returns {Boolean} Whether the file deletion was a success. 127 | * 128 | */ 129 | function remove_file(file_path) { 130 | try { 131 | let file = get_file(file_path); 132 | let result = file.delete(null); 133 | return result; 134 | } catch (error) { 135 | log('[Dynamic Panel Transparency] Error removing file: ' + file_path); 136 | log(error); 137 | } 138 | 139 | return false; 140 | } 141 | 142 | /** 143 | * Converts a ClutterColor into a JS/CSS color object. 144 | * 145 | * @param {Object} color - ClutterColor to convert. 146 | * @param {Boolean} [alpha = false] - Whether to transfer the alpha value. 147 | * 148 | * @returns {Object} Converted RGB(A) color. 149 | * 150 | */ 151 | function clutter_to_native_color(color, alpha = false) { 152 | let output = { red: color.red, green: color.green, blue: color.blue }; 153 | if (alpha) { 154 | output.alpha = color.alpha; 155 | } 156 | return output; 157 | } 158 | 159 | /** 160 | * Converts a tuple from a GVariant (typically) into a JS/CSS color object. 161 | * 162 | * @param {[number, number, number] | [number, number, number, number]} tuple - Tuple to convert. 163 | * 164 | * @returns {import('./theming.js').Color} Converted RGB(A) color. 165 | * 166 | */ 167 | function tuple_to_native_color(tuple) { 168 | let color = { red: tuple[0], green: tuple[1], blue: tuple[2] }; 169 | if (tuple.length === 4) { 170 | color.alpha = tuple[3]; 171 | } 172 | return color; 173 | } 174 | 175 | /** 176 | * Compares two colors for equivalency. 177 | * 178 | * @param {Object} a - First color. 179 | * @param {Object} a - Second color. 180 | * @param {Boolean} [alpha = false] - Whether to check the alpha value. 181 | * 182 | * @returns {Boolean} Whether the two colors are equal. 183 | * 184 | */ 185 | function match_colors(a, b, alpha = false) { 186 | let result = a.red === b.red; 187 | result = result && a.green === b.green; 188 | result = result && a.blue === b.blue; 189 | if (alpha) { 190 | result = result && a.alpha === b.alpha; 191 | } 192 | return result; 193 | } 194 | 195 | /** 196 | * Freezes an Object's and its children. 197 | * 198 | * @param {Object} type - Object to freeze. 199 | * @param {Boolean} [recursive = false] - Whether to recursively traverse the object's children. 200 | * 201 | */ 202 | function deep_freeze(type, recursive = false) { 203 | const freeze_children = function (obj) { 204 | Object.keys(obj).forEach(function (value, index, arr) { 205 | if (typeof value === 'object' && !Object.isFrozen(value)) { 206 | Object.freeze(value); 207 | if (recursive) { 208 | freeze_children(value); 209 | } 210 | } 211 | }); 212 | }; 213 | 214 | Object.freeze(type); 215 | freeze_children(type); 216 | } 217 | 218 | export { 219 | get_shell_version, 220 | clamp, 221 | is_valid, 222 | match_colors, 223 | remove_file, 224 | get_file, 225 | write_to_file, 226 | clutter_to_native_color, 227 | tuple_to_native_color, 228 | deep_freeze, 229 | }; 230 | -------------------------------------------------------------------------------- /imports.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'gi://Shell' { 2 | export * from '@gi-types/shell0'; 3 | } 4 | 5 | declare module 'gi://St' { 6 | export * from '@gi-types/st1'; 7 | } 8 | 9 | declare module 'gi://Meta' { 10 | export * from '@gi-types/meta8'; 11 | } 12 | 13 | declare module 'gi://GLib' { 14 | export * from '@gi-types/glib2'; 15 | } 16 | 17 | declare module 'gi://Gio' { 18 | export * from '@gi-types/gio2'; 19 | } 20 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es2019", 4 | "lib": [ 5 | "es2019" 6 | ], 7 | "module": "ES2020", 8 | "moduleResolution": "node", 9 | "checkJs": true, 10 | "types": [ 11 | "@gi-types/gjs-environment" 12 | ], 13 | "allowSyntheticDefaultImports": true 14 | }, 15 | "include": [ 16 | "./dynamic-panel-transparency@rockon999.github.io/*.js", 17 | "./shell.d.ts", 18 | "./imports.d.ts" 19 | ] 20 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "@gi-types/gjs-environment": "^1.0.0", 4 | "@gi-types/shell0": "^0.1.0", 5 | "typescript": "^4.4.4" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /shell.d.ts: -------------------------------------------------------------------------------- 1 | import * as Shell from '@gi-types/shell0'; 2 | import * as Clutter from '@gi-types/clutter8'; 3 | 4 | declare namespace GnomeShell { 5 | interface Global extends Shell.Global { 6 | stage: Clutter.Stage; 7 | } 8 | } 9 | 10 | declare global { 11 | const global: GnomeShell; 12 | } 13 | -------------------------------------------------------------------------------- /update-translations: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd dynamic-panel-transparency@rockon999.github.io 4 | 5 | xgettext -k_ -kN_ -o dynamic-panel-transparency.pot prefs.js prefs.ui 6 | 7 | cd locale 8 | 9 | for subdir in */ ; do 10 | msgmerge -U "$subdir/LC_MESSAGES/dynamic-panel-transparency.po" "../dynamic-panel-transparency.pot" 11 | msgfmt "$subdir/LC_MESSAGES/dynamic-panel-transparency.po" -o "$subdir/LC_MESSAGES/dynamic-panel-transparency.mo" 12 | done 13 | 14 | cd .. 15 | cd .. 16 | 17 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@gi-types/atk1@^2.36.0": 6 | version "2.36.0" 7 | resolved "https://registry.yarnpkg.com/@gi-types/atk1/-/atk1-2.36.0.tgz#24bbd25e11a8c7465349af040350f86af46c3ecb" 8 | integrity sha512-lCuoaJwqFDV+V+sf4mOcciLCJitiUsGNg/W2Q5Y+21FycPZqlsjgXb0pimo7gLdq11d1lEfHffh3AkY80+7SHw== 9 | dependencies: 10 | "@gi-types/glib2" "^2.68.0" 11 | "@gi-types/gobject2" "^2.68.0" 12 | 13 | "@gi-types/cairo1@^1.0.0": 14 | version "1.0.0" 15 | resolved "https://registry.yarnpkg.com/@gi-types/cairo1/-/cairo1-1.0.0.tgz#50eca301ca38a88491a2659be8c344613c2fab8a" 16 | integrity sha512-EURdj33wnPbspWDOyHc2yNmzqnUaDJ+ix6paIooffuPyOKLer+M/+eBFcou6X3j8o6CZvH4D/dguoi3gNzsTQw== 17 | dependencies: 18 | "@gi-types/gobject2" "^2.68.0" 19 | 20 | "@gi-types/cally8@^8.0.0": 21 | version "8.0.0" 22 | resolved "https://registry.yarnpkg.com/@gi-types/cally8/-/cally8-8.0.0.tgz#a41182f31b79dfcca9a98dbe647da79a0d935865" 23 | integrity sha512-HRopQhj9JJtNdNepyVa+UfXgVj6MqJC/4Gl3AbVfPUJtoWegi6G7mUGL8LJO9897+tLaJkgtQ7+LKUwsgNOjaw== 24 | dependencies: 25 | "@gi-types/atk1" "^2.36.0" 26 | "@gi-types/clutter8" "^8.0.0" 27 | "@gi-types/gobject2" "^2.68.0" 28 | 29 | "@gi-types/clutter8@^8.0.0": 30 | version "8.0.0" 31 | resolved "https://registry.yarnpkg.com/@gi-types/clutter8/-/clutter8-8.0.0.tgz#6186cead54923197a495395e916e4f8fd874c01e" 32 | integrity sha512-hKTNjn1j5gxc/iNkiIPbsh0uE9COC6qPIpG7yzAsr7/khSil8hIJKYvBtNOu1BAnSe7D8gTCKjqgXBqyoFSHkw== 33 | dependencies: 34 | "@gi-types/atk1" "^2.36.0" 35 | "@gi-types/cairo1" "^1.0.0" 36 | "@gi-types/cogl8" "^8.0.0" 37 | "@gi-types/gio2" "^2.68.0" 38 | "@gi-types/glib2" "^2.68.0" 39 | "@gi-types/gobject2" "^2.68.0" 40 | "@gi-types/graphene1" "^1.0.0" 41 | "@gi-types/json1" "^1.6.0" 42 | "@gi-types/pango1" "^1.0.0" 43 | 44 | "@gi-types/cogl8@^8.0.0": 45 | version "8.0.0" 46 | resolved "https://registry.yarnpkg.com/@gi-types/cogl8/-/cogl8-8.0.0.tgz#3e667310f2063021dd82e84bcffe2bce9ae0e403" 47 | integrity sha512-MsKbP3DjRhbbY+jLCbjd7B8wycMwGkNbopStVkIW9EVkJouy2VdIShLFD44WW51GugdE4+JAeW3iQ2H9rtp5WQ== 48 | dependencies: 49 | "@gi-types/cairo1" "^1.0.0" 50 | "@gi-types/glib2" "^2.68.0" 51 | "@gi-types/gobject2" "^2.68.0" 52 | "@gi-types/graphene1" "^1.0.0" 53 | 54 | "@gi-types/gck1@^1.0.0": 55 | version "1.0.0" 56 | resolved "https://registry.yarnpkg.com/@gi-types/gck1/-/gck1-1.0.0.tgz#8022f52224464266badf356413e8c6b9c99d7cd2" 57 | integrity sha512-MZOJt+9AFiMCAcvi4aIwLCJxqpUrVQTjnLfncK5+52q6Tap6Pw5nMj5RVg5ks6BGL9F2I4BO4689m/TqYlJ8QA== 58 | dependencies: 59 | "@gi-types/gio2" "^2.68.0" 60 | "@gi-types/glib2" "^2.68.0" 61 | "@gi-types/gobject2" "^2.68.0" 62 | 63 | "@gi-types/gcr3@^3.40.0": 64 | version "3.40.0" 65 | resolved "https://registry.yarnpkg.com/@gi-types/gcr3/-/gcr3-3.40.0.tgz#e50ba6e6c9449dca06ba04ca3e5da4e277ce2785" 66 | integrity sha512-bgEq++sDcq+8VHFcURCX983/8ifANy9T5LawOiXrN5VVgul7UtO9E+17D1ffiVgQvl2vk13yedN3oboouVG7lg== 67 | dependencies: 68 | "@gi-types/gck1" "^1.0.0" 69 | "@gi-types/gio2" "^2.68.0" 70 | "@gi-types/glib2" "^2.68.0" 71 | "@gi-types/gobject2" "^2.68.0" 72 | 73 | "@gi-types/gdesktopenums3@^3.0.0": 74 | version "3.0.0" 75 | resolved "https://registry.yarnpkg.com/@gi-types/gdesktopenums3/-/gdesktopenums3-3.0.0.tgz#ae7f9748734879adb2dbf95cb69b174ce5ceacc0" 76 | integrity sha512-++nr84oT0UU5SQTBGkAkJO+SKGOYkav2p87J3zKM3Ksr1Obrt6C1lMOgnCBv9LaxA8KQKQyH1a8diZV8eYssYQ== 77 | dependencies: 78 | "@gi-types/gobject2" "^2.68.0" 79 | 80 | "@gi-types/gdk3@^3.24.0": 81 | version "3.24.0" 82 | resolved "https://registry.yarnpkg.com/@gi-types/gdk3/-/gdk3-3.24.0.tgz#dac22e08482956c57d60a8ca8d93984a4e2cfe9b" 83 | integrity sha512-Cp15QJwepyn9xRtzZDDmyF89VpXdxePTa9GeSE5C1iPH9QFQXxHMs37RCCAjgq3pgGbc3v6AkjLsleYGv0LYwg== 84 | dependencies: 85 | "@gi-types/cairo1" "^1.0.0" 86 | "@gi-types/gdkpixbuf2" "^2.0.0" 87 | "@gi-types/gio2" "^2.68.0" 88 | "@gi-types/glib2" "^2.68.0" 89 | "@gi-types/gobject2" "^2.68.0" 90 | "@gi-types/pango1" "^1.0.0" 91 | 92 | "@gi-types/gdkpixbuf2@^2.0.0": 93 | version "2.0.0" 94 | resolved "https://registry.yarnpkg.com/@gi-types/gdkpixbuf2/-/gdkpixbuf2-2.0.0.tgz#90d0298d215220b272f7d4c53cbae9ca125efd59" 95 | integrity sha512-8oSX5p09U1JwoNvo8s+OPTsUn6n4K7lkKVa8LC12VxL1z9csI63zmQ4LVHmL54+PQDkVjZGM/zNnV0aHerO2Tw== 96 | dependencies: 97 | "@gi-types/gio2" "^2.68.0" 98 | "@gi-types/glib2" "^2.68.0" 99 | "@gi-types/gmodule2" "^2.0.0" 100 | "@gi-types/gobject2" "^2.68.0" 101 | 102 | "@gi-types/gio2@^2.68.0": 103 | version "2.68.0" 104 | resolved "https://registry.yarnpkg.com/@gi-types/gio2/-/gio2-2.68.0.tgz#45c35975c0a85e257b492e156cf2c82eb6dd2ad5" 105 | integrity sha512-VEjaLR96r9HOqf9YfVN4tAVeCAIqccoOz2KUJyqj3Ha/GABBilEucJUr7VK7t2Vogtlp7VyqdSa2AilORqPg1A== 106 | dependencies: 107 | "@gi-types/glib2" "^2.68.0" 108 | "@gi-types/gobject2" "^2.68.0" 109 | 110 | "@gi-types/gjs-environment@^1.0.0": 111 | version "1.0.0" 112 | resolved "https://registry.yarnpkg.com/@gi-types/gjs-environment/-/gjs-environment-1.0.0.tgz#201d55e32dbba8d6f6bd76808e129d574200a471" 113 | integrity sha512-UD4cGWT5rgYormf+P5cd/Wqk3VsAKNuclCPtXXSuglpGkwKdJp0hcxz3Ohpwe0+9rOG0xs6sNAJgtpR/uwk4NA== 114 | dependencies: 115 | "@gi-types/gio2" "^2.68.0" 116 | "@gi-types/glib2" "^2.68.0" 117 | "@gi-types/gobject2" "^2.68.0" 118 | 119 | "@gi-types/glib2@^2.68.0": 120 | version "2.68.0" 121 | resolved "https://registry.yarnpkg.com/@gi-types/glib2/-/glib2-2.68.0.tgz#9cbb46eec42a21058823c29237ac81a676f8bc95" 122 | integrity sha512-xm0VaFsL3YbjmwgiWFMX/yX/nxKu1xXsSY7pnHL7T5bQcb28oNCfWBH1Rhlx6wjL7DR2mQjX5owbaA5ZXUFLHQ== 123 | dependencies: 124 | "@gi-types/gobject2" "^2.68.0" 125 | 126 | "@gi-types/gmodule2@^2.0.0": 127 | version "2.0.0" 128 | resolved "https://registry.yarnpkg.com/@gi-types/gmodule2/-/gmodule2-2.0.0.tgz#ac6b7fe22fef804b2762e371e7129ca5994edf44" 129 | integrity sha512-Wnn3CImVWdJbAU2dqeCa7ieFEtxhcCyZVR2d6QHOrFngKBZqDnUqw35mv9mUjp48D5B3kS1QuCszvUZ8VSeHcA== 130 | dependencies: 131 | "@gi-types/gobject2" "^2.68.0" 132 | 133 | "@gi-types/gobject2@^2.68.0": 134 | version "2.68.0" 135 | resolved "https://registry.yarnpkg.com/@gi-types/gobject2/-/gobject2-2.68.0.tgz#d19ed29a41309c8c300572e94b317c329af1c323" 136 | integrity sha512-Ka/vZnb+VLg68eNJ6rnkU6qjqupnpPjq8JFmJsdUsMyZPV9WTG7YOKiAZBQ3BfSO5LsiDdAyVWfU7OHu//So0Q== 137 | dependencies: 138 | "@gi-types/glib2" "^2.68.0" 139 | 140 | "@gi-types/graphene1@^1.0.0": 141 | version "1.0.0" 142 | resolved "https://registry.yarnpkg.com/@gi-types/graphene1/-/graphene1-1.0.0.tgz#5db7be8abb11c8b33b12366aa05c05116c72f680" 143 | integrity sha512-C3vM6xLBc/P4yMCVYQDtW04OaLrbesXDR+TN5XQuwWXOchDJIky3cSCOdBw8ZdWHFELz8WRc0yEAIQTqCKVEnQ== 144 | dependencies: 145 | "@gi-types/gobject2" "^2.68.0" 146 | 147 | "@gi-types/gtk3@^3.24.0": 148 | version "3.24.0" 149 | resolved "https://registry.yarnpkg.com/@gi-types/gtk3/-/gtk3-3.24.0.tgz#926acf7f4fda487052eb620e06034d71cefa2f42" 150 | integrity sha512-D3EKqE+hcltQAGrFGry2X4zaLUYwCMr/7mym6oq78mF5hM2DSoUnDA9qfTYLImqQ//8fs9rBe4HPSXeYcHoNLg== 151 | dependencies: 152 | "@gi-types/atk1" "^2.36.0" 153 | "@gi-types/cairo1" "^1.0.0" 154 | "@gi-types/gdk3" "^3.24.0" 155 | "@gi-types/gdkpixbuf2" "^2.0.0" 156 | "@gi-types/gio2" "^2.68.0" 157 | "@gi-types/glib2" "^2.68.0" 158 | "@gi-types/gobject2" "^2.68.0" 159 | "@gi-types/pango1" "^1.0.0" 160 | "@gi-types/xlib2" "^2.0.0" 161 | 162 | "@gi-types/harfbuzz2@^2.8.1": 163 | version "2.8.1" 164 | resolved "https://registry.yarnpkg.com/@gi-types/harfbuzz2/-/harfbuzz2-2.8.1.tgz#757301194a7408afcd386c1de13b4061411116a1" 165 | integrity sha512-XeobP2BuLuF5xyxCd2WqxlnUSqhwFED3mJQ7JTcWvKd59BR0tWK1Qd+v7OOcYHdUFYS2Y1+EibfhR7hOH7TZCA== 166 | dependencies: 167 | "@gi-types/glib2" "^2.68.0" 168 | "@gi-types/gobject2" "^2.68.0" 169 | 170 | "@gi-types/json1@^1.6.0": 171 | version "1.6.0" 172 | resolved "https://registry.yarnpkg.com/@gi-types/json1/-/json1-1.6.0.tgz#d4468d3bf222243d2b870ce5aba58f20c7c50115" 173 | integrity sha512-qqnqOb+lAkVs0BGAFolAd8SP2NBu0gnaSzECjzWxsjK5VLxd5uYDv6ChDjTW8bhgLWJ9vtG3HQAvsd0O6kU4XQ== 174 | dependencies: 175 | "@gi-types/gio2" "^2.68.0" 176 | "@gi-types/glib2" "^2.68.0" 177 | "@gi-types/gobject2" "^2.68.0" 178 | 179 | "@gi-types/meta8@^8.0.0": 180 | version "8.0.0" 181 | resolved "https://registry.yarnpkg.com/@gi-types/meta8/-/meta8-8.0.0.tgz#a46b63d4b5325a16c38c9e7d500695ec2e7bd135" 182 | integrity sha512-YNqE3BXmpG4N/yQMAt7z2W7mODiDG3dgki0MeGBCVh65uTpYS2E6hVwqlAk9K8B0zSSxy4IiSG9bAu5znkJ60A== 183 | dependencies: 184 | "@gi-types/atk1" "^2.36.0" 185 | "@gi-types/cairo1" "^1.0.0" 186 | "@gi-types/clutter8" "^8.0.0" 187 | "@gi-types/cogl8" "^8.0.0" 188 | "@gi-types/gdesktopenums3" "^3.0.0" 189 | "@gi-types/gio2" "^2.68.0" 190 | "@gi-types/glib2" "^2.68.0" 191 | "@gi-types/gobject2" "^2.68.0" 192 | "@gi-types/graphene1" "^1.0.0" 193 | "@gi-types/gtk3" "^3.24.0" 194 | "@gi-types/json1" "^1.6.0" 195 | "@gi-types/pango1" "^1.0.0" 196 | "@gi-types/xfixes4" "^4.0.0" 197 | "@gi-types/xlib2" "^2.0.0" 198 | 199 | "@gi-types/nm1@^1.32.0": 200 | version "1.32.0" 201 | resolved "https://registry.yarnpkg.com/@gi-types/nm1/-/nm1-1.32.0.tgz#aa44279f175ba90e58179f7cc36693676a22a809" 202 | integrity sha512-TPF9iVP2eZR+z0hw1vFvl7ae7hmPE04mpLaoEYfpH65wW/3ldZ8G72AryKu86zMQ99BEwGU7aplA3gCfPFGI0w== 203 | dependencies: 204 | "@gi-types/gio2" "^2.68.0" 205 | "@gi-types/glib2" "^2.68.0" 206 | "@gi-types/gobject2" "^2.68.0" 207 | 208 | "@gi-types/pango1@^1.0.0": 209 | version "1.0.0" 210 | resolved "https://registry.yarnpkg.com/@gi-types/pango1/-/pango1-1.0.0.tgz#51dc46cc97ae24650f23ab591aa12d43f957da9e" 211 | integrity sha512-ZDYC0tW+SNUjrjxGSEIJo8oPLlpz+WwvwRH2d0mTTX3p2SuQNV7rkYjdR0L2uAuD15NBe7mM6wvLcxJ2WZurGg== 212 | dependencies: 213 | "@gi-types/glib2" "^2.68.0" 214 | "@gi-types/gobject2" "^2.68.0" 215 | "@gi-types/harfbuzz2" "^2.8.1" 216 | 217 | "@gi-types/polkit1@^1.0.0": 218 | version "1.0.0" 219 | resolved "https://registry.yarnpkg.com/@gi-types/polkit1/-/polkit1-1.0.0.tgz#1f5ef0a77ab971198827f33b07172e33961921b3" 220 | integrity sha512-2yQ0btuZXU6ajMgUccIrEQSkE9SUNyL3EbbQ0FkpkJIGMl+c531iXlppVXbNVfovNw6lrVuOHQCaPMH7UJoBpA== 221 | dependencies: 222 | "@gi-types/gio2" "^2.68.0" 223 | "@gi-types/glib2" "^2.68.0" 224 | "@gi-types/gobject2" "^2.68.0" 225 | 226 | "@gi-types/polkitagent1@^1.0.0": 227 | version "1.0.0" 228 | resolved "https://registry.yarnpkg.com/@gi-types/polkitagent1/-/polkitagent1-1.0.0.tgz#b875c077f315153a27d4398ff64a74efe0e70c85" 229 | integrity sha512-7dT5BqG9cJk9SEuTnq7BKxa36U20RqFY7udA5OrLuPudrHxIG/fkRAY5+DgVKjVGtp+DO5T2IlYBGDqyQyk3Cg== 230 | dependencies: 231 | "@gi-types/gio2" "^2.68.0" 232 | "@gi-types/glib2" "^2.68.0" 233 | "@gi-types/gobject2" "^2.68.0" 234 | "@gi-types/polkit1" "^1.0.0" 235 | 236 | "@gi-types/shell0@^0.1.0": 237 | version "0.1.0" 238 | resolved "https://registry.yarnpkg.com/@gi-types/shell0/-/shell0-0.1.0.tgz#dfa79b9c81be742b92cad2d647fe3eedd574de4f" 239 | integrity sha512-YoAWAN+Icja2sbR+2jJivofvo9zyRQTHijAZMaFX+neZfCokA5X7f0U3iXH3nFBmMYLJcasRiaOMMOU1k1sX7A== 240 | dependencies: 241 | "@gi-types/atk1" "^2.36.0" 242 | "@gi-types/cairo1" "^1.0.0" 243 | "@gi-types/clutter8" "^8.0.0" 244 | "@gi-types/cogl8" "^8.0.0" 245 | "@gi-types/gcr3" "^3.40.0" 246 | "@gi-types/gdkpixbuf2" "^2.0.0" 247 | "@gi-types/gio2" "^2.68.0" 248 | "@gi-types/glib2" "^2.68.0" 249 | "@gi-types/gobject2" "^2.68.0" 250 | "@gi-types/gtk3" "^3.24.0" 251 | "@gi-types/meta8" "^8.0.0" 252 | "@gi-types/nm1" "^1.32.0" 253 | "@gi-types/polkitagent1" "^1.0.0" 254 | "@gi-types/st1" "^1.0.0" 255 | 256 | "@gi-types/st1@^1.0.0": 257 | version "1.0.0" 258 | resolved "https://registry.yarnpkg.com/@gi-types/st1/-/st1-1.0.0.tgz#e76c6c046d6efb0bf63f27a3304dc2268f584204" 259 | integrity sha512-/61lxOuLfLWVSpjFI6mRNGFfNKf5SbTDIOo1z67e5d7yyUGeqrYlPrFaPm8e0usaA3JolucmPnR6RyXvn2Txlw== 260 | dependencies: 261 | "@gi-types/atk1" "^2.36.0" 262 | "@gi-types/cairo1" "^1.0.0" 263 | "@gi-types/cally8" "^8.0.0" 264 | "@gi-types/clutter8" "^8.0.0" 265 | "@gi-types/cogl8" "^8.0.0" 266 | "@gi-types/gio2" "^2.68.0" 267 | "@gi-types/glib2" "^2.68.0" 268 | "@gi-types/gobject2" "^2.68.0" 269 | "@gi-types/json1" "^1.6.0" 270 | "@gi-types/pango1" "^1.0.0" 271 | 272 | "@gi-types/xfixes4@^4.0.0": 273 | version "4.0.0" 274 | resolved "https://registry.yarnpkg.com/@gi-types/xfixes4/-/xfixes4-4.0.0.tgz#be6ee76d3a48ac1e48433003c3a47b822a8e825f" 275 | integrity sha512-NYIHJ8fP2rawTN7Yhf5HJ1RQBBeiYHJcYXH7GNTkHwChJIThbt1CsEfW8s9x7PzgXm0FIPoEdaRRdWEhhwBWtg== 276 | dependencies: 277 | "@gi-types/gobject2" "^2.68.0" 278 | 279 | "@gi-types/xlib2@^2.0.0": 280 | version "2.0.0" 281 | resolved "https://registry.yarnpkg.com/@gi-types/xlib2/-/xlib2-2.0.0.tgz#1072b392a42266832dc8f329db30e005dce8b024" 282 | integrity sha512-wFeKKC104EUj6h3HsAIBMUSCZYgphZgNARy4NUWfbjLF0Mx+N84PgzAcUgrWsbrxXKappsZ3mqZfPvdtea948A== 283 | dependencies: 284 | "@gi-types/gobject2" "^2.68.0" 285 | 286 | typescript@^4.4.4: 287 | version "4.4.4" 288 | resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c" 289 | integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA== 290 | --------------------------------------------------------------------------------