GithubHelp home page GithubHelp logo

Comments (12)

ammgws avatar ammgws commented on August 14, 2024 3

@oschoudhury, @LuchiLucs, @Lucienya, @cljoly If you're still using i3status-rust then perhaps #947 may be of interest.

from i3status-rust.

oschoudhury avatar oschoudhury commented on August 14, 2024 1

I would be happy with option 1, I just want to see the individual blocks immediately in one go ;)

from i3status-rust.

aleb avatar aleb commented on August 14, 2024 1

For example:

[[block]]
block = "sound"
headphones_indicator = true
[block.theme_overrides]
idle_fg = "#ff0000ff"
idle_bg = "#000000ff"

from i3status-rust.

greshake avatar greshake commented on August 14, 2024

Could be a feature, but keep in mind that the blocks don't control the color themselves- they may only report a 'state', e.g. critical, good, idle and warning, which is then used to determine the color based on the theme. I have two propositions:

  1. Specify an alternating_tint property in the theme, which is then applied as an additive color tint to alternating blocks (e.g. when the color is RGB 0,10,10 and the tint is 0,0,10 then the resulting color is 0,10,10).
  2. Allow the user to override all possible state colors for each block. While being the most flexible solution, this entails significant implementation effort and a lot of effort to configure on the user's side. Also, themes created this way can hardly be shared or implemented as a fixed theme independent from the specific configuration of blocks.

from i3status-rust.

greshake avatar greshake commented on August 14, 2024

Check out the current implementation, certainly still needs improvement but some of the functionality is there

from i3status-rust.

oschoudhury avatar oschoudhury commented on August 14, 2024

I first thought it wasn't working but overriding the alternating tint works fine. May I recommend that you use the base02/base2 colours (http://ethanschoonover.com/solarized) or one of the other colours for solarized dark? Thanks for the quick solution, this is looking a lot better now!

from i3status-rust.

LuchiLucs avatar LuchiLucs commented on August 14, 2024

@greshake I would happy with option 2. I think that will be an appealing features for many users, to be able to customize the look of the bar as they want. What about implementing a property for each block where you can specify the theme of that block through a JSON/TOML file?
example: I set the standard theme solarized-dark for the bar and the I override some block themes throught the property of the block. User would only download the themes they want (.JSON) and add theme in the .TOML configuration file

from i3status-rust.

Lucienya avatar Lucienya commented on August 14, 2024

@LuchiLucs Were you successful in applying specific colors to each of the blocks? And would you mind telling me how's it possible actually ?

from i3status-rust.

Lucienya avatar Lucienya commented on August 14, 2024

And I guess there's already a way to do since the picture in the given project shows us every block has it's own colorscheme. @greshake so how did you manage to override the mentioned colors in each block ?

from i3status-rust.

LuchiLucs avatar LuchiLucs commented on August 14, 2024

@Tintin512 I don't think so. I haven't been using it in a while.

from i3status-rust.

atheriel avatar atheriel commented on August 14, 2024

@Lucienya The colours in the image are due to the various states of each block with one of the default colour schemes; they are not set individually. It is not currently possible to customize the colour scheme of individual blocks via the configuration file.

This issue is pretty stale, so I'm going to close it for now.

from i3status-rust.

cljoly avatar cljoly commented on August 14, 2024

That’s awesome, thanks @ammgws!

from i3status-rust.

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.