今天安装好了ubuntu,觉得外观样式不是那么好看,于是到网上找了一些教程,把主题改一改。完成设置后记录一下。
先发两张改完后的图吧,喜欢的人可继续往下,原始版本就不发了。
是不是看起来比较高大上呢,还有些眼熟吧?是的。
这里用的是仿Mac主题,还有其它主题可选哦,喜欢其他的主题可以去gnome-look上下载
美化过程:
Step 1:资源下载
gnome3主题资源: https://www.gnome-look.org/
在此使用MacOs主题: https://www.gnome-look.org/s/Gnome/p/1013714/ ,选择file下载需要的主题、图标、字体和背景等资源。其中有多个主题(以Sierra开头),可以只下载需要的,带solid的是非透明主题。
主题解压后的目录放到/usr/share/themes/,图标放到/usr/share/icons/,背景放到/usr/share/backgrounds/
比如分别将下载的文件放置到对应文件夹,/usr/share/backgrounds/可以到网上找一些精美图片存在里面:
Step 2:工具安装
sudo apt-get update
sudo apt-get install gnome-tweak-tool
sudo apt-get install gnome-shell-extensions
sudo apt-get install gnome-shell-extension-dashtodock
gnome-shell-extension-dashtodock也可以直接到Ubuntu软件中心去下载
Step2:设置过程
-
打开tweak,选择扩展,打开User themes选项
-
选择外观,按以下图片进行设置
如果shell上有感叹号,关闭tweak,按Alt+F2,输入r,执行后重新打开tweak再设置shell选项。Tweaks设置
-
调整标题栏按钮位置
选择窗口,滑到最下面,把放置改为左 -
虽然桌面现在看起来很像mac了,但是dock这时依旧是长条状的,下面使用dash to dock插件使dock居中
选择扩展,开启Dash to dock,点击设置图标,按图片进行设置Dash to Dock
step3:启动美化
-
去 https://www.opendesktop.org/p/1154790/下载文件,解压备用
-
把解压的Ubuntu-paw文件夹复制到/usr/share/plymouth/themes/
-
备份并编辑文件
sudo cp /etc/alternatives/default.plymouth /etc/alternatives/default.plymouth.bak
sudo gedit /etc/alteernatives/defaul.plymouth
最后两行按照以下方式修改为新加入的启动主题
修改启动主题
step4:登录界面美化
登录界面美化即是修改GDM (GNOME Display Manager,GDM)主题,可以使用 https://www.opendesktop.org/s/Gnome/p/1207015/ ,但我在试验中发现一些问题。所以只改了登录背景。
sudo cp /etc/alternatives/gdm3.css /etc/alternatives/gdm3.css.bak
sudo gedit /etc/alternatives/gdm3.css
找到lockDialogGroup并更改为以下内容:
#lockDialogGroup {
background: #2c001e url(file:///usr/share/backgrounds/HighSierra-wallpapers/Sierra.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
好了,就写到这里吧,还有些地方没有优化,以后再说吧。