[Share Experiences] 优化deepin系统 软件界面顶部标题栏解决方案
Tofloor
poster avatar
Jokul
deepin
2020-09-18 01:29
Author

deepin默认情况下,安装的软件顶部会有一块很丑的标题栏,部分软件可以通过设置隐藏标题栏,但对于大部分软件默认无法隐去,于是本人扒贴找寻方案,终于找到一个使标题栏变窄的方案,测试过后确实好看了一些,特此分享操作方式:

1、先创建一个目录,如果有就不用了:

如果你是用的默认的白色主题

#mkdir -p ~/.local/share/deepin/themes/deepin/light

如果你用的黑色主题

#mkdir -p ~/.local/share/deepin/themes/deepin/dark

2、进入该目录后创建配置文件:

如果你是用的默认的白色主题

#cd ~/.local/share/deepin/themes/deepin/light

如果你用的黑色主题

#cd ~/.local/share/deepin/themes/deepin/dark

新建titlebar.ini文件(使用vi、vim、deepin-edit编辑都可以)

#sudo vim titlebar.ini

3、加入下面内容并保存:

[Active]
height=24
[Inactive]
height=24

上面代码中的24为标题栏宽度的像素值,你可以根据自己的喜好自定义调整宽度来满足自己视觉效果。

最后,注销或者重启系统即可生效。

Reply Favorite View the author
All Replies
Jokul
deepin
2020-09-18 18:34
#1
自己顶贴
Reply View the author
Jokul
deepin
2020-09-18 18:37
#2

titile.ini文件可以如下配置:(其中包括自定义了最大化最小化关闭等按钮图标样式,remake是用户名记得替换成自己当前登录的用户名,要不然目录找不到图标不生效)

[Active]
height=24
//最小化按钮
minimizeIcon.normal=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuixiaohua.svg
minimizeIcon.hover=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuixiaohua.svg
minimizeIcon.press=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuixiaohua.svg
minimizeIcon.disabled=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuixiaohua.svg
//最大化按钮
maximizeIcon.normal=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
maximizeIcon.hover=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
maximizeIcon.press=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
maximizeIcon.disabled=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
//还原按钮
unmaximizeIcon.normal=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
unmaximizeIcon.hover=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
unmaximizeIcon.press=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
unmaximizeIcon.disabled=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
//关闭按钮
closeIcon.normal=/home/remake/.local/share/deepin/themes/deepin/light/icon/close.svg
closeIcon.hover=/home/remake/.local/share/deepin/themes/deepin/light/icon/close.svg
closeIcon.press=/home/remake/.local/share/deepin/themes/deepin/light/icon/close.svg
closeIcon.disabled=/home/remake/.local/share/deepin/themes/deepin/light/icon/close.svg
 
[Inactive]
height=24
 
minimizeIcon.normal=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuixiaohua.svg
minimizeIcon.hover=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuixiaohua.svg
minimizeIcon.press=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuixiaohua.svg
minimizeIcon.disabled=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuixiaohua.svg
 
maximizeIcon.normal=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
maximizeIcon.hover=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
maximizeIcon.press=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
maximizeIcon.disabled=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
 
unmaximizeIcon.normal=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
unmaximizeIcon.hover=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
unmaximizeIcon.press=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
unmaximizeIcon.disabled=/home/remake/.local/share/deepin/themes/deepin/light/icon/zuidahua.svg
 
closeIcon.normal=/home/remake/.local/share/deepin/themes/deepin/light/icon/close.svg
closeIcon.hover=/home/remake/.local/share/deepin/themes/deepin/light/icon/close.svg
closeIcon.press=/home/remake/.local/share/deepin/themes/deepin/light/icon/close.svg
closeIcon.disabled=/home/remake/.local/share/deepin/themes/deepin/light/icon/close.svg
Reply View the author
jingle
deepin
2020-09-18 18:44
#3
弄个脚本一键式的
Reply View the author
Jokul
deepin
2020-09-18 18:49
#4
https://bbs.deepin.org/post/202371
弄个脚本一键式的

其实你们官方默认在系统修改好的最好 我之前发过贴推荐过建议,你们https://bbs.deepin.org/user/241653 要评估一下,为了给小白方便找优化方案,我又发了一遍具体操作步骤
Reply View the author
attention
deepin
2020-09-18 19:57
#5
没搞明白你说什么
Reply View the author
Jokul
deepin
2020-09-18 20:19
#6
https://bbs.deepin.org/post/202371
没搞明白你说什么

软件界面顶部的包含有最小化最大化关闭的标题栏美观优化
Reply View the author
KeiSyut
deepin
2020-09-18 20:52
#7
20正式版1002测试无效。不知道是哪里没有弄对还是怎样。
Reply View the author
Jokul
deepin
2020-09-18 20:53
#8
本帖最后由 jokul 于 2020-9-18 12:56 编辑
https://bbs.deepin.org/post/202371
20正式版1002测试无效。不知道是哪里没有弄对还是怎样。

可以的  今天更新我又尝试了一遍修改高度 没问题   就是在那个如果你是白色主题就在白色主题文件目录或者你用黑色主题就在黑色主题文件目录,新建ini文件添加高度。重启电脑就OK了
Reply View the author
KeiSyut
deepin
2020-09-18 20:56
#9
https://bbs.deepin.org/post/202371
可以的  今天更新我又尝试了一遍修改高度 没问题

我在笔记本上测试没效果。我再换台机子试下。看是不是跟显卡驱动或者是分辨率有关。
Reply View the author
KeiSyut
deepin
2020-09-18 21:34
#10
测试有效,之前进错账户了
Reply View the author
yimisunrise
deepin
2021-12-22 18:12
#11

我的deepin 20.3 下都没有这个(~/.local/share/deepin/themes/)目录。

Reply View the author
Jokul
deepin
2022-03-13 21:15
#12
yimisunrise

我的deepin 20.3 下都没有这个(~/.local/share/deepin/themes/)目录。

这个目录是上一步 mkdir创建的,没有的话估计你上一步没做好

Reply View the author