Code Monkey home page Code Monkey logo

deepin-topbar's Introduction

Deepin Topbar

This is a project that I have a whim to help improve my ability to write code.

How to get my message and software updates?

I'll release messages on my twitter.

Twitter @justforlxz

ToDo List

  • Network (wireless list)
  • Calendar (Only see web ical, no plans to support editting)
  • Global Menu (Non-primary)
  • quick search (maybe will create new repo)
  • system info (e.g. cpu, memory, disk historical graph)
  • power save (use dde function)

Finished

  • Current Window Indicator
  • Position
  • Network Speed
  • system tray
  • Sound and media control
  • power and battery
  • datetime
  • Notify list

Dependencies

Build dependencies

  • Qt5 (>= 5.6)
  • deepin-tool-kit (developer package)
  • dde-qt-dbus-factory (developer package)
  • deepin-qt5integration (developer package)
  • dde-network-utils (developer package)
  • xcb-ewmh (developer package)
  • xcb-util (developer package)
  • xtst (developer package)
  • xcb-image (developer package)
  • xcb-icccm (developer package)
  • xcb-composite (developer package)
  • procps (developer package)
  • cmake (build package)

Runtime dependencies

Partial Preview

If you use Deepin, just install from appstore.

If you use Arch, you can install deepin-topbar in Community repo.

Installation

Build from source code

  1. Make sure you have installed all dependencies.

  2. Build:

$ cd deepin-topbar
$ mkdir Build
$ cd Build
$ cmake ../
$ make
  1. Install:
$ sudo make install

The executable binary file could be found at /usr/bin/deepin-topbar after the installation is finished.

Getting help

You can create a issue, I will help you.

You may also find these channels useful if you encounter any other issues:

  • deepin community Topbar is also the community software that you can post for help.

License

Deepin-topbar is licensed under GPLv3.

Want to know how to help me?

It's simple.

  • fork and pull request. I want more people to help me improve it.

deepin-topbar's People

Contributors

bandysc avatar bonn333 avatar caglarturali avatar ch8matt avatar emhaye avatar felixonmars avatar firstgoer avatar ivanovmi avatar justforlxz avatar pdayvson avatar pikachuhy avatar rafipriatna avatar reionwong avatar rendyananta avatar titeya avatar veetaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deepin-topbar's Issues

Add Some Features

  • add global menu !
  • Try to Copy Something Like Mac OS Topbar or Ubuntu Unity Topbar

Left corner icon

  1. I saw some youtube videos, where when you switch to another app icon in the left corner changes accordingly.
    For me it doesn't work, it is only deepin logo all the time.
  2. Also when you click on this icon to open dropdown menu and after that click somewhere outisde topbar it doesnt lose focus and hides - it stays open.
  3. What should item "Preference setting" in this dropdown menu do? For me it does nothing when I click it.

Also when you are on desktop there is no "Deepin 15.4.1" inscription there. It disappeared after reboot.
Deepin 15.4.1

QXcbConnection: XCB error

Hi, awesome bar. Thanks for that :)

When I started in a terminal this text show:
QXcbConnection: XCB error: 5 (BadAtom), sequence: 545, resource id: 1818886716, major code: 18 (ChangeProperty), minor code: 0

After that, all de plugins load ok.
deepinscreenshot_select-area_20170826080435
deepinscreenshot_select-area_20170826080456

ArchLinux + Deepin DE

编译错误

