Hide normal selection when handle_selection is true

This commit is contained in:
Jesse van den Kieboom 2015-12-17 23:29:58 +01:00
parent f015cd292b
commit 2e580e7857
2 changed files with 7 additions and 0 deletions

View file

@ -129,6 +129,8 @@ class Gitg.DiffViewHunk : Gtk.Grid
d_sourceview_hunk.button_press_event.connect(button_press_event_on_view);
d_sourceview_hunk.motion_notify_event.connect(motion_notify_event_on_view);
d_sourceview_hunk.button_release_event.connect(button_release_event_on_view);
d_sourceview_hunk.get_style_context().add_class("handle-selection");
}
update_hunk_label();

View file

@ -36,6 +36,11 @@ GitgDiffViewHunk GtkSourceView.view {
color: @theme_text_color;
}
GitgDiffViewHunk GtkSourceView.view.handle-selection:selected {
background-color: transparent;
color: @theme_text_color;
}
GitgDiffView GitgDiffViewCommitDetails {
border-bottom: 1px outset lighter(@borders);
}