Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: Is anyone able to make some SVG icons for skin_default?

  1. #1
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts

    Is anyone able to make some SVG icons for skin_default?

    As per the title: Is anyone able to make some SVG icons for skin_default?

    To start with we need to recreate the ones in skin_1080_fallback folder.
    https://github.com/oe-alliance/oe-al..._fallback_1080
    Help keep OpenViX servers online.Please donate!

  2. #2

    Title
    Forum Supporter
    Donated Member
    Join Date
    Mar 2017
    Posts
    35
    Thanks
    35
    Thanked 8 Times in 6 Posts

    Cant upload svg files

    I have converted one to see if that is what you need.
    Attached Files Attached Files

  3. #3

    Title
    ViX Beta Tester
    Join Date
    Nov 2017
    Posts
    888
    Thanks
    103
    Thanked 480 Times in 285 Posts
    Thanks, what we're really after is an SVG that scales nicely to any resolution, so it needs to be converted to a bunch of shapes rather than embedding the PNG inside the SVG. It's a rather involved task compared to saving as SVG!

  4. The Following User Says Thank You to simonc For This Useful Post:

    Huevos (05-05-21)

  5. #4
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    Thanks for the reply. What I was really asking is if anyone would like to recreate these from scratch.
    Help keep OpenViX servers online.Please donate!

  6. #5
    BrokenUnusableAccount
    Would this be good enough?
    input_warning.zip

  7. #6
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    Quote Originally Posted by BefuddledBrian View Post
    Would this be good enough?
    input_warning.zip
    Thanks.

    1) The viewport would need to be the same size as the icon in skin_default. i.e. the icon replaces the one in skin_default. i.e. if skin_fallback_1080 is deleted enigma would load the svg graphic stored in skin_default at the viewport sizes of skin_default. In the case of this graphic 53x53 and enigma scales it up on loading.

    2) Your graphic doesn't seem to be compatible with nanosvg (the handler built into the image). So if you replace a PNG with an SVG in skin default then switch skins to skin default your SVG should display. I'm not sure how much SVG functionality has filtered down to the release image yet but I think it is there.

    In the attached image you can see your graphic only partially displays.
    Attached Images Attached Images
    Help keep OpenViX servers online.Please donate!

  8. #7
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    I have a feeling that Brian's graphic is SVG 1.1 and nanosvg is 1.0.
    Help keep OpenViX servers online.Please donate!

  9. The Following User Says Thank You to Huevos For This Useful Post:


  10. #8
    BrokenUnusableAccount
    Ugh. Lots of software seems to assume you don't care much about the size or viewport

    Anyone know anything about inkscape?
    Would that be better maybe?

  11. #9
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    What did you use to create that?

    When enigma loads an image from within the python code the image size is normally not specified.

    Code:
    self.bg = LoadPixmap(path=resolveFilename(SCOPE_CURRENT_SKIN, "buttons/vkey_bg.png"))
    With a png those dimensions come from the number of pixels in the png file. With svg it comes from the viewbox.

    Code:
    <svg viewBox="0 0 140 40" xmlns="http://www.w3.org/2000/svg">
    Give inkscape a try and test your output directly in enigma.
    Help keep OpenViX servers online.Please donate!

  12. #10
    BrokenUnusableAccount
    Quote Originally Posted by Huevos View Post
    What did you use to create that?
    The one I uploaded was done in Serif Affinity Designer because I'd used it a bit before.

    It always adds at least one pixel to the viewport beyond the right and bottom of the image.
    But maybe that wouldn't matter as long as the actual image was the correct size.

    I'm still not sure why nanosvg wouldn't show the gradient fill.
    I will try and test with the fill at right angles instead of skewed slightly at 100°.
    Last edited by BrokenUnusableAccount; 07-05-21 at 12:01.

  13. #11
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    Quote Originally Posted by BefuddledBrian View Post
    The one I uploaded was done in Serif Affinity Designer because I'd used it a bit before.

    It always adds at least one pixel to the viewport beyond the right and bottom of the image.
    But maybe that wouldn't matter as long as the actual image was the correct size.

    I'm still not sure why nanosvg wouldn't show the gradient fill.
    I will try and test with the fill at right angles instead of skewed slightly at 100°.
    The graphic looks good. Pity it doesn't work.

    Here is an example of a graphic that does work.

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <svg viewBox="0 0 140 40" xmlns="http://www.w3.org/2000/svg">
      <defs>
        <radialGradient gradientUnits="userSpaceOnUse" cx="62.726" cy="20.066" r="67.5" id="gradient-0" gradientTransform="matrix(-0.007907, 0.213293, -7.201185, -0.266949, 214.598154, 10.458818)">
          <stop offset="0" style="stop-color: rgb(182, 40, 40);"/>
          <stop offset="1" style="stop-color: rgb(116, 2, 2);"/>
        </radialGradient>
      </defs>
      <rect style="fill: url(#gradient-0);" width="135" height="33" rx="6" ry="6" x="2.5" y="3.5"/>
    </svg>
    Attached Images Attached Images
    Help keep OpenViX servers online.Please donate!

  14. The Following User Says Thank You to Huevos For This Useful Post:


  15. #12

    Title
    Forum Supporter
    Donated Member
    Join Date
    Mar 2017
    Posts
    35
    Thanks
    35
    Thanked 8 Times in 6 Posts

    Inkscape test

    I have done a test with Inkscape,see if it is useful. I have no idea how to test with enigma...
    In Inkscape the default svg is not scaleable, you need to remove the height and width parameters in the xml file to make it responsive.
    Attached Files Attached Files

  16. #13
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    For some reason that doesn't remain circular. Apart from that it seems to work.
    Attached Images Attached Images
    • File Type: jpg 1.jpg (32.1 KB, 15 views)
    Help keep OpenViX servers online.Please donate!

  17. #14
    BrokenUnusableAccount
    Quote Originally Posted by Huevos View Post
    Here is an example of a graphic that does work.

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <svg viewBox="0 0 140 40" xmlns="http://www.w3.org/2000/svg">
      <defs>
        <radialGradient gradientUnits="userSpaceOnUse" cx="62.726" cy="20.066" r="67.5" id="gradient-0" gradientTransform="matrix(-0.007907, 0.213293, -7.201185, -0.266949, 214.598154, 10.458818)">
          <stop offset="0" style="stop-color: rgb(182, 40, 40);"/>
          <stop offset="1" style="stop-color: rgb(116, 2, 2);"/>
        </radialGradient>
      </defs>
      <rect style="fill: url(#gradient-0);" width="135" height="33" rx="6" ry="6" x="2.5" y="3.5"/>
    </svg>
    What created that?
    It's mostly very straightforward and simple compared with what comes out of any of the software I've been trying to use for this?

  18. #15
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    Quote Originally Posted by BefuddledBrian View Post
    What created that?
    It's mostly very straightforward and simple compared with what comes out of any of the software I've been trying to use for this?
    Taapat made them. I think they were made on "Boxy SVG". I will ask.

    The attached file is definitely from "Boxy SVG".

    There are other simple SVGs added to skin_default here: https://github.com/oe-alliance/oe-al...68455baca697ba
    Attached Files Attached Files
    Help keep OpenViX servers online.Please donate!

  19. The Following User Says Thank You to Huevos For This Useful Post:


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.