Jump to content

Text on svg icon is not visible


Go to solution Solved by Josh,

Recommended Posts

Posted

Icon:

image.png.a9d007e902d2e95cb741a7594ca16e62.png

In Ultra:

image.png.0e4bb74d6f70cf4156fabf25e9bbaf75.png

TestNumber.zip

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[]) {
    //Get the displays
    auto displays = GetDisplays();

    //Create window
    auto window = CreateWindow("Ultra Engine", 0, 0, 800, 800, displays[0]);

    //Create user interface
    auto ui = CreateInterface(window);

    //Create a pixmap
    auto icon = LoadIcon("TestNumber.svg");

    //Show the icon
    ui->root->SetIcon(icon);

    while (true) {
        const Event ev = WaitEvent();
        switch (ev.id) {
        case EVENT_WINDOWCLOSE:
            return 0;
            break;
        }
    }

    return 0;
}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...