✨ EditBox and TextBox should always set a caret width, even when a default theme is used that doesn't specify one
parent
309cd144d6
commit
5f40cf3ae6
|
@ -560,7 +560,7 @@ namespace tgui
|
||||||
FloatRect m_selectedTextBackground;
|
FloatRect m_selectedTextBackground;
|
||||||
|
|
||||||
// The blinking caret
|
// The blinking caret
|
||||||
FloatRect m_caret;
|
FloatRect m_caret = {{0, 0, 1, 0}};
|
||||||
|
|
||||||
// Is there a possibility that the user is going to double click?
|
// Is there a possibility that the user is going to double click?
|
||||||
bool m_possibleDoubleClick = false;
|
bool m_possibleDoubleClick = false;
|
||||||
|
|
|
@ -488,7 +488,7 @@ namespace tgui
|
||||||
Color m_backgroundColorCached;
|
Color m_backgroundColorCached;
|
||||||
Color m_caretColorCached;
|
Color m_caretColorCached;
|
||||||
Color m_selectedTextBackgroundColorCached;
|
Color m_selectedTextBackgroundColorCached;
|
||||||
float m_caretWidthCached = 0;
|
float m_caretWidthCached = 1;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue