summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-11-04 11:45:45 -0500
committerJan Holesovsky <kendy@collabora.com>2018-11-08 22:37:47 +0100
commit66c1891abb374459bf615276d0190bb7bb17e62c (patch)
treea28361f8a1e766fc244d761cf43f0f7c7eecd1c7
parentLOK: custom widgets: reduce theme plugin API surface (diff)
downloadcore-feature/custom-widgets.tar.gz
core-feature/custom-widgets.zip
LOK: custom widgets: simplify and correct colors feature/custom-widgets
Also remove macroni. Change-Id: I0b2914e9f0e2aba9d8ca10338b515b598126e315
-rw-r--r--vcl/inc/WidgetThemeLibraryTypes.hxx33
1 files changed, 0 insertions, 33 deletions
diff --git a/vcl/inc/WidgetThemeLibraryTypes.hxx b/vcl/inc/WidgetThemeLibraryTypes.hxx
index af7ff9738471..9b069d3dc066 100644
--- a/vcl/inc/WidgetThemeLibraryTypes.hxx
+++ b/vcl/inc/WidgetThemeLibraryTypes.hxx
@@ -235,39 +235,6 @@ enum class ButtonValue {
Mixed
};
-// Color types
-
-constexpr uint32_t RGB_COLORDATA(uint8_t r, uint8_t g, uint8_t b) {
- return uint32_t(b) | (uint32_t(g) << 8) | (uint32_t(r) << 16);
-}
-
-#define COLORDATA_RED( n ) ((uint8_t)((n)>>16))
-#define COLORDATA_GREEN( n ) ((uint8_t)(((uint16_t)(n)) >> 8))
-#define COLORDATA_BLUE( n ) ((uint8_t)(n))
-#define COLORDATA_RGB( n ) ((uint32_t)((n) & 0x00FFFFFF))
-
-#define COL_BLACK RGB_COLORDATA( 0x00, 0x00, 0x00 )
-#define COL_BLUE RGB_COLORDATA( 0x00, 0x00, 0x80 )
-#define COL_GREEN RGB_COLORDATA( 0x00, 0x80, 0x00 )
-#define COL_CYAN RGB_COLORDATA( 0x00, 0x80, 0x80 )
-#define COL_RED RGB_COLORDATA( 0x80, 0x00, 0x00 )
-#define COL_RED_FONTCOLOR RGB_COLORDATA( 0xCE, 0x18, 0x1E )
-#define COL_MAGENTA RGB_COLORDATA( 0x80, 0x00, 0x80 )
-#define COL_BROWN RGB_COLORDATA( 0x80, 0x80, 0x00 )
-#define COL_GRAY RGB_COLORDATA( 0x80, 0x80, 0x80 )
-#define COL_GRAY3 RGB_COLORDATA( 0xCC, 0xCC, 0xCC )
-#define COL_GRAY7 RGB_COLORDATA( 0x66, 0x66, 0x66 )
-#define COL_LIGHTGRAY RGB_COLORDATA( 0xC0, 0xC0, 0xC0 )
-#define COL_LIGHTBLUE RGB_COLORDATA( 0x00, 0x00, 0xFF )
-#define COL_LIGHTGREEN RGB_COLORDATA( 0x00, 0xFF, 0x00 )
-#define COL_LIGHTCYAN RGB_COLORDATA( 0x00, 0xFF, 0xFF )
-#define COL_LIGHTRED RGB_COLORDATA( 0xFF, 0x00, 0x00 )
-#define COL_LIGHTMAGENTA RGB_COLORDATA( 0xFF, 0x00, 0xFF )
-#define COL_LIGHTGRAYBLUE RGB_COLORDATA( 0xE0, 0xE0, 0xFF )
-#define COL_YELLOW RGB_COLORDATA( 0xFF, 0xFF, 0x00 )
-#define COL_YELLOW_HIGHLIGHT RGB_COLORDATA( 0xFF, 0xF2, 0x00 )
-#define COL_WHITE RGB_COLORDATA( 0xFF, 0xFF, 0xFF )
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */