KMix system tray icon enhancements #31

Merged
blu.256 merged 1 commits from feat/kmix-icon-theme into master 4 weeks ago
Collaborator

This PR makes the following changes to the KMix system tray icon:

  • Standard icon names with volume level specification (low, medium, high)
  • Support for volume icons from system theme
  • Choice between new theme with volume levels (Crystal), old theme (Classic - Old Crystal) and system theme.

This PR is like tdetoys#18 is for KWeather.

This PR makes the following changes to the KMix system tray icon: * Standard icon names with volume level specification (low, medium, high) * Support for volume icons from system theme * Choice between new theme with volume levels (Crystal), old theme (Classic - Old Crystal) and system theme. This PR is like [tdetoys#18](https://mirror.git.trinitydesktop.org/gitea/TDE/tdetoys/pulls/18) is for KWeather.
30 KiB
blu.256 added 5 commits 2 years ago
036e66bc92
New icon names + icons for low, medium, high volume levels.
f2ffa187cd
Created separate getAvgVolume() function.
6484ff8853
Updated icon names in tray widget.
92d3d6e44e
New version of the 'muted' icon.
6368061b9c
Small icon fixes
blu.256 added the PR/rfc label 2 years ago
Owner

Long ago there was a suggestion from someone (Darrell?) to have a volume bar next to the volume icon, similar to the battery level bar near tdepowersave icon.

@SlavekB @blu.256
Should we consider that solution instead of the one proposed here?

Long ago there was a suggestion from someone (Darrell?) to have a volume bar next to the volume icon, similar to the battery level bar near tdepowersave icon. @SlavekB @blu.256 Should we consider that solution instead of the one proposed here?
Poster
Collaborator

The bar suggestion is surely nice, but IMO we can have both and leave the choice to the user. This PR will make KMix consistent with the icon theme picked by the user, with the added bonus that the original icon theme becomes more detailed and gives the user a rough idea of the volume. Somebody might not want the level of detail of the bar.

The same, actually, can also be done with tdepowersave: give the userthe choice to either use the bar, or the theme's status icons, or tdepowersave's own fallback icons (IDK if they exist).

The bar suggestion is surely nice, but IMO we can have both and leave the choice to the user. This PR will make KMix consistent with the icon theme picked by the user, with the added bonus that the original icon theme becomes more detailed and gives the user a rough idea of the volume. Somebody might not want the level of detail of the bar. The same, actually, can also be done with tdepowersave: give the userthe choice to either use the bar, or the theme's status icons, or tdepowersave's own fallback icons (IDK if they exist).
Owner

Sounds good, nice suggestion.

Sounds good, nice suggestion.
Owner

I did a test and it seems good. Given this is a change on the UI of an important component, I propose we give the user a choice among:

  1. classic icons (same as original icons)
  2. new crystal icons (this PR)
  3. system icons
    What do you think?
I did a test and it seems good. Given this is a change on the UI of an important component, I propose we give the user a choice among: 1. classic icons (same as original icons) 2. new crystal icons (this PR) 3. system icons What do you think?
Owner

@blu.256
Hi Philippe, any update on this? The idea is good and would be good to add it to at least R14.1.0 or maybe also R14.0.x.

@blu.256 Hi Philippe, any update on this? The idea is good and would be good to add it to at least R14.1.0 or maybe also R14.0.x.
Poster
Collaborator

@MicheleC Hello Michele, I am busy lately and maybe prioritise tdelibs#152 over this, as it is related to TDEMarkdown and many places where SVG icons don't show properly (such as KWeather and Konqueror).

From what I remember the code of the preferences dialog is a pain to change (as is all of KMix btw), so I was just thinking to also recreate the settings dialog with .ui files and possibly TDEConfig XT, this would make things so much easier.

I'll inform you when I'm up to this PR and I would appreciate your opinion on the point I made above.

@MicheleC Hello Michele, I am busy lately and maybe prioritise [tdelibs#152](https://mirror.git.trinitydesktop.org/gitea/TDE/tdelibs/issues/152) over this, as it is related to TDEMarkdown and many places where SVG icons don't show properly (such as KWeather and Konqueror). From what I remember the code of the preferences dialog is a pain to change (as is all of KMix btw), so I was just thinking to also recreate the settings dialog with .ui files and possibly [TDEConfig XT](https://wiki.trinitydesktop.org/TDEConfig_XT_Tutorial), this would make things so much easier. I'll inform you when I'm up to this PR and I would appreciate your opinion on the point I made above.
Owner

Sure, no problem. Great wiki page on TDEConfig XT btw!

Sure, no problem. Great wiki page on TDEConfig XT btw!
blu.256 added 1 commit 2 years ago
80795d230c
KMix: dock icon fallback algorithm
blu.256 removed the PR/rfc label 2 years ago
blu.256 force-pushed feat/kmix-icon-theme from 80795d230c to a1d263186c 1 month ago
blu.256 force-pushed feat/kmix-icon-theme from a1d263186c to f950ba5bd7 1 month ago
blu.256 requested review from Owners 1 month ago
blu.256 requested review from Core 1 month ago
Poster
Collaborator

@MicheleC I have finally finalized this PR with the option to select between three icon themes (new Crystal, old Crystal and system) according to your feedback.

@MicheleC I have finally finalized this PR with the option to select between three icon themes (new Crystal, old Crystal and system) according to your feedback.
Owner

I will do another test and feedback. May end up being during next weekend, so please be patient :-)

I will do another test and feedback. May end up being during next weekend, so please be patient :-)
SlavekB requested changes 1 month ago
SlavekB left a comment
Owner

