You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add possibility for frame opacity to include menubar/toolbar and so on
This adds the possibility to define the frame opacity but also include all colors in the window that match the frame color and make those also transparent. It even supports the possibility to define the tolerance for color difference between the frame and other parts of the window and make those or gradually more opaque or also transparent just like the frame.
NOTE: tested with flat window frame so not sure how it will work with gradient frames and also only added for GLX atm, lets see if it's interesting enough to be included in the core or otherwise will just keep it for myself.
It adds the following config options:
# Enable frame opacity for colors that match the frame
frame-opacity-for-same-colors = true;
# Tolerance for similar colors (0 exact match, 1 all colors, default 0.5)
frame-opacity-for-same-colors-constraint = 0.5;
# Make different colors opaque by a factor of x (default 5)
frame-opacity-for-same-colors-multiplier = 5;
and for them to work you will have to active frame opacity for e.g.
frame-opacity = 0.7;
With these options you can now have blurred transparent frame + menubar + toolbar or on popup like File Open have transparent window background but list of files be opaque and so on.
['e'] = {"frame-opacity" , FLOAT(frame_opacity, 0, 1) , "Opacity of window titlebars and borders. (0.0 - 1.0)"},
416
+
[342] = {"frame-opacity-for-same-colors", ENABLE(frame_opacity_for_same_colors) , "Enable frame opacity for colors that match the frame"},
417
+
[343] = {"frame-opacity-for-same-colors-tolerance", FLOAT(frame_opacity_for_same_colors_tolerance, 0, 1), "Tolerance for similar colors (0 exact match, 1 all colors, default 0.5)"},
418
+
[344] = {"frame-opacity-for-same-colors-multiplier", INTEGER(frame_opacity_for_same_colors_multiplier, 0, INT_MAX), "Make different colors opaque by a factor of x (default 5)"},
416
419
[257] = {"shadow-red" , FLOAT(shadow_red, 0, 1) , "Red color value of shadow (0.0 - 1.0, defaults to 0)."},
417
420
[258] = {"shadow-green" , FLOAT(shadow_green, 0, 1) , "Green color value of shadow (0.0 - 1.0, defaults to 0)."},
418
421
[259] = {"shadow-blue" , FLOAT(shadow_blue, 0, 1) , "Blue color value of shadow (0.0 - 1.0, defaults to 0)."},
0 commit comments