Giter Site home page Giter Site logo

Comments (21)

me4oslav avatar me4oslav commented on July 19, 2024

The Gnome HIG approved solution is like this:
screenshot from 2015-04-04 16 06 05
Clicking on the arrow will open a menu with the repeat options.
This would mean that the repeat and shuffle buttons will have to be separated.

from alternative-toolbar.

me4oslav avatar me4oslav commented on July 19, 2024

Any decision about this one? Because the sooner the remaining issues with alternative-toolbar are gone, the better.

from alternative-toolbar.

fossfreedom avatar fossfreedom commented on July 19, 2024

Repeat-once is not a core rhythmbox function - it needs code to be developed to support this function.

There is another plugin called repeat once. Myself (or someone else) will need to have a look at what is the best way to incorporate this plugin so that we dont start having to have a proliferation of additional add-ins.

Thus, the arrow issue is just the minor part of this.

from alternative-toolbar.

HEXcube avatar HEXcube commented on July 19, 2024

What about clicking the repeat all songs button twice to make it repeat one song? I've seen it on many music players, especially those on mobile devices. This should give you an idea, though the mockup is terrible :-)
Button in default mode (Repeat All Songs):
without repeat
When clicked again it should change into this:
repeat one song
@fossfreedom Or can you make the Repeat One Song plugin display icon on toolbar, like it did on Rhythmbox 2.xx?

from alternative-toolbar.

fossfreedom avatar fossfreedom commented on July 19, 2024

@HEXcube

thanks for your thoughts.

This would be ok if the repeat button was a standard button - it currently is a toggle button like the shuffle button - so being depressed show the repeat is in action - toggle off, repeat is not in action.

I dont like the idea of a second button.

My current thought is centering around using a Gtk Popover.

  1. clicking repeat button will display the popover showing two icons side-by-side - one with the repeat all button (depressed), the other repeat once (not depressed)
  2. moving the mouse within the popover allows you to choose the repeat mode you want. Clicking the mode in the popover changes the icon in the button
  3. moving the mouse out of the repeat button boundary hides the popover. likewise moving the mouse outside of the popover boundary hides the popover.
  4. if the repeat button is depressed and you move the mouse within the repeat button boundaries - the popover reappears allowing you to choose the repeat mode
  5. toggling off the repeat button hides the popover

The above would work for GTK3.12 and above users (Ubuntu Utopic and vivid) but not for Ubuntu Trusty users. So not sure what to-do for these users.

from alternative-toolbar.

me4oslav avatar me4oslav commented on July 19, 2024

I will have launch and read the discussion.

from alternative-toolbar.

me4oslav avatar me4oslav commented on July 19, 2024

The popover solution is not a bad idea. I like it.
But like David himself outlined, it will not work for the Ubuntu LTS, which could prove itself problematic.
It is either that or the Gnome HIG solution. The latter will work on any GTK 3x, but its issues is that it wastes a bit of X space.

from alternative-toolbar.

fossfreedom avatar fossfreedom commented on July 19, 2024

ok - have now got some working code for this issue.

Only tested on ubuntu vivid at the moment.

Still to do:

  1. test and fix any issues on Ubuntu trusty
  2. sort out the tooltips on the popover (they are missing).

Note - the current tooltip for the repeat button is actually wrong ("Repeat the current track") since it repeats all tracks in the view/playlist etc. I've reused this tooltip for the repeat-one-song capability. The new default string is "Repeat all tracks" - this unfortunately requires an additional translation string.

from alternative-toolbar.

me4oslav avatar me4oslav commented on July 19, 2024

Will test, outline issues and if possible fix papercuts too.

from alternative-toolbar.

me4oslav avatar me4oslav commented on July 19, 2024

Ok, here are issues:

  • The repeat and shuffle button now must get two separate buttons, because of the popover; It is repeat button specific, not repeat and shuffle specific;
  • add tooltips in popover mode;
  • the bugs you outlined;

One question - will there be a preference for that? 'Cause at least it this case, I don't see a point - if the user does not what repeat once capability (s)he will just ignore it in the popover.

from alternative-toolbar.

fossfreedom avatar fossfreedom commented on July 19, 2024

Don't really follow the request for a preference. I think most people will instantly recognise "repeat one" functionality - its common on most media players ... just not in rhythmbox until now!

Anyway - have split the buttons - 3px space between them ... and 3px for the volume control if that is also visible.

Tooltips in popover if the tooltip option is switched on in preferences.

BTW - 18 languages and locales is quite amazing. Very pleased personally that so many translators have invested their time in this project :)

from alternative-toolbar.

me4oslav avatar me4oslav commented on July 19, 2024

Shall test and comment in the morning.

from alternative-toolbar.

me4oslav avatar me4oslav commented on July 19, 2024

Shouldn't the spacing be 5px?
Apart from that - it seems fine.
The preferences request was about not adding a preference to do disable the ability to switch between repeat modes. The way I see it is that if the user does not want repeat once capability (s)he won't use it.

from alternative-toolbar.

fossfreedom avatar fossfreedom commented on July 19, 2024

thanks for the 5px change.

The repeat functionality is not an oft invoked capability nor "in your face" like a tooltip. Thus not convinced a preference option here will be necessary. If there was a clamour for this then will re-evaluate.

from alternative-toolbar.

me4oslav avatar me4oslav commented on July 19, 2024

Excellent, so we both agree that a preference is not needed. :)
I will try to find some time for coverart design work too.
Meanwhile - there is are two issues standing for this plugin:

  • papercut about the radio panel;
  • graphic setup utility;

from alternative-toolbar.

HEXcube avatar HEXcube commented on July 19, 2024

Tested the plugin from repeat-one-song branch (now merged to master) on Ubuntu 14.04LTS "Trusty" and I'm happy to say that it works fine.

  • Unpressed (Default mode)
    unpressed - default mode
  • Pressed (Popover shows Repeat options)
    pressed - popover shows repeat options
  • Repeat One Song mode
    repeat one song mode

Repeat One Song was one of the features I missed the most when Rhythmbox moved from v2.9x to v3.x series. Though the plugin was still usable, it could no longer add repeat-one-song icon to Rhythmbox 3.x's static toolbar. @fossfreedom n' @me4oslav Thank u guys, for bringing this much needed feature back, with a better implementation! :-)

from alternative-toolbar.

fossfreedom avatar fossfreedom commented on July 19, 2024

@HEXcube

excellent. Many thanks for testing this.

I'll be uploading the new version into my PPA in the next few days - I want to include most of the updated translations that are being worked on by the launchpad translation community.

from alternative-toolbar.

me4oslav avatar me4oslav commented on July 19, 2024

BTW, David - if you wanna supply the community with bleeding edge builds it may be worth doing a daily PPA.
But I am not sure it is worth it.

from alternative-toolbar.

fossfreedom avatar fossfreedom commented on July 19, 2024

that's an interesting idea - I've meaning to investigate launchpad's autobuild facility. Might do this for coverart-browser.

from alternative-toolbar.

me4oslav avatar me4oslav commented on July 19, 2024

I think @satya164 can teach you.

from alternative-toolbar.

me4oslav avatar me4oslav commented on July 19, 2024

Or maybe @paolorotolo.

from alternative-toolbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.