[PR #5745] Keep draw.io theme when saving a diagram #6557

Open
opened 2026-02-05 10:35:32 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/5745
Author: @EricKotato
Created: 8/2/2025
Status: 🔄 Open

Base: developmentHead: development


📝 Commits (1)

  • e1fb2b0 Keep draw.io theme when saving a diagram

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 resources/js/services/drawio.ts (+1 -1)

📄 Description

Even though #2662 is marked as solved, I don't think it's solved properly since the colors in dark mode might be not the simple invert.

@TechInterMezzo has discovered "keepTheme" option (see https://github.com/BookStackApp/BookStack/issues/2662#issuecomment-1207450833 for details), and I recently rediscovered it.

I've also tested it, and can confirm that option does work properly:
изображение


🔄 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/BookStackApp/BookStack/pull/5745 **Author:** [@EricKotato](https://github.com/EricKotato) **Created:** 8/2/2025 **Status:** 🔄 Open **Base:** `development` ← **Head:** `development` --- ### 📝 Commits (1) - [`e1fb2b0`](https://github.com/BookStackApp/BookStack/commit/e1fb2b071c571bf1922d790ecd97979c8604af48) Keep draw.io theme when saving a diagram ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `resources/js/services/drawio.ts` (+1 -1) </details> ### 📄 Description Even though #2662 is marked as solved, I don't think it's solved properly since the colors in dark mode might be not the simple invert. @TechInterMezzo has discovered "keepTheme" option (see https://github.com/BookStackApp/BookStack/issues/2662#issuecomment-1207450833 for details), and I recently rediscovered it. I've also tested it, and can confirm that option does work properly: <img width="484" height="396" alt="изображение" src="https://github.com/user-attachments/assets/44cd8aa0-cfa8-4d4a-8242-9527f1eda77f" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:35:32 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6557