-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Enable battery widget in Deere skin #2161
Conversation
src/widget/wbattery.cpp
Outdated
} | ||
|
||
if (m_pCurrentPixmap) { | ||
m_pCurrentPixmap->draw(0, 0, &p); | ||
m_pCurrentPixmap->draw(rect(), &p); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really understand this change, it seems to be needed to make the scaling work..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original version draws a into a rect taken from the prixamp placed at 0,0 of the widget.
The new version takes the whole widget rect as desired.
for now you can use the icons in |
@ronso0 Thanks, I think it doesn't matter much for now.. |
Thank you. Unfortunately this PR mixes a finished bugfix with an unfinished skin change. |
Sure, #2163 |
What is the status of this PR? |
I wouldn't mind if it gets merged as is, the icons can still be changed later if desired.. |
on my ubuntu studio 18.04 machine the battery status in xfce4 works, but not the widgetin Mixxx: upower / libupower are up to date AFAICT 0.99.7-2ubuntu0.18.04.1 same result with locally build master and mixxx-2.3.0-alpha-pre-master-git6883-release-bionic-amd64.deb from http://downloads.mixxx.org/builds/master/release/ , both built with |
@ronso0 Do you have the dbus daemon running? |
dbus is running and |
Strange, it works for me on OpenBSD (with upower 0.99.9). |
I can confirm the battery status unknown issue with Ubuntu Xenial. |
My guess is that no devices are found with upower <= 0.99.7.
|
As first implementation this is ready to merge IMO. The lower the battery charge drops the more warning the icons should be colored: |
Cool. Thank you. LGTM. |
This is a nice change. Could you add the battery widget to the other skins too? |
Having the widget enabled in skins make testing the feature easier..
The icons are a modified version of those posted here by user "jus":
https://bugs.launchpad.net/mixxx/+bug/1662336
Of course, someone more competent should adjust the style of the widget, this is just a placeholder.