简体   繁体   English

如何使真棒wm任务栏的所选窗口的前景色透明?

[英]How do I make the foreground color of my awesome wm taskbar's selected window transparent?

I'm using Awesome WM v.3.4.15. 我正在使用Awesome WM v.3.4.15。 I've searched all around and only found the suggestion to add two hex digits to the hex color value of the background color of the selected window in theme.lua but after doing that and reloading it only makes it grey. 我到处搜索,只发现建议在theme.lua中将所选窗口的背景色的十六进制颜色值添加两个十六进制数字,但是这样做并重新加载后只会使其变成灰色。

Does know what I can do to make the background color of the selected window in the top bar transparent? 是否知道如何使顶部栏中的所选窗口的背景颜色透明?

Awesome/Lua uses RGBA color space, so indeed to make color transparent you need to add two digits after color. Awesome / Lua使用RGBA颜色空间,因此要使颜色透明,您确实需要在颜色后面添加两位数字。

The parameter you need to change is theme.bg_focus if I understood you correctly, to test it set it to white first "#ffffff" and then change the transparency: "#ffffff00" . 如果我正确理解,您需要更改的参数是theme.bg_focus ,要对其进行测试,请首先将其设置为白色"#ffffff" ,然后更改透明度: "#ffffff00" If it's not that try theme.titlebar_bg_focus or theme.tasklist_bd_focus 如果不是那样,请尝试theme.titlebar_bg_focustheme.tasklist_bd_focus

The two hex digits are the strength of the transparency. 两个十六进制数字是透明度的强度。

00 - full transparency 00完全透明
FF - no transparency FF不透明

So you have to set your value to #ffffff00 . 因此,您必须将值设置为#ffffff00

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM