#include "FontInfo.h"
#include "support/strfwd.h"
-#include "support/types.h"
#include <string>
/// \param sel whether to take the selection state into account
ColorCode backgroundColor(Inset const * inset, bool sel = true) const;
+ /// Determines the text color based on the intended color, the
+ /// change tracking state and the selection state.
+ /// \param color what the color should be by default
+ Color textColor(Color const & color) const;
+
///
MetricsBase base;
///
class ColorChanger : public Changer<FontInfo, ColorCode> {
public:
///
- ColorChanger(FontInfo & font, docstring const & color,
+ ColorChanger(FontInfo & font, ColorCode color,
bool really_change_color = true);
///
~ColorChanger();