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 highly requested Dark Mode and Logo support #159

Merged
merged 28 commits into from
Jun 1, 2024

Conversation

barry-smithjr
Copy link
Contributor

@barry-smithjr barry-smithjr commented Apr 24, 2024

This PR enables dark mode and logo support

Technical Details

  • data-bs-theme HTML element is set to "auto"
  • When page loads, the JS reads the dark/light preference from the browser and sets accordingly on page and localstorage.
  • Toggle in the header will update the localstorage and change the page theme.
  • site_logo setting added to add a logo.
  • display_title setting added to enable/disable showing of site_title next to the logo.

Changes summary:

  • Removed hardcoded white backgrouds from textareas
  • Changed footer to use an included color for readability
  • Added a header that uses the site_title setting to display app name
  • Added light/dark toggle
  • Included Font Awesome 6 solid icons for the light dark toggle
  • Bootstrap upgraded to 5.3.3
  • Announcement banner moved under header
  • Moved "click to copy" code to individual pages

Screenshots

flashpaper-dark flashpaper-dark-announcement flashpaper-light flashpaper-light-announcement

@barry-smithjr barry-smithjr changed the title Add highly requested Dark Mode Add highly requested Dark Mode and Logo support Apr 28, 2024
Copy link
Owner

@AndrewPaglusch AndrewPaglusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some small changes and questions @barry-smithjr. Thanks!

- Updated docker/entrypoint.sh
- Updated docker/settings.php.TEMPLATE
- Clean up script tags in html/header
- Fixed indentation in html/header
- Removed JS in html/view_code.php and html/view_secret.php
- Renamed constant in js/color-toggle.js
@AndrewPaglusch
Copy link
Owner

Hey @barry-smithjr thanks for making those fixes. I'll re-review this PR this week

@AndrewPaglusch AndrewPaglusch merged commit 24700df into AndrewPaglusch:master Jun 1, 2024
1 check passed
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.

3 participants