Comments (9)
I have added a subtle glow effect which can be actived by passing glow(0xAARRGGBB)
to a <color>
argument.
from jankyborders.
Looks good. We could include this in the current configuration syntax as another special color argument e.g:
borders active_color=glow(0xAARRGGBB)
Or something like that.
I am still thinking about moving the drawing logic to a CALayer backed solution for GPU acceleration, where these animations could be included relatively easily, but I am not sure if that is worth the effort.
Maybe we start off with a static glow for now.
from jankyborders.
I am not sure this can be achieved only by tweaking the window shadow properties, afaik there is no way to change the color of the shadow. I can change positioning density etc. via:
extern CGError SLSSetWindowShadowParameters(int cid, uint32_t wid, float std, float density, int x_offset, int y_offset);
and there are some other properties to be controlled via
extern CGError SLSWindowSetShadowProperties(uint32_t wid, CFDictionaryRef properties);
but I have not seen a way to change the actual shadow color.
from jankyborders.
How about using https://developer.apple.com/documentation/coregraphics/1455205-cgcontextsetshadowwithcolor?language=objc
from jankyborders.
Was trying to install through --HEAD, and borders broke. They render somewhere outside the window. Reinstalled last release and it works ok.
from jankyborders.
Should be fixed on master.
from jankyborders.
Thank you! I still believe that animation would be more interesting : )
from jankyborders.
I will at some point explore simple animations on window focus/unfocus, but a permanently moving glow around the border is probably not something I am personally interested in.
If someone wants to give it a go, I will gladly accept a PR.
from jankyborders.
Thanks. Nah, I don't want permanently moving glow neither.
from jankyborders.
Related Issues (20)
- Intensive GPU usage with background blur HOT 16
- Borders flicker few times on space change with yabai HOT 4
- Restart Yabai Causes Misplaced Borders HOT 1
- border disappear when moving window to another workspace
- Border style fix HOT 2
- Crashes due to the window management bridge HOT 2
- Focused window different in borders and yabai HOT 1
- Does it work with alacritty ? HOT 1
- borders spontaneously change from a nice gradient to white HOT 2
- Brew install fails due to "framework not found AppKit" HOT 1
- macOS Borders still visible HOT 1
- Inset borders HOT 10
- add service management like yabai HOT 1
- Borders cannot be disabled on Firefox using blacklist HOT 3
- [Feature request] different color for maximized window HOT 1
- Screen tearing when resizing windows
- Repeated crash reports HOT 3
- [Feature Request] Inner/Center/Outer Config HOT 2
- Borders are not centered HOT 1
- Blur Limit? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jankyborders.