Center native controls and preserve dropdown editing and focus (by Codex)
This commit is contained in:
1 parent
11a6356c1e
commit
42b728d4ea
14 files changed
+541
-64
No files matched your search
@@ -6,7 +6,7 @@ add_library(bmh_modern_ui STATIC view.cpp ticket_popover.cpp)
|
||||
target_link_libraries(bmh_modern_ui PUBLIC bmh_modern_ui_core PRIVATE bmh_rmlui bmh_launcher nfd::nfd ${BMH_SDL_TARGET})
|
||||
if(MSVC)
|
||||
target_compile_options(bmh_modern_ui_core PRIVATE /W4 /utf-8)
|
||||
target_compile_options(bmh_modern_ui PRIVATE /W4 /utf-8)
|
||||
target_compile_options(bmh_modern_ui PRIVATE /W4 /utf-8 /bigobj)
|
||||
else()
|
||||
target_compile_options(bmh_modern_ui_core PRIVATE -Wall -Wextra -Wpedantic)
|
||||
target_compile_options(bmh_modern_ui PRIVATE -Wall -Wextra -Wpedantic)
|
||||
@@ -17,7 +17,12 @@ file(MAKE_DIRECTORY "${modern_assets}")
|
||||
foreach(asset modern.rml theme.rcss ticket.rcss)
|
||||
configure_file("${CMAKE_SOURCE_DIR}/assets/modern/${asset}" "${modern_assets}/${asset}" COPYONLY)
|
||||
endforeach()
|
||||
file(COPY "${CMAKE_SOURCE_DIR}/assets/modern/icons" DESTINATION "${modern_assets}")
|
||||
file(GLOB modern_icons CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/assets/modern/icons/*.svg")
|
||||
file(MAKE_DIRECTORY "${modern_assets}/icons")
|
||||
foreach(icon ${modern_icons})
|
||||
get_filename_component(icon_name "${icon}" NAME)
|
||||
configure_file("${icon}" "${modern_assets}/icons/${icon_name}" COPYONLY)
|
||||
endforeach()
|
||||
foreach(weight Regular Bold)
|
||||
configure_file("${rmlui_SOURCE_DIR}/Samples/assets/LatoLatin-${weight}.ttf"
|
||||
"${modern_assets}/LatoLatin-${weight}.ttf" COPYONLY)
|
||||
@@ -44,3 +49,9 @@ endif()
|
||||
foreach(theme midnight silver matchday)
|
||||
add_test(NAME modern_ticket_${theme} COMMAND modern_ticket_document_tests "${modern_assets}" ${theme})
|
||||
endforeach()
|
||||
add_executable(modern_control_layout_tests ../../../tests/modern_control_layout_tests.cpp)
|
||||
target_link_libraries(modern_control_layout_tests PRIVATE bmh_modern_ui_core RmlUi::Core)
|
||||
if(MSVC)
|
||||
target_compile_options(modern_control_layout_tests PRIVATE /utf-8)
|
||||
endif()
|
||||
add_test(NAME modern_control_layout_tests COMMAND modern_control_layout_tests "${modern_assets}")
|
||||
Reference in new issue
Block a user