Main Menu

Recent posts

#1
Themes / Dark blue theme
Last post by _Mir_.cpp - 24 July 2026, 13:24:20
So my scalable theme is here! I'm new to theme creation (and even relatively new to drawing scalable graphics), but I've tried to do my best. The theme is made with Inkscape and can be found here. Any suggestions to improve the appearance are welcome. 
This theme supports all widgets from the default Black theme:
Button 
ChatBox 
CheckBox 
ChildWindow 
ComboBox 
ContextMenu 
EditBox 
Knob 
Scrollbar 
ListBox 
ListView 
MenuBar 
ProgressBar 
RadioButton 
Slider 
SpinButton 
Tabs 
TextArea 
ToolTip 
ToggleButton
#2
Help requests / Re: SVG in themes
Last post by _Mir_.cpp - 16 July 2026, 19:52:34
Thank you for your quick answer. I'll experiment with it.
P. S.: I have some problems with access to forum, so I will probably not read new messages here soon.
#3
Help requests / Re: SVG in themes
Last post by texus - 16 July 2026, 18:51:59
I don't have much time to answer right now, so I'll answer with what I remember, you might have to experiment a bit with it yourself to fully see how well it works.

SVGs are only rasterized when rendering. The result may be cached, but when you resize a widget, the cache will be cleared. The code to draw SVGs hasn't been tested much, and it's not as well optimized, but it should normally work.

Placing all graphics in a single image is purely an optimization, so that OpenGL will have to switch the texture less often when rendering. I don't think it's even compatible with SVGs, so you probably have to use separate image files anyway.
#4
Help requests / SVG in themes
Last post by _Mir_.cpp - 16 July 2026, 17:27:33
I'd like to create an svg-based theme for TGUI, but I have some question about SVG support in the library and about theme creation in general.
  • I saw that you can use .svg files in themes, but I'd like to know if widgets using these files are really scalable as they should be (or images are converted to raster format right after loading and have same problems with scalability as raster images)?
  • Is it so important to put all graphical resourced to one image like it's done with standard themes (I'm about Black.png in the Black theme etc)?
#5
Installation help / Re: TGUI Builder via vcpkg
Last post by GoverNator - 08 February 2026, 22:38:23
Whoa
Thank's a lot, it did helped!

For anyone else coming to the topic with same question: specifying the "tool" feature would enable gui builder.

{
  "dependencies": [
    "sfml",
    {
      "name": "tgui",
      "default-features": true,
      "features": ["tool"]
    },
    "vcpkg-cmake"
  ]
}

It would be built if your project contains the release configuration, and .exe with all the dependencies and resource files would be put into \vcpkg_installed\x64-windows\tools\tgui
#6
Installation help / Re: TGUI Builder via vcpkg
Last post by texus - 08 February 2026, 22:04:50
I don't know much about the vcpkg package (someone else maintains it), I do however know that the vcpkg package should contain an optional "tool" feature that is linked to the TGUI_BUILD_GUI_BUILDER option (https://github.com/microsoft/vcpkg/blob/master/ports/tgui/portfile.cmake#L39).
So if you know or look up how to enable package features in vcpkg then you might be able to get the Gui Builder by installing that "tool" feature in the "tgui" package.
#7
Installation help / TGUI Builder via vcpkg
Last post by GoverNator - 08 February 2026, 20:44:30
Hello

I've gave vcpkg a try, since it's not very productive to install everything manually all the time. Getting TGUI, SFML, compile and run was ok for "hello world".

I wonder is it possible to get also the Gui builder with the vcpkg? I've tried smth like the example below, but nothing worked. Also I found no related keywords by searching TGUI package files, downloaded from vcpkg.

#vcpkg_cmake_configure(
#    OPTIONS
#        -DTGUI_BUILD_GUI_BUILDER:BOOL=ON
#)
set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DTGUI_BUILD_GUI_BUILDER:BOOL=ON)


#8
Installation help / Re: TGUI MSVC linker errors
Last post by texus - 14 January 2026, 23:49:44
No worries, you aren't wasting my time, I'm happy to help.
The nightly builds should also be stable (and I even tested it here with the latest version), so I don't see why it wouldn't work.

It's a good thing that you managed to get it to work now though, because I wouldn't actually have time in the next week to dig further into the issue. So unless someone else runs into the same issue or you get it again in the future when upgrading, I'm just going to pretend that this was a one-off temporary issue that needs no further investigation.
#9
Installation help / Re: TGUI MSVC linker errors
Last post by nikodev - 14 January 2026, 21:30:44
I made a brand new Visual Studio project and used your code to test. It crashes for the same reason..
-I am linking statically
-TGUI nightly build
-I built TGUI and raylib myself

..But afterwards I tested TGUI stable and I had no issues.
Sorry for wasting your time.
#10
Installation help / Re: TGUI MSVC linker errors
Last post by texus - 14 January 2026, 20:23:52
That doesn't make much sense.

Can you verify that a program with just the following code still crashes?
Code (cpp) Select
#define NOGDI
#define NOUSER
#include <raylib.h>
#include <TGUI/TGUI.hpp>
#include <TGUI/Backend/raylib.hpp>

void run_application()
{
    tgui::Gui gui;

    auto menu = tgui::MenuBar::create();
    menu->addMenu("File");
    menu->addMenuItem("New Project");
    menu->connectMenuItem({ "File", "New Project" }, [] {
        std::cout << "Let me print! \n";
        });
    gui.add(menu, "menu1");

    gui.mainLoop();
}

int main()
{
    SetTraceLogLevel(LOG_WARNING);

    InitWindow(800, 600, "TGUI example (RAYLIB)");
    SetTargetFPS(30);

    run_application();

    CloseWindow();
}

- Are you linking statically or dynamically to raylib?
- What TGUI and raylib version are you using?
- Are you using precompiled builds or did you build TGUI and/or raylib yourself?