I did not test, but there are two small things to fix.

I did not test, but there are two small things to fix.
/home/src/tdemultimedia/kmix/pics/oldcrystal/audio-volume-medium.png
Owner

I assume it was supposed to be a relative symlink, not absolute?

I assume it was supposed to be a relative symlink, not absolute?
Poster
Collaborator

Yed, my bad. I'll fix that as soon as I get to the computer.

Yed, my bad. I'll fix that as soon as I get to the computer.
blu.256 marked this conversation as resolved
/home/src/tdemultimedia/kmix/pics/oldcrystal/audio-volume-low.png
Owner

I assume it was supposed to be a relative symlink, not absolute?

I assume it was supposed to be a relative symlink, not absolute?
blu.256 marked this conversation as resolved
blu.256 added 1 commit 1 month ago
669ea2a113
Amended symbolic links
blu.256 requested review from SlavekB 1 month ago
MicheleC approved these changes 1 month ago
MicheleC left a comment
Owner

I did a new test. Looks nice and works well. Perhaps we could fine tune the thresholds to 33 and 67 instead of 35 and 70, but it is a minor point and I am fine either way.
Good work Philippe!

I did a new test. Looks nice and works well. Perhaps we could fine tune the thresholds to 33 and 67 instead of 35 and 70, but it is a minor point and I am fine either way. Good work Philippe!
Owner

Follow up wishlist issue #69 would be nice to fix. Philippe, I remember you already did some work on transparency for the kxkb tool icons, so perhaps the changes are easy to implement.

Follow up wishlist issue #69 would be nice to fix. Philippe, I remember you already did some work on transparency for the kxkb tool icons, so perhaps the changes are easy to implement.
SlavekB approved these changes 1 month ago
SlavekB left a comment
Owner

I didn't do a test, but it looks good – I don't have other objections.
You can consider a proposal for a small change in thresholds, as it states @MicheleC

I didn't do a test, but it looks good – I don't have other objections. You can consider a proposal for a small change in thresholds, as it states @MicheleC
MicheleC changed title from WIP: KMix system tray icon enhancements to KMix system tray icon enhancements 1 month ago
Owner

Beside the small proposal on thresholds, don't forget to rebase before merging @blu.256

Beside the small proposal on thresholds, don't forget to rebase before merging @blu.256
Owner

@blu.256 reminder that this PR seems ready to merge. If possible adjust the two threshold as we commented above, but other than that you can proceed with merging it.

@blu.256 reminder that this PR seems ready to merge. If possible adjust the two threshold as we commented above, but other than that you can proceed with merging it.
blu.256 force-pushed feat/kmix-icon-theme from 669ea2a113 to 50d193826b 4 weeks ago
blu.256 force-pushed feat/kmix-icon-theme from 50d193826b to 3168c39ef1 4 weeks ago
blu.256 merged commit 3168c39ef1 into master 4 weeks ago
blu.256 deleted branch feat/kmix-icon-theme 4 weeks ago
blu.256 added this to the R14.1.2 release milestone 4 weeks ago
Poster
Collaborator

Merged and backported for R14.1.2.
P.S. Thresholds were adjusted.

Merged and backported for R14.1.2. P.S. Thresholds were adjusted.
Owner

Great, well done!

Great, well done!

Reviewers

MicheleC approved these changes 1 month ago
SlavekB approved these changes 1 month ago
TDE/Core was requested for review 1 month ago
The pull request has been merged as 3168c39ef1.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Reference: TDE/tdemultimedia#31
Loading…
There is no content yet.