After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 699848 - Follow mockups for shuffle/repeat
Follow mockups for shuffle/repeat
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Eslam Mostafa
gnome-music-maint
: 699171 699172 (view as bug list)
Depends on: 701585
Blocks:
 
 
Reported: 2013-05-07 15:58 UTC by Allan Day
Modified: 2013-06-05 16:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
implement the repeat/shuffle menu design following the mock ups (3.37 KB, patch)
2013-06-03 01:36 UTC, Eslam Mostafa
needs-work Details | Review
implementation of the design mockups for shuffle/repeat menu (5.26 KB, patch)
2013-06-04 13:25 UTC, Eslam Mostafa
needs-work Details | Review
Implement the mockup design for repeat/shuffle menu (7.32 KB, patch)
2013-06-05 15:36 UTC, Eslam Mostafa
none Details | Review
implementation of the mockup design for shuffle/repeat menu (7.34 KB, patch)
2013-06-05 15:41 UTC, Eslam Mostafa
needs-work Details | Review
implementation of mockup design for shuffle/repeat menu (7.87 KB, patch)
2013-06-05 16:34 UTC, Eslam Mostafa
committed Details | Review
implementation of mockup design for shuffle/repeat menu (7.92 KB, patch)
2013-06-05 16:43 UTC, Vadim Rutkovsky
committed Details | Review

Description Allan Day 2013-05-07 15:58:00 UTC
Mockups: https://raw.github.com/gnome-design-team/gnome-mockups/master/music/wire-shuffle-repeat.png

To do items include:

 * Update the strings in the menubutton
 * Make sure that the menubutton icon updates to reflect the current state
Comment 1 Guillaume Quintard 2013-05-08 11:03:27 UTC
*** Bug 699172 has been marked as a duplicate of this bug. ***
Comment 2 Guillaume Quintard 2013-05-09 11:52:48 UTC
*** Bug 699171 has been marked as a duplicate of this bug. ***
Comment 3 Eslam Mostafa 2013-06-03 01:36:16 UTC
Created attachment 245885 [details] [review]
implement the repeat/shuffle menu design following the mock ups

please review
Comment 4 Vadim Rutkovsky 2013-06-04 10:38:51 UTC
Review of attachment 245885 [details] [review]:

* missing icon when setting shuffle/repeat off option
* shuffle/repeat off should be default (Allan, please confirm that)
Comment 5 Eslam Mostafa 2013-06-04 13:25:48 UTC
Created attachment 246004 [details] [review]
implementation of the design mockups for shuffle/repeat menu

okay patch updated, after requesting the new icon from design team.
Comment 6 Vadim Rutkovsky 2013-06-05 14:11:55 UTC
Review of attachment 246004 [details] [review]:

::: data/PlayerToolbar.ui
@@ +358,3 @@
     <property name="can_focus">False</property>
     <property name="margin_top">1</property>
+    <property name="icon_name">playback-pause-symbolic</property>

Breaks pause icon

::: src/player.js
@@ +307,3 @@
         this._pauseImage.modify_fg(Gtk.StateType.ACTIVE,color);
 
+        let shuffle = Gtk.RadioMenuItem.new_with_label([],"Shuffle");

These element should be defined in .ui file (use PlayerToolbar.ui) as a) this clutters the code, b) renders the labels untranslatable
Comment 7 Vadim Rutkovsky 2013-06-05 14:36:56 UTC
Review of attachment 246004 [details] [review]:

::: data/PlayerToolbar.ui
@@ +301,3 @@
                                 <property name="has_focus">False</property>
                                 <property name="is_focus">False</property>
+                                <property name="icon_name">media-playlist-consecutive</property>

Correct icon name is media-playlist-consecutive-symbolic

::: src/player.js
@@ +411,3 @@
+
+    _onShuffleRepeatOffActivated: function(data) {
+        this.repeatBtnImage.set_from_icon_name('media-playlist-consecutive', 1);

Correct icon name is media-playlist-consecutive-symbolic
Comment 8 Eslam Mostafa 2013-06-05 15:36:51 UTC
Created attachment 246089 [details] [review]
Implement the mockup design for repeat/shuffle menu

all fixed
Comment 9 Eslam Mostafa 2013-06-05 15:41:30 UTC
Created attachment 246092 [details] [review]
implementation of the mockup design for shuffle/repeat menu
Comment 10 Vadim Rutkovsky 2013-06-05 16:10:07 UTC
Review of attachment 246092 [details] [review]:

Patch is generally OK, but previously menu items are not cleared after a new option is selected
Comment 11 Eslam Mostafa 2013-06-05 16:34:30 UTC
Created attachment 246100 [details] [review]
implementation of mockup design for shuffle/repeat menu
Comment 12 Vadim Rutkovsky 2013-06-05 16:43:31 UTC
Thanks, works great!
The following fix has been pushed:
8c8d9af implementation of mockup design for shuffle/repeat menu
Comment 13 Vadim Rutkovsky 2013-06-05 16:43:39 UTC
Created attachment 246101 [details] [review]
implementation of mockup design for shuffle/repeat menu