mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 10:38:09 +08:00 
			
		
		
		
	Fix default char for checkbox and radiobox on Windows.
This addresses: https://github.com/ArthurSonzogni/FTXUI/issues/27
This commit is contained in:
		 ArthurSonzogni
					ArthurSonzogni
				
			
				
					committed by
					
						 Arthur Sonzogni
						Arthur Sonzogni
					
				
			
			
				
	
			
			
			 Arthur Sonzogni
						Arthur Sonzogni
					
				
			
						parent
						
							22afacc28b
						
					
				
				
					commit
					61ca97840b
				
			| @@ -20,10 +20,13 @@ class CheckBox : public Component { | ||||
|   bool state = false; | ||||
|   std::wstring label = L"label"; | ||||
|  | ||||
|   // std::wstring checked = L"[X] "; | ||||
|   // std::wstring unchecked = L"[ ] "; | ||||
| #if defined(_WIN32) | ||||
|   std::wstring checked = L"[X] "; | ||||
|   std::wstring unchecked = L"[ ] "; | ||||
| #else | ||||
|   std::wstring checked = L"▣ "; | ||||
|   std::wstring unchecked = L"☐ "; | ||||
| #endif | ||||
|  | ||||
|   Decorator focused_style = inverted; | ||||
|   Decorator unfocused_style = nothing; | ||||
|   | ||||
| @@ -21,8 +21,13 @@ class RadioBox : public Component { | ||||
|   int focused = 0; | ||||
|   std::vector<std::wstring> entries; | ||||
|  | ||||
| #if defined(_WIN32) | ||||
|   std::wstring checked = L"(*) "; | ||||
|   std::wstring unchecked = L"( ) "; | ||||
| #else | ||||
|   std::wstring checked = L"◉ "; | ||||
|   std::wstring unchecked = L"○ "; | ||||
| #endif | ||||
|  | ||||
|   Decorator focused_style = inverted; | ||||
|   Decorator unfocused_style = nothing; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user