Skip to content

Commit

Permalink
Editable text is now light grey when element is only hovered
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed May 9, 2020
1 parent 3dac299 commit 7bb292c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gaphor/diagram/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ def text_draw_focus_box(context, x, y, w, h):
cr = context.cairo
cr.save()
try:
# cr.set_dash(() if context.focused else (2.0, 2.0), 0)
cr.set_dash((), 0)
cr.set_source_rgb(0.6, 0.6, 0.6)
if context.focused:
cr.set_source_rgb(0.6, 0.6, 0.6)
else:
cr.set_source_rgb(0.8, 0.8, 0.8)
cr.set_line_width(0.5)
cr.rectangle(x, y, w, h)
cr.stroke()
Expand Down

0 comments on commit 7bb292c

Please sign in to comment.