Code Monkey home page Code Monkey logo

Comments (11)

Just-Insane avatar Just-Insane commented on May 20, 2024 1

So, I changed that line to:

        Seq(
          "https://raw.githubusercontent.com/semantic-ui-forest/forest-themes/master/dist/bootswatch/v4/semantic.darkly.min.css",
          s"/app/assets/sharry-webapp/${BuildInfo.version}/sharry.css"
        ),

and ended up with the following:

Screen Shot 2020-04-22 at 11 06 12 AM

Which is not exactly what I was hoping for...

from sharry.

eikek avatar eikek commented on May 20, 2024 1

Ah that's too bad, thanks for trying out! Then I guess, this is quite some work. I don't think I can do it in the near future (PRs are welcome, of course). For the far away future :) I'm thinking to maybe migrate the ui to bulma-css, as it seems to be a better fit (no js involved and there are elm packages). If that happens, then I'm going to provide light and dark themes.

from sharry.

Dorson avatar Dorson commented on May 20, 2024

I had the same issue and coded a working solution.

Works with one CSS file and basic JavaScript functions for the switch and color settings recall on load.

Here is the GitHub Demo page :

https://dorson.github.io/CSS-Dark-Mode-and-color-switch/

Feel free to copy, fork, adopt, port, etc...

from sharry.

eikek avatar eikek commented on May 20, 2024

Thank you for your input @Just-Insane – I can really understand this wish to have a dark theme. I'm using for the time being the dark-reader browser extension. It is obviously not optimal, but works good enough (for a lot of pages). I just found https://semantic-ui-forest.com/themes – maybe it is enough to simply refer to a different css.

@Dorson thank you! I'm going to take a look and see if it can help here. I'm using pre-build semantic-ui css framework, so I'm not sure if I can define color sets without including a customized semantic-ui build.

from sharry.

Just-Insane avatar Just-Insane commented on May 20, 2024

These are both awesome solutions!

@eikek i saw those too, but I wasn’t sure where the default css for semantic-hi was called in the source when I was looking at it (changing the sharry.css file does not work).

from sharry.

eikek avatar eikek commented on May 20, 2024

@Just-Insane the semantic css comes in here. I think (not verified), if you put in here a url to a different style, it should work…. Requires recompile and everything, obviously.

from sharry.

Just-Insane avatar Just-Insane commented on May 20, 2024

Just to clarify, should that be line 128 or line 123?

Line 123 points to semantic.min.css rather than semantic.min.js.

from sharry.

eikek avatar eikek commented on May 20, 2024

Oh sorry, you are right. It is line 123.

from sharry.

eikek avatar eikek commented on May 20, 2024

That seems to miss the standard semanticui styles. You could try adding this additional to the standard style… I have no clue, really.

from sharry.

Just-Insane avatar Just-Insane commented on May 20, 2024

It looks like a dark theme would have to be created manually... this is the closest I've found, but it's missing a lot of the includes (they 404).
https://gist.github.com/Atulin/cb2d52c8165af4d74614be92fe9ec9b0

from sharry.

eikek avatar eikek commented on May 20, 2024

Update for this: I moved my other project from fomantic to tailwind and it was a very pleasant experience. I'm now thinking about doing the same for sharry. It's also easier to maintain both projects then:-). (for context see eikek/docspell#293.)

from sharry.

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.