Fixed Linux compile and ListWindow frame color in overlays.

This commit is contained in:
casey langen 2018-12-18 22:51:29 -08:00
parent 29fb896d33
commit a1be9aa779
4 changed files with 9 additions and 2 deletions

View File

@ -4,6 +4,7 @@
#include <wchar.h>
#include <utf8/utf8.h>
#include <algorithm>
#include <memory>
#ifdef WIN32
#include <wcwidth.h>

View File

@ -402,6 +402,8 @@ struct Theme {
init_pair(CURSESPP_OVERLAY_CONTENT, overlayForeground.Id(mode, -1), overlayBgId);
init_pair(CURSESPP_OVERLAY_INPUT_FRAME, overlayFocusedBorder.Id(mode, COLOR_RED), overlayBgId);
init_pair(CURSESPP_OVERLAY_TEXT_FOCUSED, overlayFocusedText.Id(mode, COLOR_RED), overlayBgId);
init_pair(CURSESPP_OVERLAY_LIST_FRAME, foregroundId, overlayBgId);
init_pair(CURSESPP_OVERLAY_LIST_FRAME_FOCUSED, focusedBorder.Id(mode, COLOR_RED), overlayBgId);
/* shortcuts */
init_pair(

View File

@ -68,9 +68,11 @@
#define CURSESPP_OVERLAY_CONTENT 22
#define CURSESPP_OVERLAY_INPUT_FRAME 23
#define CURSESPP_OVERLAY_TEXT_FOCUSED 24
#define CURSESPP_OVERLAY_LIST_FRAME 25
#define CURSESPP_OVERLAY_LIST_FRAME_FOCUSED 26
#define CURSESPP_BANNER 25
#define CURSESPP_FOOTER 26
#define CURSESPP_BANNER 27
#define CURSESPP_FOOTER 28
namespace cursespp {
class Colors {

View File

@ -100,6 +100,8 @@ namespace cursespp {
static void style(ListWindow& listWindow, bool frameVisible = false) {
listWindow.SetContentColor(CURSESPP_OVERLAY_CONTENT);
listWindow.SetFocusedContentColor(CURSESPP_OVERLAY_CONTENT);
listWindow.SetFrameColor(CURSESPP_OVERLAY_LIST_FRAME);
listWindow.SetFocusedFrameColor(CURSESPP_OVERLAY_LIST_FRAME_FOCUSED);
listWindow.SetFrameVisible(frameVisible);
}