Groove/ridge borders? #2273
|
In css, I can give elements a groove or a ridge border for a 3D look. Is there a way to emulate that for rofi? |
Replies: 3 comments 2 replies
|
Don't know what groove/ridge exactly does in css. |
Emulating CSS
|
|
Alternative Option : The "Double-Walled" Groove (Nested Element) |
Emulating CSS
groove/ridgeborders in Rofi (.rasi)Since Rofi's
.rasiformat does not natively support thegrooveorridgeborder styles found in CSS, you can emulate the 3D effect by leveraging Rofi's ability to color each side of a border independently.In CSS, groove and ridge effects are essentially just 2-pixel borders where the colors are inverted on the inner and outer halves to simulate lighting/depth. In Rofi, we can achieve this by using two nested elements (like
windowandmainbox) or by using the specific border-color syntax.Option 1: The "Simple 3D" Effect (Pseudo-Ridge)
You can simulate a 3D "raised" look on any element by setting different colors for the top/left (highligh…