Skip to content
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

Always show battery percentage or give an option to show it #10

Open
alexanderadam opened this issue May 13, 2021 · 10 comments
Open

Always show battery percentage or give an option to show it #10

alexanderadam opened this issue May 13, 2021 · 10 comments

Comments

@alexanderadam
Copy link

alexanderadam commented May 13, 2021

It would be great if percentage of the battery could also be shown before the name of the device.

PS: Thank you so much for Soduto 👍

@Ashinch
Copy link
Contributor

Ashinch commented Jun 18, 2021

You can check out my fork.

@alexanderadam
Copy link
Author

You can check out my fork.

Are you planning on doing a pull request?

@Ashinch
Copy link
Contributor

Ashinch commented Jun 18, 2021

I'm not sure if I will pull request, because this project has been out of maintenance for a long time, and the author may not want to merge it. But I have completed this function in my repo, but the library of this project is too old to be bundle for you on my new macOS. If you understand build it, you can go to my fork branch to get the source code.

@alexanderadam
Copy link
Author

I'm not sure if I will pull request, because this project has been out of maintenance for a long time, and the author may not want to merge it.

I'm sure that @giedrius-stanevicius will consider it. The README was just updated in February this year.

If you understand build it, you can go to my fork branch to get the source code.

I really don't. 😆

@Ashinch
Copy link
Contributor

Ashinch commented Jun 18, 2021

Ok. I will try to pull request. If you are using KDE-Connect for Android, you can also check out my fork repo. It has some interesting extra features and has released an apk.

@alexanderadam
Copy link
Author

Ok. I will try to pull request.

Great 👍

If you are using KDE-Connect for Android, you can also check out my fork repo. It has some interesting extra features and has released an apk.

I do. But I really don't want to have struggles regarding updates. That's why I'm always using the standard packages of F-Droid.
But maybe you should consider doing PRs for these patches as well? 😉

@giedrius-stanevicius
Copy link
Collaborator

Hey there, @Ashinch ! I would gladly accept your changes into the project. Just want to notice several things about your changes. First, I think there should be two separate pull request as there are two separate features updated: the battery indicator and the notifications service.

The battery indicator part looks mostly ok, only not sure about the device name and battery status placement - as in the changed version there is text for the battery status and text for device name and they get somewhat merged into one with no clear separation. Maybe battery status at the right side of menu could look better and more in line with native macOS battery status display:
Screenshot 2021-06-19 at 00 29 17

Regarding the activation of notifications service - well it was disabled deliberately as I considered it to be not finished. While it works, it might get quite noisy and I wanted to give users some means to control what types of notifications and when to show. On the other hand, I recognize that the feature could be useful even in the current state, so I don't object to the change in general. However, I'd like that the service could be easily switched on or off. A nice option would be to add a checkbox to the settings UI. A simpler option - add a compile time flag to enable the feature (default should be off).

@Ashinch
Copy link
Contributor

Ashinch commented Jun 19, 2021

Hi @giedrius-stanevicius , thank you for your reply, I will separate and organize the battery part later.

@Ashinch
Copy link
Contributor

Ashinch commented Jun 19, 2021

Hey ! @giedrius-stanevicius

The battery indicator part looks mostly ok, only not sure about the device name and battery status placement - as in the changed version there is text for the battery status and text for device name and they get somewhat merged into one with no clear separation. Maybe battery status at the right side of menu could look better and more in line with native macOS battery status display:

I have a question. If the battery indicator moves to the right, it may be blocked when the device name is too long, and the battery icon may also move to the right with the text?

How do you think about this question?

@giedrius-stanevicius
Copy link
Collaborator

giedrius-stanevicius commented Jun 19, 2021

I think battery icon and percentage text should be near each other.

Regarding the placement on the right - well I am not that experienced at macOS UI programming. I guess a custom view would need to be used in this case. Here are some possibly useful links I found:

Not sure whether such custom menus would show arrows for submenus easily, thought. This might complicate things even more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants