deepin-topbar顶部状态栏,源码安装,无阴影
Tofloor
poster avatar
shenlongdaka
deepin
2019-10-13 09:38
Author
本帖最后由 shenlongdaka 于 2020-3-24 12:08 编辑

deepin-topbar顶部状态栏今天比较闲没事做,从github上下载了deepin-topbar源码,安装上后无阴影

时间修改了一下,去掉了年份显示,加上了星期,并把时间字体颜色改成了青色
去掉了充电中(Charging)显示缩短显示空间。

存在小bug,可能是语言问题,设置中选项字母不可见了。
具体效果看截图


从源码安装比较费事,需要安装的依赖库比较多,不怕麻烦的按照以下步骤安装:
安装步骤:
1、在本文件夹空白处右击鼠标,选择在终端中打开
2、把下面命令复制粘贴到终端里执行,只能用鼠标复制粘贴,终端里不能用ctrl+V
sudo apt install qttools5-dev libgsettings-qt-dev libdde-network-ut* libdframeworkdbus* libdbusmenu-qt5-dev libxcb-ewmh-dev libxcb-util* libxtst* libxcb-im* libxcb-ic* libxcb-co* libxcb-composite0-dev libprocps-dev dde-dock-dev qtbase5-dev-tools libdtkwidget-dev qt5* g++  cmake
3、输入你的本机密码或管理员密码执行
4、输入命令:mkdir build   执行
5、输入命令:cd build  执行
6、输入命令:cmake ../  执行,如果不出错,证明依赖库已全部安装,直接下一步。否则检查上述cmake过程,分析errors处错误,安装所缺少的依赖库。
7、输入命令:make   执行,如果不出错,证明依赖库已全部安装,直接下一步。否则检查上述make过程,分析errors处错误,安装所缺少的依赖库。
8、输入命令:sudo make install   执行
9、打开开始菜单-其他应用,就能看到Topbar的图标了,打开就可以运行顶部状态栏了。
10、恭喜你安装完成,当你打开的程序窗口最大化时,状态栏变黑色,恢复小窗口且离状态栏较远时,自动恢复半透明色。
感觉还可以的话,顶一下帖子别沉了。
Reply Favorite View the author
All Replies
3 / 4
To page
avatar
pgxppp
deepin
2019-11-11 08:17
#41
开机启动不显示
Reply View the author
avatar
andrew_8
deepin
2019-11-12 15:49
#42
https://bbs.deepin.org/post/183730
你好,请问make的时候出现  libdtkwidget.so:对‘QPlatformIntegrationFactory::keys(QString const&)@Qt_ ...

你好,我也是这样的情况,请问一下有什么解决方法不?
Reply View the author
avatar
andrew_8
deepin
2019-11-12 16:08
#43
https://bbs.deepin.org/post/183730
你好,请问make的时候出现  libdtkwidget.so:对‘QPlatformIntegrationFactory::keys(QString const&)@Qt_ ...

你好,我也是这种情况,请问有其他解决方法吗?
Reply View the author
avatar
shenlongdaka
deepin
2019-11-13 01:43
#44

打开开始菜单-其他应用-对准topbar图标右击鼠标-选择开机自动启动
同时按下Ctrl+Alt+Del打开系统监视器,在进程里找到topbar进程,结束他,就强制退出了,没法跟普通软件一样关闭。
Reply View the author
avatar
shenlongdaka
deepin
2019-11-13 01:45
#45
本帖最后由 shenlongdaka 于 2019-11-12 17:46 编辑
https://bbs.deepin.org/post/183730
你好,我也是这种情况,请问有其他解决方法吗?

这个问题我也不太明白,看39楼的,这哥们有研究
Reply View the author
avatar
andrew_8
deepin
2019-11-13 17:44
#46
https://bbs.deepin.org/post/183730
实际上,在我学习及重写deepin-deb-installer的过程中,你那出现的问题不是这些so库的原因,需要打开term ...

很棒!问题成功解决,谢谢层主!
Reply View the author
avatar
dy33796
deepin
2019-11-13 18:12
#47
就冲最大化 的时候  顶上还有   商店那个 最大化了以后上边都没了
Reply View the author
avatar
andrew_8
deepin
2019-11-13 18:31
#48
/home/andrew/Desktop/深度截图_选择区域_20191113102748.png
又出新问题了,安好后突然不显示,重启后也是这样,右击卸载提示不能卸载
有大神知道怎么回事吗?
Reply View the author
avatar
andrew_8
deepin
2019-11-13 18:32
#49
https://bbs.deepin.org/post/183730
/home/andrew/Desktop/深度截图_选择区域_20191113102748.png
又出新问题了,安好后突然不显示,重启后也是 ...

Reply View the author
avatar
andrew_8
deepin
2019-11-13 18:35
#50
本帖最后由 andrew_8 于 2019-11-13 10:38 编辑

Reply View the author
avatar
dy33796
deepin
2019-11-14 03:52
#51
大佬,我的是偶尔顶上就没了  一会有 一会没有  
Reply View the author
avatar
gangzai0707
deepin
2019-11-29 05:29
#52
/home/gangzai0707/下载/deepin-topbar/src/frame/mainframe.cpp:332:21: warning: unused variable ‘ratio’ [-Wunused-variable]
         const qreal ratio { devicePixelRatioF() };
                     ^~~~~
这个是环境的问题吗

Reply View the author
avatar
shenlongdaka
deepin
2019-12-04 01:25
#53
https://bbs.deepin.org/post/183730
/home/gangzai0707/下载/deepin-topbar/src/frame/mainframe.cpp:332:21: warning: unused variable ‘rati ...

这个问题可以忽略的
Reply View the author
avatar
hover120
deepin
2019-12-13 19:34
#54
大神topbar经常会隐藏,偶尔又会出现,就这样反反复复怎么解决呀?
Reply View the author
avatar
lzj551x
deepin
2020-01-02 16:49
#55
CMake Error: The source directory "/home/lin/Desktop" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI

这个怎么说
Reply View the author
avatar
hugochoi
deepin
2020-01-15 01:58
#56
我想卸载掉 提示卸载失败  怎么办????????
Reply View the author
avatar
pgxppp
deepin
2020-01-15 02:03
#57
https://bbs.deepin.org/post/183730
我想卸载掉 提示卸载失败  怎么办????????

看看装到哪里了,手动删除吧,我刚删掉
Reply View the author
avatar
hugochoi
deepin
2020-01-15 02:04
#58
https://bbs.deepin.org/post/183730
看看装到哪里了,手动删除吧,我刚删掉

我就根据楼主这方法安装的 我不知道安装在哪
Reply View the author
avatar
pgxppp
deepin
2020-01-15 02:34
#59
https://bbs.deepin.org/post/183730
我就根据楼主这方法安装的 我不知道安装在哪

终端命令 sudo whereis deepin-topbar
Reply View the author
avatar
qq1156029468
deepin
2020-03-13 05:50
#60
cmake ../  后提示:bash: cmake: 未找到命令
怎么解决?
Reply View the author
3 / 4
To page