diff --git a/src/main.cpp b/src/main.cpp index f96fe8c..e349f8d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -41,93 +41,6 @@ bool ptnOrder = true; std::map efxtable; std::map efxmemtable; -bool colorMonochrome() { - // Primary Background - init_pair(1, COLOR_BLACK, COLOR_BLACK); - // Inactive Section - init_pair(2, COLOR_WHITE, COLOR_BLACK); - // Active Section - init_pair(3, COLOR_BLACK, COLOR_WHITE); - // Display - init_pair(4, COLOR_WHITE, COLOR_BLACK); - // Display Row# - init_pair(5, COLOR_WHITE, COLOR_BLACK); - // Display Playhead - init_pair(6, COLOR_BLACK, COLOR_WHITE); - // Display Playhead Row# - init_pair(7, COLOR_BLACK, COLOR_WHITE); - // Display Stopped Playhead - init_pair(8, COLOR_WHITE, COLOR_BLACK); - // Display Stopped Playhead Row# - init_pair(9, COLOR_WHITE, COLOR_BLACK); - // Display VU Bar Low - init_pair(10, COLOR_WHITE, COLOR_WHITE); - // Display VU Bar Medium - init_pair(11, COLOR_WHITE, COLOR_WHITE); - // Display VU Bar High - init_pair(12, COLOR_WHITE, COLOR_WHITE); - // Inverted Text - init_pair(13, COLOR_WHITE, COLOR_BLACK); -} - -bool colorLimited() { - // Primary Background - init_pair(1, COLOR_BLACK, 8); - // Inactive Section - init_pair(2, COLOR_BLACK, COLOR_WHITE); - // Active Section - init_pair(3, COLOR_BLACK, COLOR_CYAN); - // Display - init_pair(4, COLOR_WHITE, COLOR_BLACK); - // Display Row# - init_pair(5, COLOR_YELLOW, COLOR_BLACK); - // Display Playhead - init_pair(6, COLOR_WHITE, COLOR_BLUE); - // Display Playhead Row# - init_pair(7, COLOR_YELLOW, COLOR_BLUE); - // Display Stopped Playhead - init_pair(8, COLOR_WHITE, COLOR_RED); - // Display Stopped Playhead Row# - init_pair(9, COLOR_YELLOW, COLOR_RED); - // Display VU Bar Low - init_pair(10, COLOR_WHITE, COLOR_GREEN); - // Display VU Bar Medium - init_pair(11, COLOR_WHITE, COLOR_YELLOW); - // Display VU Bar High - init_pair(12, COLOR_WHITE, COLOR_RED); - // Inverted Text - init_pair(13, COLOR_WHITE, COLOR_BLACK); -} - -void colorFull() { - // Primary Background - init_pair(1, COLOR_BLACK, 8); - // Inactive Section - init_pair(2, 8, 7); - // Active Section - init_pair(3, 0, 12); - // Display - init_pair(4, 7, COLOR_BLACK); - // Display Row# - init_pair(5, 3, COLOR_BLACK); - // Display Playhead - init_pair(6, COLOR_WHITE, COLOR_BLUE); - // Display Playhead Row# - init_pair(7, COLOR_YELLOW, COLOR_BLUE); - // Display Stopped Playhead - init_pair(8, COLOR_WHITE, COLOR_RED); - // Display Stopped Playhead Row# - init_pair(9, COLOR_YELLOW, COLOR_RED); - // Display VU Bar Low - init_pair(10, COLOR_WHITE, COLOR_GREEN); - // Display VU Bar Medium - init_pair(11, COLOR_WHITE, COLOR_YELLOW); - // Display VU Bar High - init_pair(12, COLOR_WHITE, COLOR_RED); - // Inverted Text - init_pair(13, COLOR_WHITE, COLOR_BLACK); -} - int main(int argc, char *argv[]) { printf("TRAKKER %s (using XMP %s)\n", TRAKKER_VERSION, xmp_version); for (int a = 1; a < argc; ++a) { @@ -221,12 +134,87 @@ int main(int argc, char *argv[]) { start_color(); if ((has_colors() == TRUE && colorMode == 0) || colorMode >= 2) { if ((can_change_color() == TRUE && colorMode == 0) || colorMode == 3) { - colorFull(); + // Primary Background + init_pair(1, COLOR_BLACK, 8); + // Inactive Section + init_pair(2, 8, 7); + // Active Section + init_pair(3, 0, 12); + // Display + init_pair(4, 7, COLOR_BLACK); + // Display Row# + init_pair(5, 3, COLOR_BLACK); + // Display Playhead + init_pair(6, COLOR_WHITE, COLOR_BLUE); + // Display Playhead Row# + init_pair(7, COLOR_YELLOW, COLOR_BLUE); + // Display Stopped Playhead + init_pair(8, COLOR_WHITE, COLOR_RED); + // Display Stopped Playhead Row# + init_pair(9, COLOR_YELLOW, COLOR_RED); + // Display VU Bar Low + init_pair(10, COLOR_WHITE, COLOR_GREEN); + // Display VU Bar Medium + init_pair(11, COLOR_WHITE, COLOR_YELLOW); + // Display VU Bar High + init_pair(12, COLOR_WHITE, COLOR_RED); + // Inverted Text + init_pair(13, COLOR_WHITE, COLOR_BLACK); } else { - colorLimited(); + // Primary Background + init_pair(1, COLOR_BLACK, 8); + // Inactive Section + init_pair(2, COLOR_BLACK, COLOR_WHITE); + // Active Section + init_pair(3, COLOR_BLACK, COLOR_CYAN); + // Display + init_pair(4, COLOR_WHITE, COLOR_BLACK); + // Display Row# + init_pair(5, COLOR_YELLOW, COLOR_BLACK); + // Display Playhead + init_pair(6, COLOR_WHITE, COLOR_BLUE); + // Display Playhead Row# + init_pair(7, COLOR_YELLOW, COLOR_BLUE); + // Display Stopped Playhead + init_pair(8, COLOR_WHITE, COLOR_RED); + // Display Stopped Playhead Row# + init_pair(9, COLOR_YELLOW, COLOR_RED); + // Display VU Bar Low + init_pair(10, COLOR_WHITE, COLOR_GREEN); + // Display VU Bar Medium + init_pair(11, COLOR_WHITE, COLOR_YELLOW); + // Display VU Bar High + init_pair(12, COLOR_WHITE, COLOR_RED); + // Inverted Text + init_pair(13, COLOR_WHITE, COLOR_BLACK); } } else { - colorMonochrome(); + // Primary Background + init_pair(1, COLOR_BLACK, COLOR_BLACK); + // Inactive Section + init_pair(2, COLOR_WHITE, COLOR_BLACK); + // Active Section + init_pair(3, COLOR_BLACK, COLOR_WHITE); + // Display + init_pair(4, COLOR_WHITE, COLOR_BLACK); + // Display Row# + init_pair(5, COLOR_WHITE, COLOR_BLACK); + // Display Playhead + init_pair(6, COLOR_BLACK, COLOR_WHITE); + // Display Playhead Row# + init_pair(7, COLOR_BLACK, COLOR_WHITE); + // Display Stopped Playhead + init_pair(8, COLOR_WHITE, COLOR_BLACK); + // Display Stopped Playhead Row# + init_pair(9, COLOR_WHITE, COLOR_BLACK); + // Display VU Bar Low + init_pair(10, COLOR_WHITE, COLOR_WHITE); + // Display VU Bar Medium + init_pair(11, COLOR_WHITE, COLOR_WHITE); + // Display VU Bar High + init_pair(12, COLOR_WHITE, COLOR_WHITE); + // Inverted Text + init_pair(13, COLOR_WHITE, COLOR_BLACK); } cbreak();