mirror of
https://github.com/clangen/musikcube.git
synced 2025-04-17 08:45:01 +00:00
Fixed Linux compile and ListWindow frame color in overlays.
This commit is contained in:
parent
29fb896d33
commit
a1be9aa779
@ -4,6 +4,7 @@
|
||||
#include <wchar.h>
|
||||
#include <utf8/utf8.h>
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <wcwidth.h>
|
||||
|
@ -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(
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user