Commit 5f7e1f1e authored by Daniel Elstner's avatar Daniel Elstner
Browse files

:color_modified_): Use "Accent Red" from the basic GNOME 32-color palette

* src/filetree.cc (FileTree::color_modified_): Use "Accent Red"
from the basic GNOME 32-color palette instead of rgb.txt "red".

(FileTree::text_cell_data_func): Set the text style to "oblique"
in addition to painting in red color if the file was modified.
parent 07c1837c
2004-05-30 Daniel Elstner <daniel.elstner@gmx.net>
* src/filetree.cc (FileTree::color_modified_): Use "Accent Red"
from the basic GNOME 32-color palette instead of rgb.txt "red".
(FileTree::text_cell_data_func): Set the text style to "oblique"
in addition to painting in red color if the file was modified.
2004-05-30 Daniel Elstner <daniel.elstner@gmx.net>
* src/pcreshell.cc (Pattern::get_substring_bounds): Sanity-check
......
......@@ -62,7 +62,7 @@ namespace Regexxer
FileTree::FileTree()
:
treestore_ (Gtk::TreeStore::create(filetree_columns())),
color_modified_ ("red"),
color_modified_ ("#DF421E"), // accent red
sum_matches_ (0)
{
using namespace Gtk;
......@@ -357,6 +357,11 @@ void FileTree::text_cell_data_func(Gtk::CellRenderer* cell, const Gtk::TreeModel
renderer.property_foreground_gdk() = *color;
else
renderer.property_foreground_gdk().reset_value();
if (color == &color_modified_)
renderer.property_style() = Pango::STYLE_OBLIQUE;
else
renderer.property_style().reset_value();
}
// static
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment