From 19e3c0f6b80b41e1dca65899053590f59952e3fb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 Jan 2017 18:20:59 +0300 Subject: Move color names into separate file. --- src/gui/widgets/browserbox.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'src/gui/widgets/browserbox.h') diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index fe0c0c36d..aa5a70b0e 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -29,6 +29,7 @@ #include "enums/simpletypes/opaque.h" #include "enums/gui/browserboxmode.h" +#include "enums/gui/colorname.h" #include "gui/browserlink.h" @@ -114,21 +115,6 @@ class BrowserBox final : public Widget, void updateHeight(); - enum - { - RED = 0, - BLACK, - GREEN, - BLUE, - ORANGE, - YELLOW, - PINK, - PURPLE, - GRAY, - BROWN, - COLORS_MAX - }; - typedef std::list TextRows; TextRows &getRows() noexcept2 A_WARN_UNUSED @@ -203,7 +189,7 @@ class BrowserBox final : public Widget, Color mHighlightColor; Color mHyperLinkColor; - Color mColors[2][COLORS_MAX]; + Color mColors[2][ColorName::COLORS_MAX]; Opaque mOpaque; bool mUseLinksAndUserColors; -- cgit v1.2.3-70-g09d2