Giter Club home page Giter Club logo

Comments (2)

jaelpark avatar jaelpark commented on May 26, 2024

Thanks for the report. This is because the shader is not taking the pixel density properly into account. It looks fine on some resolutions, but for some others the borders might look too thick. Obviously this has to be further worked on. I will commit a fix at some point soon.

from chamferwm.

jaelpark avatar jaelpark commented on May 26, 2024

I modified the shader a bit so that it scales the borders based on the screen resolution. To change the border width manually, at the moment the only way is to tune the scaling value in the fragment shader and recompile it. Value 1.0 would result in the border thickness you had in your screenshot in #2, and anything smaller scales it down.

borderWidth in the config controls only the gap between the containers. The name might be a bit misleading, and I may have to consider changing it. I'm not sure if I want to associate any configuration attributes with the border width itself, since depending on the shader, the border decoration can be completely arbitrary even in a way that the concept of thickness wouldn't make much sense. The provided fragment shader acts more or less merely as a example default, from which the user can customize the look of the border to whatever they can think of.

from chamferwm.

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.