-
For my usecase I was thrilled to find out GTK CSS standard provides an option for index-based styling with functional pseudoclasses like :nth-child() . Unfortunately this does not work in syntax for rasi as it seems. Is it not that theme file transpiles under the hood to regular GTK CSS? Or is it read and interpreted by rofi directly? I guess what I ask is: is this something that would require implementation or is there a way to write config file to get the styling to apply? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Nevermind. Found a workaround EDIT: This script is written for wayland [hyprland] and uses hyprpicker and pastel packages as deps and wl-copy/paste for clipboard interactions. |
Beta Was this translation helpful? Give feedback.
-
For people finding this discussion thread:
Rofi does not support CSS, it has it own language and parser that is slightly inspired by it, in the hope its is easier for people to make modifications to themes. (still debatable this was one of my worst design choices..) Rofi also does not use or depend on GTK for any of its rendering. Rendering is done using cairo. |
Beta Was this translation helpful? Give feedback.
Example usage of how I did achieve per-line styling. Hope it helps if anyone is looking for answers and bumps into this thread :)
RofiColorShades.sh