Skip to content

Commit

Permalink
Merge pull request #27 from tau-OS/gutter-colour-fix
Browse files Browse the repository at this point in the history
Fix the gutter's bg colour
  • Loading branch information
lainsce authored Aug 27, 2023
2 parents 0c66fcc + b584753 commit 28633fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/style-dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.gutter-padding-fix {
padding: 0;
}
4 changes: 4 additions & 0 deletions src/Views/ContentView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ public class Enigma.ContentView : He.Bin {
settings.settings.bind ("show-line-numbers", textbox, "show-line-numbers", DEFAULT);
settings.settings.bind ("hilight-curr-line", textbox, "highlight-current-line", DEFAULT);
settings.settings.bind ("hilight-brackets", ((GtkSource.Buffer)textbox.get_buffer ()), "highlight-matching-brackets", DEFAULT);

var gutter = textbox.get_gutter (Gtk.TextWindowType.LEFT);
gutter.add_css_class ("gutter-padding-fix");
gutter.add_css_class ("bottom-bar");
}

public async void open () {
Expand Down

0 comments on commit 28633fb

Please sign in to comment.