Coder Social home page Coder Social logo

Comments (4)

Figment93 avatar Figment93 commented on August 21, 2024

I agree with Mrimann, I'm currently having to remove the company branding from our Icinga instance as this isn't playing nicely with the latest Icingaweb2.

I've tried adding the below as suggested by the guide here, but it doesn't work either.

@light-mode: {
  :root {
    --body-bg-color: white;
  }
  .icingaweb2-module.module-foo {
    --your-custom-color-variable: white;
  }
};

from icingaweb2-theme-company.

Hrocc avatar Hrocc commented on August 21, 2024

i modified icingaclassictheme with our company colors and added the header-logo part from the old theme. Now it looks almost exactly the same as before.

https://github.com/moreamazingnick/icingaweb2-module-icingaclassictheme

from icingaweb2-theme-company.

mj84 avatar mj84 commented on August 21, 2024

I just stumbled across this blogpost while searching for a way to provide the choice of light / dark modes in a theme:
https://icinga.com/blog/2021/06/16/introducing-dark-and-light-theme-modes/

According to the blog post, this theme should just include

@media (min-height: @prefer-light-color-scheme), (prefers-color-scheme: light) and (min-height: @enable-color-preference) {
  :root {
    --body-bg-color: white;
  }
}
@media (min-height: @prefer-dark-color-scheme), (prefers-color-scheme: dark) and (min-height: @enable-color-preference) {
  :root {
    --body-bg-color: black;
  }
}

and the support for light / dark mode is done.

from icingaweb2-theme-company.

mj84 avatar mj84 commented on August 21, 2024

Sorry the info above is not accurate and somewhat outdated.
There is a follow-up blog post which explains a bit further how to establish light / dark modes in a theme: https://icinga.com/blog/2022/02/10/icinga-web-not-just-black-and-white/

from icingaweb2-theme-company.

Related Issues (7)

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.