Skip to content

Commit

Permalink
util/color/predefinedcolorpalettes: Add Serato DJ Intro Hotcue Palette
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Mar 6, 2020
1 parent ae41c5b commit 4280a0d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/util/color/predefinedcolorpalettes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@ constexpr mixxx::RgbColor kTraktorProTrackColorBlue(0x0187FF);
constexpr mixxx::RgbColor kTraktorProTrackColorViolet(0xA669FF);
constexpr mixxx::RgbColor kTraktorProTrackColorMagenta(0xFE55EA);

// Serato DJ Intro Hotcue Color Palette
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorRed(0xCC0000);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorOrange(0xCC4400);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorBrown(0xCC8800);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorYellow(0xCCCC00);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorEmerald(0x88CC00);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorKelly(0x44CC00);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorGreen(0x00CC00);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorSea(0x00CC44);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorJade(0x00CC88);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorTurquoise(0x00CCCC);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorTeal(0x0088CC);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorBlue(0x0044CC);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorDarkBlue(0x0000CC);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorViolet(0x4400CC);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorPurple(0x8800CC);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorFuchsia(0xCC00CC);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorMagenta(0xCC0088);
constexpr mixxx::RgbColor kSeratoDJIntroHotcueColorCarmine(0xCC0044);

// Serato DJ Pro Hotcue Color Palette
constexpr mixxx::RgbColor kSeratoDJProHotcueColorRed1(0xC02626);
constexpr mixxx::RgbColor kSeratoDJProHotcueColorOrange1(0xDB4E27);
Expand All @@ -52,6 +72,7 @@ constexpr mixxx::RgbColor kSeratoDJProHotcueColorPurple(0xDC1D49);
constexpr mixxx::RgbColor kSeratoDJProHotcueColorRed2(0xC71136);

// Serato DJ Pro Track Color Palette (as shown in library column)
constexpr mixxx::RgbColor kSeratoDJProHotcueColorRed1(0xC02626);
constexpr mixxx::RgbColor kSeratoDJProTrackColorGrey1(0x333333);
constexpr mixxx::RgbColor kSeratoDJProTrackColorGrey2(0x555555);
constexpr mixxx::RgbColor kSeratoDJProTrackColorPink1(0x993399);
Expand Down Expand Up @@ -104,6 +125,31 @@ const ColorPalette PredefinedColorPalettes::kMixxxHotcueColorPalette =
kColorMixxxWhite,
});

const ColorPalette PredefinedColorPalettes::kSeratoDJIntroHotcueColorPalette =
ColorPalette(
QStringLiteral("Serato DJ Intro Hotcue Colors"),
QList<mixxx::RgbColor>{
kSeratoDJIntroHotcueColorRed,
kSeratoDJIntroHotcueColorOrange,
kSeratoDJIntroHotcueColorBrown,
kSeratoDJIntroHotcueColorYellow,
kSeratoDJIntroHotcueColorEmerald,
kSeratoDJIntroHotcueColorKelly,
kSeratoDJIntroHotcueColorGreen,
kSeratoDJIntroHotcueColorSea,
kSeratoDJIntroHotcueColorJade,
kSeratoDJIntroHotcueColorTurquoise,
kSeratoDJIntroHotcueColorTeal,
kSeratoDJIntroHotcueColorBlue,
kSeratoDJIntroHotcueColorDarkBlue,
kSeratoDJIntroHotcueColorViolet,
kSeratoDJIntroHotcueColorPurple,
kSeratoDJIntroHotcueColorFuchsia,
kSeratoDJIntroHotcueColorMagenta,
kSeratoDJIntroHotcueColorCarmine,
},
QList<unsigned int>{0, 2, 12, 3, 6, 15, 9, 14});

const ColorPalette PredefinedColorPalettes::kSeratoDJProHotcueColorPalette =
ColorPalette(
QStringLiteral("Serato DJ Pro Hotcue Colors"),
Expand Down Expand Up @@ -205,6 +251,7 @@ const QList<ColorPalette> PredefinedColorPalettes::kPalettes{
// Hotcue Color Palettes
mixxx::PredefinedColorPalettes::kMixxxHotcueColorPalette,
mixxx::PredefinedColorPalettes::kSeratoDJProHotcueColorPalette,
mixxx::PredefinedColorPalettes::kSeratoDJIntroHotcueColorPalette,

// Track Color Palettes
mixxx::PredefinedColorPalettes::kRekordboxTrackColorPalette,
Expand Down
1 change: 1 addition & 0 deletions src/util/color/predefinedcolorpalettes.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace mixxx {
class PredefinedColorPalettes {
public:
static const ColorPalette kMixxxHotcueColorPalette;
static const ColorPalette kSeratoDJIntroHotcueColorPalette;
static const ColorPalette kSeratoDJProHotcueColorPalette;

static const ColorPalette kRekordboxTrackColorPalette;
Expand Down

0 comments on commit 4280a0d

Please sign in to comment.