mirror of
https://codeberg.org/vyn/selenite.git
synced 2025-07-03 10:13:26 +00:00
Add helpers to setup Selenite in C++ projects
This commit is contained in:
parent
e27b4c150b
commit
f3025d08cd
20 changed files with 24870 additions and 11 deletions
27
cpp/include/selenite/palette.h
Normal file
27
cpp/include/selenite/palette.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
namespace selenite
|
||||
{
|
||||
struct Color {
|
||||
int r, g, b;
|
||||
std::string hex;
|
||||
};
|
||||
|
||||
struct Palette {
|
||||
Color primary;
|
||||
Color secondary;
|
||||
Color background;
|
||||
Color background2;
|
||||
Color background3;
|
||||
Color background4;
|
||||
Color pane;
|
||||
Color foreground;
|
||||
Color foregroundHint;
|
||||
};
|
||||
|
||||
std::optional<Palette> parseJson(const std::string &path);
|
||||
|
||||
} // namespace selenite
|
2
cpp/include/selenite/selenite.h
Normal file
2
cpp/include/selenite/selenite.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
#pragma once
|
||||
#include "palette.h"
|
Loading…
Add table
Add a link
Reference in a new issue