Skip to content

Conversation

@chkrb
Copy link

@chkrb chkrb commented Nov 18, 2025

I prefer having a minimal CSS, and having it synced to GTK's colorscheme, so I use GTK's CSS variables: @window_bg_color, @window_fg_color, etc. These colors are in rgb() or a similar format, which makes it not possible to set --noti-bg to.

It's also a matter of inconsistency; all colors are in rgb() format, except --noti-bg. It is simply a set of three comma-separated values.

Digging through the scss file and doing my due research, I created a new variable, --noti-bg-normal, which used the color equivalent to rgba(var(--noti-bg), var(--noti-bg-alpha)). Used it wherever applicable.

There was also this one instance where the alpha value was constant. I decided to use GTK's alpha(), but found out that it is already used by SASS. Thusly, I had to create a function which generated the required alpha() code upon compilation.

I guess its safe to say that --noti-bg and --noti-bg-alpha can be marked as deprecated.

The values are put together in --noti-bg-normal. In places where the
alpha value differs, GTK 3.0's alpha() function is used to change it.

Since SASS also has its own alpha() function unrelated to GTK's, it
causes issues in compilation. Implement a custom function which
generates the function properly in the final CSS.

They are now indirectly used and not removed for backwards compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant