summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-04 13:24:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-04 13:24:01 +0300
commit0c7a1466e8c2c2dd6e15779368c87b62b2da601f (patch)
tree24be0979382c8844c68365cac1d6de046da16681 /src/gui/widgets/textfield.h
parenteed0bccd09e5708eb9b629c14f69022e362f4aa4 (diff)
downloadplus-0c7a1466e8c2c2dd6e15779368c87b62b2da601f.tar.gz
plus-0c7a1466e8c2c2dd6e15779368c87b62b2da601f.tar.bz2
plus-0c7a1466e8c2c2dd6e15779368c87b62b2da601f.tar.xz
plus-0c7a1466e8c2c2dd6e15779368c87b62b2da601f.zip
Add text fileds cursor (caret) color.
New theme colors: CARET
Diffstat (limited to 'src/gui/widgets/textfield.h')
-rw-r--r--src/gui/widgets/textfield.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h
index 72d679052..97048ccba 100644
--- a/src/gui/widgets/textfield.h
+++ b/src/gui/widgets/textfield.h
@@ -104,6 +104,8 @@ class TextField : public gcn::TextField
{ mSendAlwaysEvents = b; }
protected:
+ void drawCaret(gcn::Graphics* graphics, int x) override;
+
bool mSendAlwaysEvents;
private:
@@ -119,6 +121,7 @@ class TextField : public gcn::TextField
unsigned mMaximum;
bool mLoseFocusOnTab;
int mLastEventPaste;
+ const gcn::Color *mCaretColor;
};
#endif