mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-05 22:40:44 +09:00
Change fonts, nicer combobox, add/remove audio track button
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <mglpp/system/MemoryMappedFile.hpp>
|
||||
#include <mglpp/graphics/Color.hpp>
|
||||
#include <mglpp/graphics/Font.hpp>
|
||||
#include <mglpp/graphics/Texture.hpp>
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace gsr {
|
||||
struct GsrInfo;
|
||||
@@ -10,12 +15,22 @@ namespace gsr {
|
||||
Theme(const Theme&) = delete;
|
||||
Theme& operator=(const Theme&) = delete;
|
||||
|
||||
float window_height = 0.0f;
|
||||
|
||||
mgl::Color tint_color = mgl::Color(118, 185, 0);
|
||||
mgl::Color scrollable_page_bg_color = mgl::Color(38, 43, 47);
|
||||
mgl::Color text_color = mgl::Color(255, 255, 255);
|
||||
|
||||
mgl::MemoryMappedFile body_font_file;
|
||||
mgl::MemoryMappedFile title_font_file;
|
||||
mgl::Font body_font;
|
||||
mgl::Font title_font;
|
||||
mgl::Font top_bar_font;
|
||||
|
||||
mgl::Texture combobox_arrow;
|
||||
};
|
||||
|
||||
void init_theme(const gsr::GsrInfo &gsr_info);
|
||||
bool init_theme(const gsr::GsrInfo &gsr_info, mgl::vec2i window_size, const std::string &resources_path);
|
||||
void deinit_theme();
|
||||
const Theme& get_theme();
|
||||
Theme& get_theme();
|
||||
}
|
||||
Reference in New Issue
Block a user