【经验分享】deepin15.10 修改标题拦 宽度
Tofloor
poster avatar
59******91@qq.com
deepin
2019-05-20 18:47
Author
本帖最后由 thething 于 2019-5-20 10:57 编辑

                                

个人感觉还是deepin自带的主题还是很漂亮的,但是美中不足的的地方就是deepin默认主题的标题拦实在太宽,感觉标题拦“傻大宽”的风格与deepin的精致打磨格格不入,于是尝试手动修改标题拦的宽度。


deepin是不会提供修改标题拦高度的入口的,我们需要从修改配置文件入手。


步骤如下:

Ctrl+ Alt + T   打开终端


切换到主题目录下,输入命令

        cd /usr/share/aurorae/themes

ls 可以看到deepin自带的两个默认主题

        deepin deepin-dark


deepin的亮色主题为例,切换目录下

        cd deepin/

编辑配置文件

        sudo deepin-editor deepinrc


在配置文件中找到如下几行

标题拦高度主要取决于这三个值,它们的值分别对应:标题栏高度、按钮,默认是取40

       TitleHeight=40
       ButtonWidth=40
       ButtonHeight=40

只要修改它们的值使自己满意即可,这里可以参考我的设置


这样设置也就是长方形的按钮,这样可以避免按钮太小导致很难点到

Ctrl+ S  保存 退出

重新打开一个窗口,或者注销、再登录,就能看到效果。

这样就窄了些



同样的你可以修改配置文件中的其他值,来设置出自己想要的效果,当然了前提是懂一些简单的英语。

Reply Favorite View the author
All Replies
2 / 2
To page
chenjunan0724
deepin
2019-07-20 22:49
#21
为啥标题栏和菜单栏不能重合,vscode窗口看着好难受啊。dde这么漂亮,这一点实在是太打折扣了。
Reply View the author
走钢丝
deepin
2019-07-20 22:57
#22
https://bbs.deepin.org/post/178254
为啥标题栏和菜单栏不能重合,vscode窗口看着好难受啊。dde这么漂亮,这一点实在是太打折扣了。 ...

vscode 不是有设置可以取消么?在论坛搜搜就能找到了。
Reply View the author
lijiaye526
deepin
2019-07-22 22:35
#23
https://bbs.deepin.org/post/178254
我的15.10.2版本也找不到目录/usr/share/aurorae/themes

你可以试试修改usr/share/themes/deepin/gtk-3.0/gtk.css的样式文件
找到 .ssd decoration headerbar.default-decoration button.titlebutton ,将min-height,min-width设置成你想要的高宽即可
Reply View the author
kasuo405
deepin
2019-07-25 16:47
#24
https://bbs.deepin.org/post/178254
你可以试试修改usr/share/themes/deepin/gtk-3.0/gtk.css的样式文件
找到 .ssd decoration headerbar.de ...

升级到15.11了,修改gtk.css对应的样式,没有效果呢
  1. .ssd decoration headerbar.default-decoration button.titlebutton {
  2.     min-width: 10px;
  3.     min-height: 10px;
  4.     margin: 0px;
  5.     margin: 0px;
  6.     margin-left:-2px;
  7.     padding-left: 0px;
  8.     padding-right: 0px;
  9. }
Copy the Code
Reply View the author
kasuo405
deepin
2019-07-25 16:48
#25
https://bbs.deepin.org/post/178254
你可以试试修改usr/share/themes/deepin/gtk-3.0/gtk.css的样式文件
找到 .ssd decoration headerbar.de ...

升级到15.11了,修改gtk.css对应的样式,没有效果呢
.ssd decoration headerbar.default-decoration button.titlebutton {
    min-width: 10px;
    min-height: 10px;
    margin: 0px;
    margin: 0px;
    margin-left:-2px;
    padding-left: 0px;
    padding-right: 0px;
Reply View the author
要讲武德
deepin
2019-07-25 17:40
#26
设计师太固执了.  设计的这么丑 就是不改
Reply View the author
wangjingxaio
deepin
2019-09-18 01:01
#27
https://bbs.deepin.org/post/178254
vscode 不是有设置可以取消么?在论坛搜搜就能找到了。

点击:文件> 首选项>设置

将 "window.titleBarStyle": "custom" 配置到用户设置里边即可
Reply View the author
chenjunan0724
deepin
2019-10-05 06:08
#28
真的可以,多谢
Reply View the author
bigben446
deepin
2019-10-23 08:10
#29
好像找不到deepinrc的文件
Reply View the author
bill_robot
deepin
2020-05-21 09:19
#30
https://bbs.deepin.org/post/178254
cd /usr/share/aurorae/themes
cd:目录 “/usr/share/aurorae/themes” 不存在

确实没有这个目录,我也没有找到
Reply View the author
咿呀
deepin beta test group
2020-05-21 16:46
#31
本帖最后由 geniusking 于 2020-5-21 09:13 编辑
https://bbs.deepin.org/post/178254
确实没有这个目录,我也没有找到

按如下方式操作
  1. mkdir -p ~/.local/share/deepin/themes/deepin/light
  2. mkdir -p ~/.local/share/deepin/themes/deepin/dark
Copy the Code
在这两个目录下新建titlebar.ini文件
  1. touch ~/.local/share/deepin/themes/deepin/light/titlebar.ini
  2. touch ~/.local/share/deepin/themes/deepin/dark/titlebar.ini
Copy the Code
  1. cd ~/.local/share/deepin/themes/deepin/light
  2. deepin-editor titlebar.ini
Copy the Code
  1. cd ~/.local/share/deepin/themes/deepin/dark
  2. deepin-editor titlebar.ini
Copy the Code

在tillebar.ini中添加如下内容:
  1. [Active]
  2. height=24

  3. [Inactive]
  4. height=24
Copy the Code

Reply View the author
deepin-mq
deepin
2020-05-21 16:50
#32
感谢分享。
Reply View the author
wei_pan
deepin
2020-05-21 17:02
#33
在20下能修改吗
Reply View the author
咿呀
deepin beta test group
2020-05-21 17:05
#34

我发的这个可以
Reply View the author
pillar_stone
deepin
2020-05-22 07:55
#35
https://bbs.deepin.org/post/178254
按如下方式操作
在这两个目录下新建titlebar.ini文件

标题栏调完高度,最小化,最大化,关闭 这三个按钮怎么变大?
Reply View the author
2 / 2
To page