From f0deb5186312daee6ae06d5c76e606c3494373ec Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 8 May 2021 18:43:17 -0400 Subject: [PATCH] Move ui.hpp to ui/common.hpp. --- include/ui.hpp | 20 -------------------- include/ui/common.hpp | 18 ++++++++++++++++++ src/{ui.cpp => ui/common.cpp} | 2 +- standalone/main.cpp | 2 +- 4 files changed, 20 insertions(+), 22 deletions(-) delete mode 100644 include/ui.hpp rename src/{ui.cpp => ui/common.cpp} (98%) diff --git a/include/ui.hpp b/include/ui.hpp deleted file mode 100644 index 53927897..00000000 --- a/include/ui.hpp +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once -#include -#include - - -namespace rack { - - -/** General user interface widgets using Blendish -*/ -namespace ui { - - -void init(); -void destroy(); -void setTheme(NVGcolor bg, NVGcolor fg); - - -} // namespace ui -} // namespace rack diff --git a/include/ui/common.hpp b/include/ui/common.hpp index b66274bc..349aff1f 100644 --- a/include/ui/common.hpp +++ b/include/ui/common.hpp @@ -3,6 +3,7 @@ #include #include +#include /** Useful for menu items with a "true" boolean state */ #define CHECKMARK_STRING "✔" @@ -10,3 +11,20 @@ /** Useful for menu items that open a sub-menu */ #define RIGHT_ARROW "▸" + + +namespace rack { + + +/** General user interface widgets using Blendish +*/ +namespace ui { + + +void init(); +void destroy(); +void setTheme(NVGcolor bg, NVGcolor fg); + + +} // namespace ui +} // namespace rack diff --git a/src/ui.cpp b/src/ui/common.cpp similarity index 98% rename from src/ui.cpp rename to src/ui/common.cpp index cf957a0d..6cb981b5 100644 --- a/src/ui.cpp +++ b/src/ui/common.cpp @@ -1,4 +1,4 @@ -#include +#include namespace rack { diff --git a/standalone/main.cpp b/standalone/main.cpp index e28aa1f3..83c0e066 100644 --- a/standalone/main.cpp +++ b/standalone/main.cpp @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include