首先,必须说清楚,是形似神不似
效果看下图,有兴趣的话就往下看(带箭头的两个图标是那个抽屉面板小程序) ---------------------------------------------------------------------------------
1、去掉主菜单(图中左下角的那个图标就是主菜单)丑陋的小箭头
网上搜索到的修改源码的方法,如果你怕麻烦又不介意那个小箭头的话就可以跳过这一步
添加源
代码: 全选
deb-src http://debian.ustc.edu.cn/ubuntu/ lucid main universe restricted multiverse
代码: 全选
sudo apt-get source gnome-panel
gnome-panel-(版本)/gnome-panel/panel-menu-button.c
搜索 has-arrow
会找到如下
代码: 全选
"has-arrow", TRUE,
然后在 gnome-panel-(版本)下(如果有权限问题,前两个命令也加 sudo)
代码: 全选
./configure
make
sudo make install
killall gnome-panel
我是直接到主目录下的 .themes 目录下复制一份elementary然后修改里面的gtk-2.0/gtkrc的
然后先把所有关于 panel的项目删除掉,在后面添加如下内容(代码杂七杂八,参考win2-7项目的代码改的,未整理)
代码: 全选
###################### GNOME PANEL ######################
style "elementary-panel"
{
xthickness = 1#mod 4
ythickness = 0
#mod bg_pixmap[NORMAL] = "/Panel/panel.png" # Disable for normal panel backgrounds.
#mod engine "murrine" {
# textstyle = 1
# roundness = 0
# }
}
style "elementary-panel-light"
{
xthickness = 4
ythickness = 0
fg[NORMAL] = @fg_color
#mod engine "murrine" {
# textstyle = 1
# roundness = 0
# }
}
style "elementary-panel-text"
{
fg[NORMAL] = "#4D4D4D"
fg[PRELIGHT] = "#4D4D4D"
fg[ACTIVE] = "#ffffff"
text[NORMAL] = "#4D4D4D"
text[PRELIGHT] = "#4D4D4D"
text[ACTIVE] = "#ffffff"
}
style "elementary-main-menu-text" = "elementary-panel-text"
{
fg[PRELIGHT] = "#ffffff"
text[PRELIGHT] = "#ffffff"
}
style "panel-handle"
{
engine "pixmap"
{
image
{
function = HANDLE
file = "Panel/panel-handle-black-24.png"
border = { 0, 0, 0, 0 }
stretch = TRUE
orientation = VERTICAL
}
image
{
function = HANDLE
file = "Panel/panel-handle-black-24.png"
border = { 0, 0, 0, 0 }
stretch = TRUE
orientation = HORIZONTAL
}
}
}
style "panelbuttons-black"
{
fg[NORMAL] = "#ffffff"
fg[PRELIGHT] = "#ffffff" # text on buttons (hover)
fg[ACTIVE] = "#ffffff" # text on unfocused tabs
fg[SELECTED] = "#ffffff" # selected text on lists
fg[INSENSITIVE] = "#ffffff" # greyed "unused" text
xthickness = 2
ythickness = 1
GtkWidget::focus_padding = 2
engine "pixmap" {
image
{
function = BOX
recolorable = TRUE
state = ACTIVE
# Blue active panel button
# file = "Panel/panelbutton_black_1.png"
# Black active panel button
file = "Panel/panelbutton_black_3.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}
image
{
function = BOX
recolorable = TRUE
state = PRELIGHT
file = "Panel/panelbutton_black_1.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}
image
{
function = BOX
recolorable = TRUE
state = NORMAL
file = "Panel/panelbutton_black_2.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}
image
{
function = BOX
recolorable = TRUE
state = INSENSITIVE
file = "Panel/panelbutton_black_2.png"
border = { 4, 4, 4, 4 }
stretch = TRUE
}
}
}
##################################
# Panel
##################################
widget "*PanelWidget*" style "elementary-panel"
widget "*PanelApplet*" style "elementary-panel"
widget "*fast-user-switch*" style "elementary-panel"
widget "*CPUFreq*Applet*" style "elementary-panel"
widget "*indicator-applet*" style "elementary-panel"
class "PanelApp*" style "elementary-panel"
class "PanelToplevel*" style "elementary-panel"
widget_class "*PanelToplevel*" style "elementary-panel"
widget_class "*notif*" style "elementary-panel"
widget_class "*Notif*" style "elementary-panel"
widget_class "*Tray*" style "elementary-panel"
widget_class "*tray*" style "elementary-panel"
widget_class "*computertemp*" style "elementary-panel"
widget_class "*Applet*Tomboy*" style "elementary-panel"
widget_class "*Applet*Netstatus*" style "elementary-panel"
# Fixes for tooltip text in some apps.
widget_class "*Notif*Beagle*" style "elementary-panel-light"
widget_class "*Notif*Brasero*" style "elementary-panel-light"
# XFCE panel theming.
widget "*Xfce*Panel*" style "elementary-panel"
class "*Xfce*Panel*" style "elementary-panel"
# Make sure panel text color doesn't change
widget_class "*Panel*MenuBar*" style "elementary-main-menu-text"
widget_class "*Panel*<GtkMenuBar>*" style "elementary-main-menu-text"
widget "*.clock-applet-button.*" style "elementary-panel-text"
widget "*PanelApplet*" style "elementary-panel-text"
# 去除一些面板程序前面的把手
class "PanelAppletFrame" style "panel-handle"
widget "*PanelApplet*" style:highest "elementary-panel"
widget "*PanelWidget*" style:highest "elementary-panel"
widget_class "Panel*GtkToggleButton" style:highest "panelbuttons-black"
widget_class "Panel*GtkButton" style:highest "panelbuttons-black"
widget "*PanelWidget*" style "panelbuttons-black"
widget "*PanelApplet*" style "panelbuttons-black"
widget_class "*PanelButton*." style "panelbuttons-black"
如果你平时是用elementary的话,可以直接用附件的elementary主题,我只修改了panel部分还有137行的xthickness而已 3、dockbarx
打开ubuntu-tweak,添加dockbarx的ppa源安装
或者下载下面的附件安装,然后添加到面板就行了,再加个主题,附件,推荐tonkybar或者shinybar系列
4、修改显示桌面图标
其实就是修改图标主题,把32x32的user-desktop.png更换成一张12x32的透明图片就行了,当然,面板要调到32像素以上才行
见附件,下载后替换你当前的图标主题32x32尺寸的同名文件,一般在places目录里 5、修改面板背景
面板→右键属性→背景→背景图片→选择上面附件panel文件夹里面的一张图片,例如我选的是Panel_Win2-7White.png
应该就可以的了
以上仅作参考,具体自己参透