diff --git a/CHANGELOG.md b/CHANGELOG.md index b45a2be..a7bc205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - issue: Fix quicktree_show_tab() building an invalid `?location=tabtab`/`?location=tabconsole` URL, an undefined-variable text-domain typo in the QuickTree page's "no graph specified" message, and a misspelled `qucktree` text domain - security: Migrate quicktree SQL helpers to prepared statements, normalize location handling, and ensure redirects terminate execution - test: Migrate test suite to Pest with a Cacti-provided test harness and CI workflow +- feature: Give the QuickTree add/remove graph glyphs their own theme-appropriate colors across every packaged Cacti theme, instead of reusing the core deviceUp/deviceDown classes --- 2.0 --- diff --git a/css/classic.css b/css/classic.css new file mode 100644 index 0000000..521cd5b --- /dev/null +++ b/css/classic.css @@ -0,0 +1,32 @@ +/* + +-------------------------------------------------------------------------+ + | Copyright (C) 2010-2022 Howard Jones | + | Copyright (C) 2022-2025 The Cacti Group | + | | + | This program is free software; you can redistribute it and/or | + | modify it under the terms of the GNU General Public License | + | as published by the Free Software Foundation; either version 2 | + | of the License, or (at your option) any later version. | + | | + | This program is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | + | GNU General Public License for more details. | + +-------------------------------------------------------------------------+ + | Cacti: The Complete RRDtool-based Graphing Solution | + +-------------------------------------------------------------------------+ + | This code is designed, written, and maintained by the Cacti Group. See | + | about.php and/or the AUTHORS file for specific developer information. | + +-------------------------------------------------------------------------+ + | http://www.cacti.net/ | + +-------------------------------------------------------------------------+ +*/ + +/* QuickTree graph action glyphs */ +.quicktreeAdd { + color: #2e7d32; +} + +.quicktreeRemove { + color: #c62828; +} diff --git a/css/dark.css b/css/dark.css new file mode 100644 index 0000000..03ac479 --- /dev/null +++ b/css/dark.css @@ -0,0 +1,32 @@ +/* + +-------------------------------------------------------------------------+ + | Copyright (C) 2010-2022 Howard Jones | + | Copyright (C) 2022-2025 The Cacti Group | + | | + | This program is free software; you can redistribute it and/or | + | modify it under the terms of the GNU General Public License | + | as published by the Free Software Foundation; either version 2 | + | of the License, or (at your option) any later version. | + | | + | This program is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | + | GNU General Public License for more details. | + +-------------------------------------------------------------------------+ + | Cacti: The Complete RRDtool-based Graphing Solution | + +-------------------------------------------------------------------------+ + | This code is designed, written, and maintained by the Cacti Group. See | + | about.php and/or the AUTHORS file for specific developer information. | + +-------------------------------------------------------------------------+ + | http://www.cacti.net/ | + +-------------------------------------------------------------------------+ +*/ + +/* QuickTree graph action glyphs */ +.quicktreeAdd { + color: #4caf50; +} + +.quicktreeRemove { + color: #e06666; +} diff --git a/css/midwinter.css b/css/midwinter.css new file mode 100644 index 0000000..03ac479 --- /dev/null +++ b/css/midwinter.css @@ -0,0 +1,32 @@ +/* + +-------------------------------------------------------------------------+ + | Copyright (C) 2010-2022 Howard Jones | + | Copyright (C) 2022-2025 The Cacti Group | + | | + | This program is free software; you can redistribute it and/or | + | modify it under the terms of the GNU General Public License | + | as published by the Free Software Foundation; either version 2 | + | of the License, or (at your option) any later version. | + | | + | This program is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | + | GNU General Public License for more details. | + +-------------------------------------------------------------------------+ + | Cacti: The Complete RRDtool-based Graphing Solution | + +-------------------------------------------------------------------------+ + | This code is designed, written, and maintained by the Cacti Group. See | + | about.php and/or the AUTHORS file for specific developer information. | + +-------------------------------------------------------------------------+ + | http://www.cacti.net/ | + +-------------------------------------------------------------------------+ +*/ + +/* QuickTree graph action glyphs */ +.quicktreeAdd { + color: #4caf50; +} + +.quicktreeRemove { + color: #e06666; +} diff --git a/css/modern.css b/css/modern.css new file mode 100644 index 0000000..521cd5b --- /dev/null +++ b/css/modern.css @@ -0,0 +1,32 @@ +/* + +-------------------------------------------------------------------------+ + | Copyright (C) 2010-2022 Howard Jones | + | Copyright (C) 2022-2025 The Cacti Group | + | | + | This program is free software; you can redistribute it and/or | + | modify it under the terms of the GNU General Public License | + | as published by the Free Software Foundation; either version 2 | + | of the License, or (at your option) any later version. | + | | + | This program is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | + | GNU General Public License for more details. | + +-------------------------------------------------------------------------+ + | Cacti: The Complete RRDtool-based Graphing Solution | + +-------------------------------------------------------------------------+ + | This code is designed, written, and maintained by the Cacti Group. See | + | about.php and/or the AUTHORS file for specific developer information. | + +-------------------------------------------------------------------------+ + | http://www.cacti.net/ | + +-------------------------------------------------------------------------+ +*/ + +/* QuickTree graph action glyphs */ +.quicktreeAdd { + color: #2e7d32; +} + +.quicktreeRemove { + color: #c62828; +} diff --git a/css/paper-plane.css b/css/paper-plane.css new file mode 100644 index 0000000..03ac479 --- /dev/null +++ b/css/paper-plane.css @@ -0,0 +1,32 @@ +/* + +-------------------------------------------------------------------------+ + | Copyright (C) 2010-2022 Howard Jones | + | Copyright (C) 2022-2025 The Cacti Group | + | | + | This program is free software; you can redistribute it and/or | + | modify it under the terms of the GNU General Public License | + | as published by the Free Software Foundation; either version 2 | + | of the License, or (at your option) any later version. | + | | + | This program is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | + | GNU General Public License for more details. | + +-------------------------------------------------------------------------+ + | Cacti: The Complete RRDtool-based Graphing Solution | + +-------------------------------------------------------------------------+ + | This code is designed, written, and maintained by the Cacti Group. See | + | about.php and/or the AUTHORS file for specific developer information. | + +-------------------------------------------------------------------------+ + | http://www.cacti.net/ | + +-------------------------------------------------------------------------+ +*/ + +/* QuickTree graph action glyphs */ +.quicktreeAdd { + color: #4caf50; +} + +.quicktreeRemove { + color: #e06666; +} diff --git a/css/paw.css b/css/paw.css new file mode 100644 index 0000000..521cd5b --- /dev/null +++ b/css/paw.css @@ -0,0 +1,32 @@ +/* + +-------------------------------------------------------------------------+ + | Copyright (C) 2010-2022 Howard Jones | + | Copyright (C) 2022-2025 The Cacti Group | + | | + | This program is free software; you can redistribute it and/or | + | modify it under the terms of the GNU General Public License | + | as published by the Free Software Foundation; either version 2 | + | of the License, or (at your option) any later version. | + | | + | This program is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | + | GNU General Public License for more details. | + +-------------------------------------------------------------------------+ + | Cacti: The Complete RRDtool-based Graphing Solution | + +-------------------------------------------------------------------------+ + | This code is designed, written, and maintained by the Cacti Group. See | + | about.php and/or the AUTHORS file for specific developer information. | + +-------------------------------------------------------------------------+ + | http://www.cacti.net/ | + +-------------------------------------------------------------------------+ +*/ + +/* QuickTree graph action glyphs */ +.quicktreeAdd { + color: #2e7d32; +} + +.quicktreeRemove { + color: #c62828; +} diff --git a/css/quicktree.css b/css/quicktree.css index 19fc19a..3a4037b 100644 --- a/css/quicktree.css +++ b/css/quicktree.css @@ -75,3 +75,13 @@ padding: 20px; } +/* Default QuickTree graph action glyph colors; the per-theme stylesheets in + this directory override these for each packaged Cacti theme. */ +.quicktreeAdd { + color: #2e7d32; +} + +.quicktreeRemove { + color: #c62828; +} + diff --git a/css/sunrise.css b/css/sunrise.css new file mode 100644 index 0000000..03ac479 --- /dev/null +++ b/css/sunrise.css @@ -0,0 +1,32 @@ +/* + +-------------------------------------------------------------------------+ + | Copyright (C) 2010-2022 Howard Jones | + | Copyright (C) 2022-2025 The Cacti Group | + | | + | This program is free software; you can redistribute it and/or | + | modify it under the terms of the GNU General Public License | + | as published by the Free Software Foundation; either version 2 | + | of the License, or (at your option) any later version. | + | | + | This program is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | + | GNU General Public License for more details. | + +-------------------------------------------------------------------------+ + | Cacti: The Complete RRDtool-based Graphing Solution | + +-------------------------------------------------------------------------+ + | This code is designed, written, and maintained by the Cacti Group. See | + | about.php and/or the AUTHORS file for specific developer information. | + +-------------------------------------------------------------------------+ + | http://www.cacti.net/ | + +-------------------------------------------------------------------------+ +*/ + +/* QuickTree graph action glyphs */ +.quicktreeAdd { + color: #4caf50; +} + +.quicktreeRemove { + color: #e06666; +} diff --git a/quicktree.php b/quicktree.php index c56d3b6..7c33a6d 100644 --- a/quicktree.php +++ b/quicktree.php @@ -350,8 +350,8 @@ ['' . __('Save To Branch', 'quicktree') . '', __('Save your selection as a branch to an existing tree so that they appear in a specific section of an existing tree.', 'quicktree')], ['' . __('Clear all graphs', 'quicktree') . '', __('Clear the Graphs on this page from the Graphs Queue so that you have a blank QuickTree ready for new selections', 'quicktree')], ['