[Others] 一行命令美化标题栏大额头,可设置任意高度和任意颜色
Tofloor
poster avatar
deepin-fun
deepin
2020-07-12 03:15
Author

本帖最后由 deepin-fun 于 2020-8-23 14:06 编辑

deepin里GTK应用标题栏设计的高度很高,而且和菜单栏一样是白色,组合到一起更高了,看起来很难看,比例不协调。社区已经有非常多的讨论和意见,但是设计师坚持自己的见解没有要改的意思,那我们自己动手吧,可以设置任意高度和任意颜色的标题栏!

效果图:

window10蓝:


bilibil粉:



执行下面的命令:

curl --proto '=https' --tlsv1.2 -sSf https://gitee.com/2016_12_21/up_kernel/raw/master/titlebar.sh | bash

执行完成后需注销再登录进来即可看到效果

如果想自定义设置高度和颜色:
文件位于 ~/.local/share/deepin/themes/deepin/light/titlebat.ini
[Active] 是活动窗口的设置
[Inactive] 是非活动窗口的设置
height是标题栏高度,大家可以自行调整
backgroundColor是标题栏颜色,可以设置任意自己喜欢的颜色


========== 分割线 ==========
其它一行命令系列:

一行命令升级最新内核
https://bbs.deepin.org/post/189158
一行命令升级最新固件
https://bbs.deepin.org/post/200218

Reply Favorite View the author
All Replies
1 / 2
To page
deepin-fun
deepin
2020-07-12 03:17
#1
希望官方能做进设置里用户自定义设置吧。
Reply View the author
deepin-fun
deepin
2020-07-12 03:20
#2
有更好配色方案的可以发一下
Reply View the author
神末shenmo
Moderator
Spark-App
2020-07-12 03:25
#3
那个,火狐去标题栏后关闭按钮过小怎么破?
Reply View the author
deepin-fun
deepin
2020-07-12 03:53
#4
https://bbs.deepin.org/post/197036
那个,火狐去标题栏后关闭按钮过小怎么破?

火狐自己的关闭按钮好像是有点小,我这个脚本只是改标题栏高度和颜色的。
Reply View the author
xiao_hao
deepin
2020-07-12 03:56
#5
The user is banned, and the content is hidden.
deepin-fun
deepin
2020-07-12 04:02
#6
https://bbs.deepin.org/post/197036
输入命令没有反应哦

没报错没卡住代表执行成功
注销再进来看有效果吗(看GTK主题的应用,比如雷鸟邮件) 。
Reply View the author
Comments
xiao_hao
2020-07-12 04:05
The user is banned, and the content is hidden.
xiao_hao
deepin
2020-07-12 17:15
#7
The user is banned, and the content is hidden.
pzm9012
Moderator
2020-07-12 17:23
#8
https://bbs.deepin.org/post/197036
怎么设置颜色呢?

看1楼,active下的backgroudcolor是当前最上层窗口的标题栏颜色,inactive后面的backgroudcolor是叠在下面的窗口标题栏颜色,#开头的那一串代码就是颜色
Reply View the author
pzm9012
Moderator
2020-07-12 17:26
#9
https://bbs.deepin.org/post/197036
怎么设置颜色呢?

自己百度“颜色代码”
Reply View the author
jingle
deepin
2020-07-12 18:40
#10
down下来看看效果如何
Reply View the author
咿呀
deepin beta test group
2020-07-12 21:55
#11
https://bbs.deepin.org/post/197036
那个,火狐去标题栏后关闭按钮过小怎么破?

可以安装三个扩展
  1. https://addons.mozilla.org/zh-CN/firefox/addon/maximize-the-window/?src=search
Copy the Code
  1. https://addons.mozilla.org/zh-CN/firefox/addon/minimize-the-window/
Copy the Code
  1. https://addons.mozilla.org/zh-CN/firefox/addon/close-the-window/
Copy the Code
Reply View the author
神末shenmo
Moderator
Spark-App
2020-07-12 22:35
#12
https://bbs.deepin.org/post/197036
可以安装三个扩展

可是现在有两个关闭了
Reply View the author
deepin-fun
deepin
2020-07-12 23:27
#13
https://bbs.deepin.org/post/197036
怎么设置颜色呢?

兄弟重新执行下脚本,之前写成了追加
Reply View the author
deepin-fun
deepin
2020-07-12 23:28
#14
https://bbs.deepin.org/post/197036
down下来看看效果如何

执行脚本就可以了哦,不用下载
Reply View the author
落墨
deepin
2020-07-13 01:17
#15
感谢感谢
Reply View the author
ltree
deepin
2020-07-15 20:07
#16
去pling.com下载Mojave的gtk3主题,也许你会有不一样的收获
Reply View the author
whczl
deepin
2020-07-16 19:33
#17
墙裂支持
Reply View the author
XuCpeng
deepin
2020-07-16 19:47
#18
非常好 在论坛里多宣传宣传
Reply View the author
deepin-fun
deepin
2020-07-17 03:30
#19
https://bbs.deepin.org/post/197036
非常好 在论坛里多宣传宣传

谢谢,
Reply View the author
已退deepin
deepin
2020-07-17 06:42
#20
好东西。支持
Reply View the author
1 / 2
To page