cd frame/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/kamen/deepin-topbar/frame/frame.pro -o Makefile ) && make -f Makefile 
make[1]: Entering directory '/home/kamen/deepin-topbar/build/frame'
g++ -m64 -Wl,-O1 -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -o ../../../deepin-topbar/dde-topbar switchitem.o main.o mainframe.o pluginloader.o pluginscontroller.o pluginsitem.o pluginsitemcontroller.o mainpanel.o frame.o item.o stretchitem.o frameshadow.o itempopupwindow.o moc_switchitem.o moc_mainframe.o moc_pluginloader.o moc_pluginscontroller.o moc_pluginsitem.o moc_pluginsitemcontroller.o moc_mainpanel.o moc_frame.o moc_item.o moc_stretchitem.o moc_frameshadow.o moc_itempopupwindow.o   -L/usr/X11R6/lib64 -lxcb-ewmh -lxcb -ldtkwidget -ldtkbase -ldtkutil -ldframeworkdbus -lX11 -lQt5X11Extras -lQt5Widgets -lQt5Gui -lQt5DBus -lQt5Core -lGL -lpthread 
mainframe.o:在函数‘MainFrame::init()’中:
mainframe.cpp:(.text+0x3b5):对‘Dtk::Widget::DBlurEffectWidget::setMaskColor(Dtk::Widget::DBlurEffectWidget::MaskColorType)’未定义的引用
mainframe.o:在函数‘MainFrame::registerDesktop()’中:
mainframe.cpp:(.text+0xbcd):对‘Dtk::Widget::DForeignWindow::fromWinId(unsigned long long)’未定义的引用
mainframe.cpp:(.text+0xbdd):对‘Dtk::Widget::DForeignWindow::wmClass() const’未定义的引用
itempopupwindow.o:在函数‘ItemPopupWindow::compositeChanged()’中:
itempopupwindow.cpp:(.text+0x60):对‘Dtk::Widget::DWindowManagerHelper::hasComposite() const’未定义的引用
itempopupwindow.o:在函数‘ItemPopupWindow::ItemPopupWindow(QWidget*)’中:
itempopupwindow.cpp:(.text+0xb65):对‘Dtk::Widget::DWindowManagerHelper::instance()’未定义的引用
itempopupwindow.cpp:(.text+0xb7e):对‘Dtk::Widget::DArrowRectangle::setBackgroundColor(Dtk::Widget::DBlurEffectWidget::MaskColorType)’未定义的引用
itempopupwindow.cpp:(.text+0xba1):对‘Dtk::Widget::DWindowManagerHelper::hasCompositeChanged()’未定义的引用
itempopupwindow.cpp:(.text+0xc10):对‘Dtk::Widget::DWindowManagerHelper::staticMetaObject’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:201: recipe for target '../../../deepin-topbar/dde-topbar' failed
make[1]: *** [../../../deepin-topbar/dde-topbar] Error 1
make[1]: Leaving directory '/home/kamen/deepin-topbar/build/frame'
Makefile:43: recipe for target 'sub-frame-make_first' failed
make: *** [sub-frame-make_first] Error 2

编译安装后运行时错误

$ ./deepin-topbar
./deepin-topbar: relocation error: /usr/lib/x86_64-linux-gnu/libdtkwidget.so.2: symbol _ZN27QPlatformIntegrationFactory4keysERK7QString, version Qt_5 not defined in file libQt5Gui.so.5 with link time reference

fatal error: DWindowManagerHelper: No such file or directory

When i am trying to build the package, it shows the error:

raihan@lenovo:~/deepin-topbar/build$ make
cd frame/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/raihan/deepin-topbar/frame/frame.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/home/raihan/deepin-topbar/build/frame'
g++ -c -m64 -pipe -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_MESSAGELOGCONTEXT -DQT_MESSAGELOGCONTEXT -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../frame -I. -I../../interfaces -I../../widgets -isystem /usr/include/libdtk-1.0/DWidget -isystem /usr/include/libdtk-1.0/DBase -isystem /usr/include/libdtk-1.0/DUtil -isystem /usr/include/libdframeworkdbus-1.0 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o switchitem.o ../../widgets/switchitem.cpp
g++ -c -m64 -pipe -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_MESSAGELOGCONTEXT -DQT_MESSAGELOGCONTEXT -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../frame -I. -I../../interfaces -I../../widgets -isystem /usr/include/libdtk-1.0/DWidget -isystem /usr/include/libdtk-1.0/DBase -isystem /usr/include/libdtk-1.0/DUtil -isystem /usr/include/libdframeworkdbus-1.0 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o main.o ../../frame/main.cpp
g++ -c -m64 -pipe -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_MESSAGELOGCONTEXT -DQT_MESSAGELOGCONTEXT -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../frame -I. -I../../interfaces -I../../widgets -isystem /usr/include/libdtk-1.0/DWidget -isystem /usr/include/libdtk-1.0/DBase -isystem /usr/include/libdtk-1.0/DUtil -isystem /usr/include/libdframeworkdbus-1.0 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o mainframe.o ../../frame/mainframe.cpp
In file included from ../../frame/item/item.h:4:0,
from ../../frame/item/pluginsitem.h:5,
from ../../frame/controller/pluginscontroller.h:5,
from ../../frame/controller/pluginsitemcontroller.h:4,
from ../../frame/mainpanel.h:4,
from ../../frame/mainframe.cpp:2:
../../frame/utils/itempopupwindow.h:7:32: fatal error: DWindowManagerHelper: No such file or directory
#include
^
compilation terminated.
Makefile:494: recipe for target 'mainframe.o' failed
make[1]: *** [mainframe.o] Error 1
make[1]: Leaving directory '/home/raihan/deepin-topbar/build/frame'
Makefile:43: recipe for target 'sub-frame-make_first' failed
make: *** [sub-frame-make_first] Error 2

