-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Ubuntu Mate 20.04 wrong position #153
Comments
I solved the icon theme issue by uncommenting Line 44 in 4c6eb36
But I still need to implement "hiding of window" on focus out. |
I'm glad you used and liked kylin-nm。
Now "hiding of window" function work by 'bool MainWindow::event(QEvent *event)' .
if you want to implement "hiding of window" on focus out.
maybe can use another way to implement it.
just like:
add 'installEventFilter(this);' in MainWindow constructor
and override eventFilter function like this:
'/**
* @brief MainWindow::eventFilter
* @param watched
* @param event
* @return
*/
bool MainWindow::eventFilter(QObject *watched, QEvent *event)
{
if (event->type() == QEvent::ActivationChange) {
if(QApplication::activeWindow() != this) {
hideMainwindow();
}
}
return QMainWindow::eventFilter(watched,event);
}'
In addition, kylin-nm will work better with the ukui environment. For example, popup ui launches itself on the upper left part of the screen instead of lower right part of the screen. This is because there is no ukui-panel to provide location information. We can also manually change its location by modifying the 'MainWindow::handleIconClicked' function.
Hopefully it can help with you.Thanks again for your letter.
…------------------ 原始邮件 ------------------
发件人: "ukui/kylin-nm" ***@***.***>;
发送时间: 2021年10月26日(星期二) 晚上9:45
***@***.***>;
***@***.***>;
主题: [ukui/kylin-nm] On Ubuntu Mate 20.04 wrong position (Issue #153)
First of all I congratulate you on your project.
I am on Ubunto 20.04 Mate Desktop. I tried kylin-nm applet from offical repo. I liked it. I use it in my Mate Desktop by launching it via dbus-launch kylin-nm. It looks sleek and run well. I wanted to try its latest version. I cloned this repo and built it. I don't know if it's an intended design or a bug, popup ui launches itself on the upper left part of the screen instead of lower right part of the screen. And it doesn't hide when I click outside of the ui, I have to click tray icon to hide it again.
In the 1.2.4 version of it it uses tray icons from Mate Icon Theme which I like
Unfortunate kylin-nm-3.0.2 use its own icons. I wanted to insert those icons but I don't know how to implement it in the code.
Would you please help me?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all I congratulate you on your project.
I am on Ubunto 20.04 Mate Desktop. I tried
kylin-nm
applet from offical repo. I liked it. I use it in my Mate Desktop by launching it viadbus-launch kylin-nm
. It looks sleek and run well. I wanted to try its latest version. I cloned this repo and built it. I don't know if it's an intended design or a bug, popupui
launches itself on the upper left part of the screen instead of lower right part of the screen. And it doesn't hide when I click outside of theui
, I have to click tray icon to hide it again.In the 1.2.4 version of it it uses tray icons from Mate Icon Theme which I like
Unfortunate
kylin-nm-3.0.2
use its own icons. I wanted to insert those icons but I don't know how to implement it in the code.Would you please help me?
The text was updated successfully, but these errors were encountered: