Code Monkey home page Code Monkey logo

Comments (5)

scotabroad avatar scotabroad commented on June 25, 2024

nwgbar -b 000000 -o 0 or nwgbar -b 00000000 both make it possible so that the color of the background is provided by the .frame attribute below to nwgbar/style.css.

.frame {
  background: rgba (255, 255, 255, 0.5);
}

However, this does not seem like a good solution as it doesn't modify the window directly and requires making the window completely transparent. However, using any variation of the window or .background attributes do not affect the window/background color.

from nwg-launchers.

Siborgium avatar Siborgium commented on June 25, 2024

Agreed. Honestly, specifying background color via arguments is kinda ugly, and we have to provide option to tweak it via CSS. I'll look into it, but no hard promises :)

from nwg-launchers.

scotabroad avatar scotabroad commented on June 25, 2024

Thanks! I've also been trying to read up on how to do it. I've been looking into waybar how does it, as I've noticed it can take window#waybar{} to set the background color, though no equivalent CSS key currently exists for nwggrid or nwgbar that I could find. I'll keep you updated on anything else I find.

from nwg-launchers.

Siborgium avatar Siborgium commented on June 25, 2024

The following works

window > box {
    background-color: #abcdef
}

but it's not pretty at all.

window#waybar

This could be done by set_name("waybar") on the box.

from nwg-launchers.

scotabroad avatar scotabroad commented on June 25, 2024

Yes, I have seen that in the Waybar code here: src/bar.cpp#L489 and have thought about adding something similar to nwggrid and nwgbar.

window > box {
    background-color: rgba(123, 23, 45, 0.5)
}

does work with nwggrid, and I have been able to do the same with nwgbar using

window > scrolled window {
   background-color: rgba(123, 23, 45, 0.5)
 }

However, both need to be launched with the -o 0 flag to get the opacity right, otherwise it overlays the color on top of the default one. Honestly, this is overall not too bad.

from nwg-launchers.

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.