NetSpeed shouldn't show kbits only kbs would be better

hello friend

plsease can you adjust newtork speed indictator in topbar to show only in kiloybytes not in kilo bits ??

it is annoying to keep seeing it giving readings even if internet isn't connected

please adjust it to to not show kbits for example instead of showing 600 bit shows 1 kb or 0 kb would be better

also the upload and download arrow would be better if you replaced them with simple up and down arrow than current wide arrow (simple arrows like the up and down arrow in android phones )

last thing ,, showing system tray icons disable icons in deepin dock system tray so if you keen keep it working in both topbar and system tray would be better or if you can hide dock system tray would be better

these are just suggestions ,,, the most important for me is not to show net speed in kbits but kbytes so please apply this

Ideas

First of all, I wana thank you, with latest dev branch, I see a lot of improvement, I think it's pretty usable now, and have just some ideas to share.

  1. Personally I don't see the point of holding this show/hide of plugins in preference dialog, and liked the previous way, where Preference open the system preference, and may be moving the show/hide in menu item like the dde-docker will be better.

untitled

  1. The notification icon in very right, could open the system notification (3th page of the system settings)

  2. I really miss the dark theme, seems it doesn't work anymore.

error installing ...

Hi,

E: The repository 'https://packages.mkacg.com panda Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
Err:1 https://packages.mkacg.com panda/main amd64 deepin-topbar amd64 0.3.5-1
  404  Not Found
E: Failed to fetch https://packages.mkacg.com/pool/main/d/deepin-topbar/deepin-topbar_0.3.5-1_amd64.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

unable to install package ...

clock and date postion

Currently clock and date position are in the centre of topbar

is there ability to let us choose their postition because when i have multiple system tray icons they override the clock and date in centre of topbar

i saw in previous versions of topbar that the clock was iin the left beside sound so if you can add an option to choose to put it to the left or the centre and to show only clock or clock and date

编译出错了

执行make出现:cd frame/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/lsl/Desktop/deepin-topbar/frame/frame.pro -o Makefile ) && make -f Makefile
Project ERROR: xcb-util development package not found
Makefile:43: recipe for target 'sub-frame-make_first' failed
make: *** [sub-frame-make_first] Error 3

Fail to compile

I tried to compile from Github, I get this issue:

maxximo88@maxximo88-PC:~/deepin-topbar/build$ make
cd frame/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/maxximo88/deepin-topbar/frame/frame.pro -o Makefile ) && make -f Makefile
make[1]: ingresso nella directory "/home/maxximo88/deepin-topbar/build/frame"
g++ -c -m64 -pipe -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_MESSAGELOGCONTEXT -DQT_MESSAGELOGCONTEXT -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../frame -I. -I../../interfaces -I../../widgets -isystem /usr/include/libdtk-1.0/DWidget -isystem /usr/include/libdtk-1.0/DBase -isystem /usr/include/libdtk-1.0/DUtil -isystem /usr/include/libdframeworkdbus-1.0 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o switchitem.o ../../widgets/switchitem.cpp
g++ -c -m64 -pipe -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_MESSAGELOGCONTEXT -DQT_MESSAGELOGCONTEXT -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../frame -I. -I../../interfaces -I../../widgets -isystem /usr/include/libdtk-1.0/DWidget -isystem /usr/include/libdtk-1.0/DBase -isystem /usr/include/libdtk-1.0/DUtil -isystem /usr/include/libdframeworkdbus-1.0 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o main.o ../../frame/main.cpp
g++ -c -m64 -pipe -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_MESSAGELOGCONTEXT -DQT_MESSAGELOGCONTEXT -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../frame -I. -I../../interfaces -I../../widgets -isystem /usr/include/libdtk-1.0/DWidget -isystem /usr/include/libdtk-1.0/DBase -isystem /usr/include/libdtk-1.0/DUtil -isystem /usr/include/libdframeworkdbus-1.0 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o mainframe.o ../../frame/mainframe.cpp
In file included from ../../frame/item/item.h:4:0,
from ../../frame/item/pluginsitem.h:5,
from ../../frame/controller/pluginscontroller.h:5,
from ../../frame/controller/pluginsitemcontroller.h:4,
from ../../frame/mainpanel.h:4,
from ../../frame/mainframe.cpp:2:
../../frame/utils/itempopupwindow.h:7:32: fatal error: DWindowManagerHelper: File o directory non esistente
#include
^
compilation terminated.
Makefile:494: set di istruzioni per l'obiettivo "mainframe.o" non riuscito
make[1]: *** [mainframe.o] Errore 1
make[1]: uscita dalla directory "/home/maxximo88/deepin-topbar/build/frame"
Makefile:43: set di istruzioni per l'obiettivo "sub-frame-make_first" non riuscito
make: *** [sub-frame-make_first] Errore 2


