diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-27 18:20:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-27 18:20:59 +0300 |
commit | 19e3c0f6b80b41e1dca65899053590f59952e3fb (patch) | |
tree | 547cdc99ec11ce74d674b22003ca8927891d67a4 /src/gui/widgets/browserbox.h | |
parent | 6917c126fbee146183433367be9a3d8fef94a1dd (diff) | |
download | mv-19e3c0f6b80b41e1dca65899053590f59952e3fb.tar.gz mv-19e3c0f6b80b41e1dca65899053590f59952e3fb.tar.bz2 mv-19e3c0f6b80b41e1dca65899053590f59952e3fb.tar.xz mv-19e3c0f6b80b41e1dca65899053590f59952e3fb.zip |
Move color names into separate file.
Diffstat (limited to 'src/gui/widgets/browserbox.h')
-rw-r--r-- | src/gui/widgets/browserbox.h | 18 |
1 files changed, 2 insertions, 16 deletions
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<std::string> 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; |