TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_resources.h File Reference
#include <gui_core/gui_result.h>
#include <cstddef>
#include <span>
#include <string>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  tachyon

Functions

std::span< const std::byte > tachyon::FindBuiltInResource (std::string_view path)
 The copy of a resource compiled into the library: the default themes (dark.css, light.css, styles.css) and fonts (Inter, JetBrains Mono), unless the library was built with TACHYON_EMBED_RESOURCES off.
Result< std::string > tachyon::ReadResource (std::string_view path)
 A resource's contents: the file at path when it exists, else its built-in copy (which is logged, so a theme file that went missing shows up).