Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Light & Dark Theme #1461

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Add Light & Dark Theme #1461

wants to merge 8 commits into from

Conversation

cgjgh
Copy link
Contributor

@cgjgh cgjgh commented Nov 12, 2024

Description

Adds light and dark mode to D2.

  • Colors are configurable in NodeRED editor.
  • Mode can be toggled from D2 nav sidebar.
  • Last setting is saved to and loaded from cache on reloads.
  • Adds preview of UI while editing theme in NodeRED editor.

Toggling theme

ScreenRecording_11-11-2024.21-43-11_1.MP4

Theme color config

Screen.Recording.2024-11-12.073931.mp4

Any ideas on how to improve theme color palette display? Or just leave out dark colors maybe...

Screenshot 2024-11-12 074234

UI Preview While Editing

(Might become obsolete with WYSIWYG editor)

Screen.Recording.2024-11-17.153557.mp4

Related Issue(s)

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Includes a DB migration? -> add the area:migration label

nodes/config/ui_theme.html Outdated Show resolved Hide resolved
nodes/config/ui_theme.html Outdated Show resolved Hide resolved
nodes/config/ui_base.html Outdated Show resolved Hide resolved
@cgjgh cgjgh marked this pull request as ready for review November 18, 2024 01:16
@cgjgh cgjgh requested a review from joepavitt November 18, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants