我想删除 XFCE 面板内按钮后面的颜色。
我尝试修改文件/usr/share/themes/Greybird/gtk-2.0/apps/xfce-panel.rc
,但按钮后面出现了奇怪的白色。我想让它透明。
我想我只需要处理这部分代码:
style "window-buttons" = "theme-panel"
{
xthickness = 3
ythickness = 3
bg[ACTIVE] = @bg_color_dark
bg[PRELIGHT] = @bg_color_dark
bg[SELECTED] = @bg_color_dark
fg[NORMAL] = @bg_color_dark
fg[ACTIVE] = @bg_color_dark
fg[PRELIGHT] = @bg_color_dark
engine "murrine" {
contrast = 0.0
gradient_shades = { 1.0, 0.9, 0.8, 0.7 }
roundness = 0.5
reliefstyle = 0
textstyle = 1
text_shade = 0.2
}
}
我应该修改什么?
答案1
无需编辑文件。
首先,确保在设置中启用了合成器(主菜单 >> 设置 >> 窗口管理器调整 >> 合成器)。
然后,右键单击面板,打开面板的首选项,打开选项卡外貌,将不透明度设置为 0。
最后,打开窗口按钮插件设置,然后取消选中显示扁平按钮。
欲了解更多信息,请阅读面板首选项对话框。
答案2
操作系统 UbuntuStudio 15.10 x386
这对我有用。创建一个文件~/.gtkrc-2.0
并保存以下内容:
style "xfcepanel"
{
xthickness = 0 # from here until "Modd 10" is not relevant for this forum thread...
ythickness = 0
GtkButton::inner-border = {3,1,1,1}
#XfcePanelWindow::autohide-size = 1
font_name = "Modd 10" # ...but i left it here to show how these things work.
engine "pixmap" {
image {
function = BOX
recolorable = TRUE
state = NORMAL
}
image {
function = BOX
recolorable = TRUE
state = PRELIGHT
file = "Panel/panel-button-hover.png"
border = { 3, 1, 1, 1 }
stretch = TRUE
}
image {
function = BOX
recolorable = TRUE
state = ACTIVE
file = "Panel/panel-button-active.png"
border = { 3, 1, 1, 1 }
stretch = TRUE
}
image {
function = BOX
recolorable = TRUE
state = SELECTED
file = "Panel/panel-button-active.png"
border = { 3, 1, 1, 1 }
stretch = TRUE
}
image {
function = BOX
recolorable = TRUE
state = INSENSITIVE
}
image {
function = ARROW
recolorable = TRUE
arrow_direction = DOWN
}
}
}
widget_class "XfcePanelWindow*" style "xfcepanel"
在面板 1(我添加的)中,我禁用了标签按钮:
您需要向左拖动至 Alpha 0:
错误信息
只有一个问题,重新启动时我看到一条消息: