XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Adding OS Logo to XenOrchestra Home

    Scheduled Pinned Locked Moved Xen Orchestra
    8 Posts 2 Posters 515 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      erik.lukes
      last edited by

      Hello
      I tried to make a new Logo (Scientific Linux) and did the following without any change on the icons:

      1. added in /opt/xo/xo-web/src/icons.scss the following lines
        &-scientific {
        @extend .fa;
        @extend .icon-scientific;
        }

      2. added in /opt/xo/xo-web/src/common/utils.js the following lines
        scientific: ['scientific', 'sc'],

      3. added in /opt/xo/xo-builds/xen-orchestra-202401311946/node_modules/font-mfizz/src/svg/ the image scientific.svg

      updated XenOrchestra and restartet the xo-server service

      Can anyone help?

      1 Reply Last reply Reply Quote 0
      • E Offline
        erik.lukes
        last edited by

        1. like here:
          https://github.com/vatesfr/xen-orchestra/blob/8921d7861026a11a2e7007d8451489eee508bdf7/packages/xo-web/src/icons.scss#L1025-L1045

        2. like here:
          https://github.com/vatesfr/xen-orchestra/blob/8921d7861026a11a2e7007d8451489eee508bdf7/packages/xo-web/src/common/utils.js#L175-L203

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          DustinB @erik.lukes
          last edited by

          @erik-lukes You would clone the repo, update the necessary files and create a pull request. If the request is accepted, someone on the team will pull your PR and it'll be a part of the code going forward.

          1 Reply Last reply Reply Quote 0
          • E Offline
            erik.lukes
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • E Offline
              erik.lukes
              last edited by erik.lukes

              i cloned the repo.
              updated both files and created the pull requests (but didnt sent them yet).
              I see how to upload a new file (scientific.svg) but dont know where to put this svg in?

              E 1 Reply Last reply Reply Quote 0
              • E Offline
                erik.lukes @erik.lukes
                last edited by erik.lukes

                the local path would be like:
                /opt/xo/xo-builds/xen-orchestra-202401311946/node_modules/font-mfizz/src/svg/scientific.svg

                so i dont know where to place the .svg img to make a pull request for that one too

                E 1 Reply Last reply Reply Quote 0
                • E Offline
                  erik.lukes @erik.lukes
                  last edited by

                  acutally i didnt found any logo for scientific linux but i took one that looks quite close/similiar

                  E 1 Reply Last reply Reply Quote 0
                  • E Offline
                    erik.lukes @erik.lukes
                    last edited by erik.lukes

                    i found this lines of code (ex. mint) in the other topic (https://xcp-ng.org/forum/topic/4583/adding-os-logos/14?_=1709647941739)
                    on the right side my version as ex.

                    NAME="Linux Mint"
                    VERSION="20.1 (Ulyssa)"
                    ID=linuxmint
                    ID_LIKE=ubuntu
                    PRETTY_NAME="Linux Mint 20.1"
                    VERSION_ID="20.1"

                    NAME="Scientific Linux"
                    VERSION="7.2 (Nitrogen)"
                    ID=scientificlinux
                    ID_LIKE=redhat
                    PRETTY_NAME="Scientific Linux 7.2"
                    VERSION_ID="7.2"

                    do i forgot to add some more lines like those (up) for e.x. ?

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post