Maybe a Deb installation file could be useful!!

xcb-ewmh depends on Manjaro/Archlinux

Hi!
When trying to build deepin-topbar on Manjarolinux (Archlinux based) we see this error

Project ERROR: xcb-ewmh development package not found

At the same time package xcb-util-wm is installed. The package includes files:

    usr/include/xcb/xcb_ewmh.h
    usr/include/xcb/xcb_icccm.h
    usr/lib/libxcb-ewmh.so
    usr/lib/libxcb-ewmh.so.2
    usr/lib/libxcb-ewmh.so.2.0.0
    usr/lib/libxcb-icccm.so
    usr/lib/libxcb-icccm.so.4
    usr/lib/libxcb-icccm.so.4.0.0
    usr/lib/pkgconfig/xcb-ewmh.pc
    usr/lib/pkgconfig/xcb-icccm.pc
    usr/share/licenses/xcb-util-wm/LICENSE

Could you kindly let us know which files we are missing so we can try to find out if we need another dependency?
Thank you.

concept-deepin-topBar ... ???

Hi,

elegance being the keyword ... Deepin is elegant !!!

I am not a coder(i am a Computer Science Graduate and an ex-banker), had i been one(a coder) probably you'd have deepin-topbar on the following lines, unfortunately i am not ... so i am open to collaboration with a coder.

And i would like to believe that If Deepin ever officially decided to develop the topBar it would almost & certainly be like the one i am posting here ... i guess.

don't you think the elegance of deepin is consistent and can be seen in this visual topbar ?

OK ... here you go ... for your-eyes-only ...

it is NOT a topBar in flesh and blood ... it is just a concept topBar(at least until a coder is willing to collaborate and want to go down this road and help realize it) ...

deepin_topbar_screen 1

deepin_topbar_screen 2

deepin_topbar_screen 3

deepin_topbar_screen 4

deepin_topbar_screen 5

deepin_topbar_screen 6

deepin_topbar_screen 7

Deepin Topbar and Dock

Arch-Deepin
System Tray shortcuts do not work if Topbar is enabled.
If the Topbar is active the Dock System Tray does not open the programs.

Error while build

