From eec198eca44c844bd4de00454eea6da38691df58 Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Sat, 7 Apr 2018 20:35:42 +0600 Subject: [PATCH 1/2] Better Integration with X11 Added: X11 Window Manager Bypass TaskBar -> Qt::X11BypassWindowManagerHint No Focus Window -> Qt::WindowDoesNotAcceptFocus Disable Shadowed Window -> Qt::NoDropShadowWindowHint --- src/frontend/TopBar.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/frontend/TopBar.cpp b/src/frontend/TopBar.cpp index 5346de5f..ce39b6c1 100644 --- a/src/frontend/TopBar.cpp +++ b/src/frontend/TopBar.cpp @@ -70,7 +70,16 @@ TopBar::~TopBar() } void TopBar::SetupTopBar() { + #if defined(linux) || defined(__linux__) || defined(__linux) + this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint|Qt::X11BypassWindowManagerHint|Qt::WindowDoesNotAcceptFocus|Qt::NoDropShadowWindowHint); + /* Added: + * X11 Window Manager Bypass TaskBar -> Qt::X11BypassWindowManagerHint + * No Focus Window -> Qt::WindowDoesNotAcceptFocus + * Disable Shadowed Window -> Qt::NoDropShadowWindowHint + */ + #else this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); + #endif this->setFixedSize(QSize(this->width(), this->height())); move(gSettings->getTopBarWindowPosition()); From 3a7ab800b3786772945fa41c6abb605b0f805856 Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Sat, 7 Apr 2018 20:38:00 +0600 Subject: [PATCH 2/2] Updated Topbar UI --- src/frontend/TopBar.ui | 80 ++++++++++++++++++++++++++++++++---------- 1 file changed, 61 insertions(+), 19 deletions(-) diff --git a/src/frontend/TopBar.ui b/src/frontend/TopBar.ui index cd2c3e47..d3c601f6 100644 --- a/src/frontend/TopBar.ui +++ b/src/frontend/TopBar.ui @@ -6,10 +6,16 @@ 0 0 - 181 - 31 + 156 + 26 + + + 999 + 999 + + ArrowCursor @@ -20,16 +26,31 @@ :/images/OpenBangla-Keyboard.png:/images/OpenBangla-Keyboard.png + + false + + + + 16777187 + 16777215 + + - 120 + 104 0 - 31 - 31 + 27 + 27 + + + 0 + 0 + + Help @@ -37,14 +58,29 @@ :/images/about.png:/images/about.png + + + 12 + 12 + + + + false + + + false + + + false + - 30 + 26 0 - 31 - 31 + 27 + 27 @@ -58,10 +94,10 @@ - 60 + 52 0 - 31 - 31 + 27 + 27 @@ -75,10 +111,10 @@ - 90 + 78 0 - 31 - 31 + 27 + 27 @@ -92,10 +128,10 @@ - 150 + 130 0 - 31 - 31 + 27 + 27 @@ -111,8 +147,8 @@ 0 0 - 31 - 31 + 27 + 27 @@ -125,6 +161,12 @@ :/images/icon.png:/images/icon.png + + + 16 + 16 + +