Browse Source

Move ui.hpp to ui/common.hpp.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
f0deb51863
4 changed files with 20 additions and 22 deletions
  1. +0
    -20
      include/ui.hpp
  2. +18
    -0
      include/ui/common.hpp
  3. +1
    -1
      src/ui/common.cpp
  4. +1
    -1
      standalone/main.cpp

+ 0
- 20
include/ui.hpp View File

@@ -1,20 +0,0 @@
#pragma once
#include <ui/common.hpp>
#include <color.hpp>


namespace rack {


/** General user interface widgets using Blendish
*/
namespace ui {


void init();
void destroy();
void setTheme(NVGcolor bg, NVGcolor fg);


} // namespace ui
} // namespace rack

+ 18
- 0
include/ui/common.hpp View File

@@ -3,6 +3,7 @@
#include <blendish.h>

#include <common.hpp>
#include <color.hpp>

/** 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

src/ui.cpp → src/ui/common.cpp View File

@@ -1,4 +1,4 @@
#include <ui.hpp>
#include <ui/common.hpp>


namespace rack {

+ 1
- 1
standalone/main.cpp View File

@@ -16,7 +16,7 @@
#include <window.hpp>
#include <patch.hpp>
#include <history.hpp>
#include <ui.hpp>
#include <ui/common.hpp>
#include <system.hpp>
#include <string.hpp>
#include <library.hpp>


Loading…
Cancel
Save