I have next error when trying to build deepin-toolbar:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.1/../../../../lib/libdtkwidget.so: undefined reference to `Dtk::Core::DSettingsGroup::isHidden() const'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:677: ../../deepin-topbar-0.4.2/deepin-topbar] Error 1
make[1]: Leaving directory '/home/ragor/Downloads/deepin-topbar/src/deepin-topbar-0.4.2/frame'
make: *** [Makefile:45: sub-frame-make_first] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Have anyone face the same error and could help me?

Make a deb package for deepin-topbbar

hi i like your application
but i don't how to install it, i don't know how to compile it,
so i have a sugguestion for you, could you make a deb package for deepin-topbar?
is going to be more easier to install 👍 :)

xtst

Project ERROR: xtst development package not found

编译报错

编译报错日志

cd frame/ && make -f Makefile 
make[1]: Entering directory '/tmp/deepin-topbar-0.3.5/Build/frame'
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_MESSAGELOGCONTEXT -DQT_MESSAGELOGCONTEXT -DQT_MESSAGELOGCONTEXT -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I../../frame -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtDBus -I/usr/include/qt4 -I../../interfaces -I../../widgets -I../../dbus -I/usr/include/libdtk-2.0/DCore -I/usr/include/libdtk-2.0/DWidget -I/usr/include/libdframeworkdbus-1.0 -I/usr/include/x86_64-linux-gnu/qt5/QGSettings -I. -I../../frame -I. -o switchitem.o ../../widgets/switchitem.cpp
In file included from ../../widgets/switchitem.h:6:0,
                 from ../../widgets/switchitem.cpp:1:
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:56:22: error: expected ‘;’ at end of member declaration
     QSize sizeHint() const Q_DECL_OVERRIDE;
                      ^~~~~
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:56:28: error: ‘Q_DECL_OVERRIDE’ does not name a type
     QSize sizeHint() const Q_DECL_OVERRIDE;
                            ^~~~~~~~~~~~~~~
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:72:35: error: expected ‘;’ at end of member declaration
     void paintEvent(QPaintEvent *e) Q_DECL_OVERRIDE;
                                   ^
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:72:37: error: ‘Q_DECL_OVERRIDE’ does not name a type
     void paintEvent(QPaintEvent *e) Q_DECL_OVERRIDE;
                                     ^~~~~~~~~~~~~~~
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:73:39: error: expected ‘;’ at end of member declaration
     void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
                                       ^
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:73:41: error: ‘Q_DECL_OVERRIDE’ does not name a type
     void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
                                         ^~~~~~~~~~~~~~~
../../widgets/switchitem.cpp: In constructor ‘topbar::widgets::SwitchItem::SwitchItem(QWidget*)’:
../../widgets/switchitem.cpp:23:39: error: ‘void Dtk::Widget::DSwitchButton::checkedChanged(bool)’ is protected within this context
     connect(m_switch, &DSwitchButton::checkedChanged, this, &SwitchItem::clicked);
                                       ^~~~~~~~~~~~~~
In file included from ../../widgets/switchitem.h:6:0,
                 from ../../widgets/switchitem.cpp:1:
/usr/include/libdtk-2.0/DWidget/dswitchbutton.h:69:10: note: declared protected here
     void checkedChanged(bool arg);
          ^~~~~~~~~~~~~~
../../widgets/switchitem.cpp:23:81: error: no matching function for call to ‘topbar::widgets::SwitchItem::connect(Dtk::Widget::DSwitchButton*&, void (Dtk::Widget::DSwitchButton::*)(bool), topbar::widgets::SwitchItem*, void (topbar::widgets::SwitchItem::*)(bool))’
     connect(m_switch, &DSwitchButton::checkedChanged, this, &SwitchItem::clicked);
                                                                                 ^
In file included from /usr/include/qt4/QtGui/qwidget.h:47:0,
                 from /usr/include/qt4/QtGui/QWidget:1,
                 from ../../widgets/switchitem.h:4,
                 from ../../widgets/switchitem.cpp:1:
/usr/include/qt4/QtCore/qobject.h:204:17: note: candidate: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
     static bool connect(const QObject *sender, const char *signal,
                 ^~~~~~~
/usr/include/qt4/QtCore/qobject.h:204:17: note:   no known conversion for argument 2 from ‘void (Dtk::Widget::DSwitchButton::*)(bool)’ to ‘const char*’
/usr/include/qt4/QtCore/qobject.h:217:17: note: candidate: static bool QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
     static bool connect(const QObject *sender, const QMetaMethod &signal,
                 ^~~~~~~
/usr/include/qt4/QtCore/qobject.h:217:17: note:   no known conversion for argument 2 from ‘void (Dtk::Widget::DSwitchButton::*)(bool)’ to ‘const QMetaMethod&’
/usr/include/qt4/QtCore/qobject.h:337:13: note: candidate: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
 inline bool QObject::connect(const QObject *asender, const char *asignal,
             ^~~~~~~
/usr/include/qt4/QtCore/qobject.h:337:13: note:   no known conversion for argument 2 from ‘void (Dtk::Widget::DSwitchButton::*)(bool)’ to ‘const char*’
Makefile:935: recipe for target 'switchitem.o' failed
make[1]: *** [switchitem.o] Error 1
make[1]: Leaving directory '/tmp/deepin-topbar-0.3.5/Build/frame'
Makefile:39: recipe for target 'sub-frame-make_default' failed
make: *** [sub-frame-make_default] Error 2

Black border bottom

Hi,
I really love your works, but i want ask something..
How to delete this black border bottom?
deepinscreenshot_select-area_20180313192857
Thanks!

Unable to install in Deepin 15.5

You guys did a great job! This is what makes deepin linux complete. But currently it is showing dependency issues in deepin 15.5 when trying to install using ppa.

deepin-topbar : Depends: libdframeworkdbus2 but it is not installable
Depends: libdtkwidget2 (>= 2.0.8.1-1) but 2.0.7.2-2 is to be installed

Global Menu

Is a global appmenu a planned feature? Something like vala panel appmenu!

Otherwise: Great work on this topbar, really works great with the distro!

new function

希望可以加入显示系统参数信息的,
例如:内存使用率,CPU使用率,磁盘剩余空间,CPU温度等。。。

或者天气之类,比较常用的功能。

Unable to Install on ubuntu 18.04 - Deepin DE.

The following packages have unmet dependencies:
deepin-topbar : Depends: libdframeworkdbus but it is not installable
E: Unable to correct problems, you have held broken packages.

Make Support for libdframeworkdbus1 or dbus-dev.

libdframeworkdbus package not found ,,
its saying replaceable to libdframeworkdbus1 or 1:i386,, installed libdframeworkdbus1 but same, not works.. fix it please

Possible memory leak

my laptop was active for a quite some time and now I see that topbar eat out 700mb of ram.
I think that is too much.
image

System tray black icons

deepin-topbar-black-icons

Hi, I think black icons in system tray looks better for a light theme, I got this with a little hack. Do you know if exist other way to obtain black icons from the system?

diff --git a/modules/system-tray/traywidget.cpp b/modules/system-tray/traywidget.cpp
index a57610b..af11e3b 100755
--- a/modules/system-tray/traywidget.cpp
+++ b/modules/system-tray/traywidget.cpp
@@ -492,8 +492,10 @@ void TrayWidget::refershIconImage()
return;

m_image = qimage.scaled(16 * ratio, 16 * ratio, Qt::KeepAspectRatio, Qt::SmoothTransformation);
+ m_image = m_image.convertToFormat(QImage::Format_Alpha8, Qt::MonoOnly);
m_image.setDevicePixelRatio(ratio);

update();
emit iconChanged();
}

add network and sound plugin

Only the wired mode will open the control center. Otherwise, the popup window will be opened.
The interface will be the same as dock.

Window actions [Feature request]

I suggest you to implement window actions in topbar. I mean, if window in a fullscreen mode, then close/resize actions should appear in topbar in the right corner(all icons could be moved to left) and window title appear in center of top bar, i.e. your topbar becomes window title.
I mean implement something similar to macOS/Ubuntu style.

Compilatoin topbar

Tell me what is the problem when you compile? All dependencies installed.
deepinscreenshot_deepin-terminal_20180321235034

Version number have error!

Because of my mistakes, resulting in the wrong version number to use 3.x, need to manually downgrade.

sudo apt install deepin-topbar=0.3.2.4-1

I am so sorry.

Suggestion not Issue about topbar color

hello @kirigayakazushin
just i want to provide a suggestion which i don't expect it to be applicable or not sure that it may seems nice

but do you know what some xposed modules for android like flat style colored bars and PerfectColorBar ??
they change color of status bar in android to have the same color of top of the opened app

i don't expect this to be applicable to topbar in linux but i just provided it as a suggestion
like hear in this screenshot ,, the color of statusbar and navigation bar are like the color of top and bottom on opened plus messenger (unofficial telegram client for android) ( it is an example to explain what i mean )
so i ask can topbar aquire color from opened app top color ?????

hope to hear your reply
thx sir

photo_2018-06-07_18-36-45

Force quit action[Bug]

Force quit action have a strange behavior:

  1. Nauitilus - acts as should
  2. Spotify/VIvaldi - opens windows view(like when you scroll over the icon)
  3. Opera - opens new incognito window(????????)
  4. Deepin Terminal - opens weird version of terminal, which I was unable to close.

I would suggest you to simply call xkill, so user can decide which window he wants to close by force.

Can add a theme manager?

It's just a personnal opinion but i think the new theme (Gnomelike ) is not realy beautifull can you add the possibility to switch beetween the old theme and the new ? or perhaps a more complet customing system like drag and drop components, edit icons etc ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.