Skip to content

Commit

Permalink
Use butter1 (yellow) from Tango theme for highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed May 24, 2024
1 parent 254ac71 commit c8574e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rednotebook/gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,9 @@ def _get_buffer(self, key, text):
buf = self.recent_buffers[key] = GtkSource.Buffer.new()
buf.set_style_scheme(self._get_style_scheme())
buf.set_language(self._get_t2t_highlighting())
buf.create_tag("highlighter", background="Yellow")
# Use butter1 (yellow) from Tango theme for highlighting.
# I couldn't find a way to take the background color from the theme directly.
buf.create_tag("highlighter", background="#fce94f")
buf.begin_not_undoable_action()
buf.set_text(text)
buf.end_not_undoable_action()
Expand Down

0 comments on commit c8574e3

Please sign in to comment.