mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
cursor color should follow text_fg color
This commit is contained in:
parent
a941082546
commit
26332522da
@ -305,7 +305,7 @@ get_blink_rate() const {
|
||||
// the cursor. You can attach suitable cursor geometry
|
||||
// to this node.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE const NodePath &PGEntry::
|
||||
INLINE NodePath PGEntry::
|
||||
get_cursor_def() {
|
||||
LightReMutexHolder holder(_lock);
|
||||
return _cursor_def;
|
||||
|
@ -647,7 +647,7 @@ setup_minimal(float width, int num_lines) {
|
||||
clear_cursor_def();
|
||||
|
||||
LineSegs ls;
|
||||
ls.set_color(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
ls.set_color(text_node->get_text_color());
|
||||
ls.move_to(0.0f, 0.0f, -0.15f * line_height);
|
||||
ls.draw_to(0.0f, 0.0f, 0.70f * line_height);
|
||||
get_cursor_def().attach_new_node(ls.create());
|
||||
|
@ -98,7 +98,7 @@ PUBLISHED:
|
||||
INLINE void set_blink_rate(float blink_rate);
|
||||
INLINE float get_blink_rate() const;
|
||||
|
||||
INLINE const NodePath &get_cursor_def();
|
||||
INLINE NodePath get_cursor_def();
|
||||
INLINE void clear_cursor_def();
|
||||
|
||||
INLINE void set_cursor_keys_active(bool flag);
|
||||
|
Loading…
x
Reference in New Issue
Block a user