quasar-ui-qmediaplayer icon indicating copy to clipboard operation
quasar-ui-qmediaplayer copied to clipboard

If mediaPlayer is included in current loaded iconSet, doesn't tries to load part of iconSet from this library

Open MekDrop opened this issue 2 years ago • 4 comments

This partially fixes #363 - if mediaPlayers icons group is already defined in current iconset uses it, otherwise tries to older iconset loader. logic

MekDrop avatar Jan 03 '23 15:01 MekDrop

Bump

gabrielius-breachgg avatar Feb 21 '23 08:02 gabrielius-breachgg

@hawkeye64, @rstoenescu or maybe somebody else... could you please take a look and let me know if there are any changes or improvements that need to be made? :/

MekDrop avatar Feb 24 '23 09:02 MekDrop

This doesn't look right to me

if (typeof $q.iconSet.mediaPlayer === 'object') {
        icnSet = $q.iconSet;
      }

The code is trying to get the name of the iconset used by Quasar and then load the corresponding iconset (that uses the same name) provided by QMediaPlayer.

hawkeye64 avatar May 23 '23 17:05 hawkeye64

Thank you for the feedback!

I understand your point. But with Quasar, it is possible to load a custom icon set by adding the following code in your quasar.config.js file:

module.exports = configure(function (ctx) {
  return {
    // ...
    framework: {
      iconSet: __dirname + "/src/config/iconset.json", 
     //...
    }
  };
}); 

In cases like this, it should also be possible to define MediaPlayer icons in the same file, as I don't see any other suitable way to specify the location of custom icon set definitions.

Do you agree? Or maybe do you have any other ideas how this issue should be solved?

MekDrop avatar May 23 '23 19:05 MekDrop