ui: Add interface scaling setting. Closes #7, #283

This commit is contained in:
WerWolv
2021-08-21 13:55:21 +02:00
parent 8ad0239bca
commit 72cf94106c
14 changed files with 140 additions and 39 deletions

View File

@@ -5,6 +5,18 @@
namespace hex {
void ImHexApi::Common::closeImHex(bool noQuestions) {
EventManager::post<RequestCloseImHex>(noQuestions);
}
void ImHexApi::Common::restartImHex() {
EventManager::post<RequestCloseImHex>(false);
std::atexit([]{
execve(SharedData::mainArgv[0], SharedData::mainArgv, nullptr);
});
}
void ImHexApi::Bookmarks::add(Region region, std::string_view name, std::string_view comment, u32 color) {
Entry entry;