Browse Source

Added background_pattern.

merge-requests/365/head
eidheim 10 years ago
parent
commit
d6f3b8c3e5
  1. 3
      src/files.h
  2. 3
      src/source.cc

3
src/files.h

@ -138,10 +138,11 @@ const std::string juci_light_style =
" <color name=\"purple\" value=\"#990099\"/>\n" " <color name=\"purple\" value=\"#990099\"/>\n"
"\n" "\n"
" <style name=\"text\" foreground=\"#000000\" background=\"#FFFFFF\"/>\n" " <style name=\"text\" foreground=\"#000000\" background=\"#FFFFFF\"/>\n"
" <style name=\"background-pattern\" background=\"#rgba(.125,.125,.125,.025)\"/>\n"
" <style name=\"selection\" background=\"#4A90D9\"/>\n" " <style name=\"selection\" background=\"#4A90D9\"/>\n"
"\n" "\n"
" <!-- Current Line Highlighting -->\n" " <!-- Current Line Highlighting -->\n"
" <style name=\"current-line\" background=\"#EEEEEE\"/>\n" " <style name=\"current-line\" background=\"#rgba(1,1,1,.075)\"/>\n"
"\n" "\n"
" <!-- Bracket Matching -->\n" " <!-- Bracket Matching -->\n"
" <style name=\"bracket-match\" foreground=\"white\" background=\"gray\" bold=\"true\"/>\n" " <style name=\"bracket-match\" foreground=\"white\" background=\"gray\" bold=\"true\"/>\n"

3
src/source.cc

@ -315,6 +315,9 @@ void Source::View::configure() {
property_show_line_numbers() = Singleton::Config::source()->show_line_numbers; property_show_line_numbers() = Singleton::Config::source()->show_line_numbers;
if(Singleton::Config::source()->font.size()>0) if(Singleton::Config::source()->font.size()>0)
override_font(Pango::FontDescription(Singleton::Config::source()->font)); override_font(Pango::FontDescription(Singleton::Config::source()->font));
#if GTK_VERSION_GE(3, 16)
gtk_source_view_set_background_pattern(this->gobj(), GTK_SOURCE_BACKGROUND_PATTERN_TYPE_GRID);
#endif
//Create tags for diagnostic warnings and errors: //Create tags for diagnostic warnings and errors:
auto scheme = get_source_buffer()->get_style_scheme(); auto scheme = get_source_buffer()->get_style_scheme();

Loading…
Cancel
Save