Diffusion Elisa f9eafddd068c

Hide stars when there is no rating

Authored by januz on Jun 8 2018, 6:35 PM.

Description

Hide stars when there is no rating

Summary:
This patch hides the rating widget when the rating is 0 stars to reduce visual clutter.
There are two cases with different behaviour:

  • When a rating widget is read-only, only ratings with more than zero stars are visible
  • When a rating widget isn't read-only, the same rule applies but it also becomes visible on hover or selection (works like the play/delete/enqueue buttons). This way users can still set ratings on tracks with no stars.

Test Plan: Set readOnly in RatingStar.qml to false to test the hover effect

Reviewers: Elisa, mgallien

Reviewed By: Elisa, mgallien

Subscribers: mgallien, astippich

Tags: Elisa

Differential Revision: https://phabricator.kde.org/D12975

Details

Committed
januzJun 20 2018, 10:27 PM
Reviewer
Elisa
Differential Revision
D12975: Hide stars when there is no rating
Parents
R255:cc6c9a39fe62: Merge branch '0.2'
Branches
Unknown
Tags
Unknown