Comments (5)
Hey, good idea!
I'm just looking into it now, the config uses the schema defined in ConfigSchema.json
, but it actually might be a bit harder than it sounds to put the themes in there, as it would mean users couldn't add there own custom theme, but I will see what I can do :)
In the meantime, here's a list of all available theme keys:
callisto
, thebe
, dracula
, material
, material-dark
, colorful
, nord
, nord-frost
, minimal-dark
, minimal-light
, matrix
, matrix-red
, hacker-girl
, raspberry-jam
, bee
, tiger
, material-original
, material-dark-original
, vaporware
, high-contrast-dark
, high-contrast-light
. (the themes names are specified in defaults.js)
from dashy.
I'll add it to my todo list - At the moment I'm going to close the issue, but I will update it in the future if a better solution is implemented 😃
Let me know if you need anything else :)
from dashy.
I'm just looking into it now, the config uses the schema defined in
ConfigSchema.json
, but it actually might be a bit harder than it sounds to put the themes in there, as it would mean users couldn't add there own custom theme, but I will see what I can do :)
Maybe set a custom
entry that use another line like this :
appConfig:
theme: "custom"
custom_theme: "myCustomTheme"
with custom_theme: "myCustomTheme"
is the only one that can be whatever the user create.
With this, no need to worry about user's own themes 😃
What do you think about it ?
from dashy.
Yeah, that's one solution, but it complicates things having two properties both controlling the theme. I guess customTheme
could always take precedence, but then the user wouldn't be able to switch to a built-in theme with the main dropdown.
I have made an addition in 369c6f1, which shows all the built-in themes in the tip, so when you hover over theme property you should see all the built-in options, but you can still type anything in the box. Do you think that will be enough?
from dashy.
Yeah, that's one solution, but it complicates things having two properties both controlling the theme. I guess
customTheme
could always take precedence, but then the user wouldn't be able to switch to a built-in theme with the main dropdown.I have made an addition in 369c6f1, which shows all the built-in themes in the tip, so when you hover over theme property you should see all the built-in options, but you can still type anything in the box. Do you think that will be enough?
That should be enough :)
If you managed to get the droplist working with another line, as I suggested, maybe with an algorythm like this
if theme = custom then
use custom_theme value instead
else
use theme value as normal
endif
(I don't know the language used to code...)
from dashy.
Related Issues (20)
- [BUG] Outdated Docs HOT 3
- [BUG] <Collapsed setting persistant over diffrent pages> HOT 2
- [QUESTION] Something related to the status check of self-signed https services HOT 17
- use the latest version for component : v8:5.5.5 HOT 3
- [BUG] Widgets are not sending X-Api-Key and Authorization headers HOT 7
- [QUESTION] hideForKeycloakUsers not working HOT 2
- [BUG] Dashy not working again HOT 8
- [FEATURE_REQUEST] Hide Settings from Guests and Specific users HOT 5
- [BUG] Sharing Keycloak setup, not exactly a bug but certainly felt like one HOT 3
- [QUESTION] How to upgrade vom 2.x.x to 3.x.x? HOT 13
- [BUG] <title> HOT 4
- [BUG] user-defined-themes.scss broken in 3.0.1 HOT 2
- [BUG] Uptime-Kuma Widget Gives JSON Error and Fails to Load HOT 2
- [BUG] instructions for docker container on docker hub are incorrect HOT 2
- [BUG] Just upgraded and it never brings up the page. HOT 16
- [QUESTION] How to add a widget? HOT 1
- [FEATURE_REQUEST] Allow to mount dist/ directory as volume HOT 7
- [BUG] iframe widget doesn't reload HOT 4
- [FEATURE_REQUEST] Proxmox usage HOT 5
- [QUESTION] theme for each user HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashy.