Stuck on themes - how to mimic GTK shade/mix operators using translucent SVGs? #2508
Unanswered
AzumaHazuki
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Not an answer to your question, but to prevent a probable misunderstanding: LXQt doesn't invent styling; it just uses Qt's stylesheets for its Panel and Runner. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Yes, this is germane to LXQt. I've been trying to make themes for us for Mint-Y, Shiki-Colors, and Murrine-Colors, and am not able to replicate the color gradients produced on prelight/urgent/etc buttons.
Inside the .gtkrc and gtk.css files, there are directives like
gradient_shades(1.09,1.01,1.01,0.91)
andbg[PRELIGHT] = shade(0.85, @selected_bg_color)
.In LXQt terms, this says to me I should be doing something like
where
hover.svg
is an SVG file I made with a 4-stop gradient: 0 (255,255,255,9%), 49 (255,255,255,1%), 50 (255,255,255,1%), 100 (0,0,0,9%) and a lower layer of (0,0,0,15%). On the panel, this says "if you're hovering over a taskbar button, paint it the user's highlight color, then overlay this .svg which will darken it by 15% and then, overtop of that, apply that glassy gradient."Problem is, this doesn't work. The shape is correct, but the colors are wrong, and it also doesn't produce that nice sharp midline in the gradient the Murrine themes are known for.
Does anyone here know what to do? Is the GTK
shade
function using something other than the rgba colorspace to generate its gradients? This is really frustrating.Beta Was this translation helpful? Give feedback.
All reactions