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

Force Theme with environment variable #2847

Open
1 task done
cwchristerw opened this issue Feb 26, 2023 · 4 comments
Open
1 task done

Force Theme with environment variable #2847

cwchristerw opened this issue Feb 26, 2023 · 4 comments
Labels
area:core issues describing changes to the core of uptime kuma feature-request Request for new features to be added

Comments

@cwchristerw
Copy link

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

🏷️ Feature Request Type

UI Feature

🔖 Feature description

I would use UPTIME_KUMA_THEME environment variable to force theme to be always dark mode in dashboard.

✔️ Solution

Add environment variable that can force theme to be light, dark or auto.

❓ Alternatives

Add feature to save user's theme in to database.

📝 Additional Context

When user selects dark mode it doesn't save it to database and theme is always auto instead of dark. I use multiple computers and always reset cookies for privacy reasons.

@cwchristerw cwchristerw added the feature-request Request for new features to be added label Feb 26, 2023
@cwchristerw
Copy link
Author

cwchristerw commented Mar 14, 2023

@louislam Would it be possible to implement this or alternative to next release?

@CommanderStorm
Copy link
Collaborator

@cwchristerw
This feature request will likely not get anywhere as this would violate the project-style as documented here:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#project-styles

Settings should be configurable in the frontend. Environment variable is not encouraged, unless it is related to startup such as DATA_DIR

Given that this will likely never be done because of this, could you close this issue?

@cwchristerw
Copy link
Author

cwchristerw commented Aug 6, 2023

@CommanderStorm Would it be OK, to suggest similar but with API? I'm looking to automate setting up Uptime Kuma with ansible and doing settings as automated as possible. I want to be able to force Dark Mode as default in my instance.

@cwchristerw
Copy link
Author

Related to #1858

@CommanderStorm CommanderStorm added the area:core issues describing changes to the core of uptime kuma label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core issues describing changes to the core of uptime kuma feature-request Request for new features to be added
Projects
None yet
Development

No branches or pull requests

2 participants