switch subtitles to HIGHCONTRAST, big improvement! =D

This commit is contained in:
nick black 2020-02-18 16:28:11 -05:00
parent 4bea8048d4
commit 887d4f1f79
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 11 additions and 2 deletions

View File

@ -44,12 +44,14 @@ set_target_properties(
)
set_target_properties(notcurses PROPERTIES
PUBLIC_HEADER "include/notcurses.h"
PUBLIC_HEADER
"include/notcurses/notcurses.h"
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}
)
set_target_properties(notcurses-static PROPERTIES
PUBLIC_HEADER "include/notcurses.h"
PUBLIC_HEADER
"include/notcurses/notcurses.h"
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}
)
@ -656,6 +658,12 @@ install(FILES
DESTINATION ${NOTCURSES_SHARE}
)
install(DIRECTORY
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
DESTINATION
${CMAKE_INSTALL_INCLUDEDIR}
)
install(FILES
${MANPAGES1}
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1

View File

@ -69,6 +69,7 @@ int perframe([[maybe_unused]] struct notcurses* _nc, struct ncvisual* ncv, void*
channels_set_bg_alpha(&channels, CELL_ALPHA_TRANSPARENT);
ncplane_set_base(subtitle_plane, channels, 0, "");
ncplane_set_fg(subtitle_plane, 0x00ffff);
ncplane_set_fg_alpha(subtitle_plane, CELL_ALPHA_HIGHCONTRAST);
ncplane_set_bg_alpha(subtitle_plane, CELL_ALPHA_TRANSPARENT);
}else{
ncplane_erase(subtitle_plane);