Fray Engine
Loading...
Searching...
No Matches
application_style.hpp File Reference
#include <filesystem>
#include <fstream>
#include <string>
#include "application_state_location.hpp"

Go to the source code of this file.

Namespaces

namespace  fray
namespace  fray::style

Functions

F_err fray::style::saveButtonStyle (const std::filesystem::path &engineDirectory, const std::string &css)
 Writes the application button stylesheet atomically.
F_err fray::style::loadButtonStyle (const std::filesystem::path &engineDirectory, const std::string &defaults, std::string &css)
 Reads the application button stylesheet, creating it from packaged defaults if absent.

Variables

const std::filesystem::path fray::style::buttonDirectory = std::filesystem::path("Fray Styles") / "01 Basic Components"
 Relative directory of the editable application button stylesheet.
constexpr const char * fray::style::buttonFile = "fray_button.css"
 Editable application button stylesheet name.
constexpr std::size_t fray::style::maximumStyleSize = 1024 * 1024
 Maximum stylesheet size in bytes.