Code Monkey home page Code Monkey logo

Comments (5)

Lissy93 avatar Lissy93 commented on May 22, 2024 1

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.

Lissy93 avatar Lissy93 commented on May 22, 2024 1

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.

MilesTEG1 avatar MilesTEG1 commented on May 22, 2024

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.

Lissy93 avatar Lissy93 commented on May 22, 2024

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?

image

from dashy.

MilesTEG1 avatar MilesTEG1 commented on May 22, 2024

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?

image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.