[PR #20031] [MERGED] Closes #18006: Dispatch event when toggling color mode & document for plugin use #15802

Closed
opened 2025-12-30 00:24:09 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20031
Author: @jeremystretch
Created: 8/6/2025
Status: Merged
Merged: 8/6/2025
Merged by: @jnovinger

Base: featureHead: 18006-color-mode-event


📝 Commits (1)

  • 059fee5 Closes #18006: Dispatch event when toggling color mode & document for plugin use

📊 Changes

6 files changed (+26 additions, -3 deletions)

View changed files

docs/plugins/development/user-interface.md (+14 -0)
📝 mkdocs.yml (+1 -0)
📝 netbox/project-static/dist/netbox.js (+1 -1)
📝 netbox/project-static/dist/netbox.js.map (+2 -2)
📝 netbox/project-static/src/colorMode.ts (+5 -0)
📝 netbox/project-static/src/global.d.ts (+3 -0)

📄 Description

Closes: #18006

  • Dispatch a custom event netbox.colorModeChanged when the color mode is toggled
  • Document how the color scheme is managed for plugins

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/20031 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/6/2025 **Status:** ✅ Merged **Merged:** 8/6/2025 **Merged by:** [@jnovinger](https://github.com/jnovinger) **Base:** `feature` ← **Head:** `18006-color-mode-event` --- ### 📝 Commits (1) - [`059fee5`](https://github.com/netbox-community/netbox/commit/059fee5f06ee3e78a5fcc5c313c5d17f932a2b4b) Closes #18006: Dispatch event when toggling color mode & document for plugin use ### 📊 Changes **6 files changed** (+26 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `docs/plugins/development/user-interface.md` (+14 -0) 📝 `mkdocs.yml` (+1 -0) 📝 `netbox/project-static/dist/netbox.js` (+1 -1) 📝 `netbox/project-static/dist/netbox.js.map` (+2 -2) 📝 `netbox/project-static/src/colorMode.ts` (+5 -0) 📝 `netbox/project-static/src/global.d.ts` (+3 -0) </details> ### 📄 Description ### Closes: #18006 - Dispatch a custom event `netbox.colorModeChanged` when the color mode is toggled - Document how the color scheme is managed for plugins --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:24:09 +01:00
adam closed this issue 2025-12-30 00:24:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15802