1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 #include <svx/ColorSets.hxx>
16 ColorSet::ColorSet(OUString
const & aColorSetName
)
17 : maColorSetName(aColorSetName
)
21 ColorSets::ColorSets()
24 ColorSets::~ColorSets()
27 void ColorSets::init()
30 ColorSet
aColorSet("Breeze");
31 aColorSet
.add(0, 0x232629);
32 aColorSet
.add(1, 0xFCFCFC);
33 aColorSet
.add(2, 0x31363B);
34 aColorSet
.add(3, 0xEFF0F1);
35 aColorSet
.add(4, 0xDA4453);
36 aColorSet
.add(5, 0xF47750);
37 aColorSet
.add(6, 0xFDBC4B);
38 aColorSet
.add(7, 0xC9CE3B);
39 aColorSet
.add(8, 0x1CDC9A);
40 aColorSet
.add(9, 0x2ECC71);
41 aColorSet
.add(10, 0x1D99F3);
42 aColorSet
.add(11, 0x3DAEE9);
43 maColorSets
.push_back(aColorSet
);
46 ColorSet
aColorSet("Tango");
47 aColorSet
.add(0, 0x000000);
48 aColorSet
.add(1, 0xFFFFFF);
49 aColorSet
.add(2, 0x2E3436);
50 aColorSet
.add(3, 0xBABDB6);
51 aColorSet
.add(4, 0x3465A4);
52 aColorSet
.add(5, 0x73D216);
53 aColorSet
.add(6, 0xF57900);
54 aColorSet
.add(7, 0x888A85);
55 aColorSet
.add(8, 0xEDD400);
56 aColorSet
.add(9, 0xEF2929);
57 aColorSet
.add(10, 0x75507B);
58 aColorSet
.add(11, 0x555753);
59 maColorSets
.push_back(aColorSet
);
62 ColorSet
aColorSet("Material Blue");
63 aColorSet
.add(0, 0x212121);
64 aColorSet
.add(1, 0xFFFFFF);
65 aColorSet
.add(2, 0x37474F);
66 aColorSet
.add(3, 0xECEFF1);
67 aColorSet
.add(4, 0x7986CB);
68 aColorSet
.add(5, 0x303F9F);
69 aColorSet
.add(6, 0x64B5F6);
70 aColorSet
.add(7, 0x1976D2);
71 aColorSet
.add(8, 0x4FC3F7);
72 aColorSet
.add(9, 0x0277BD);
73 aColorSet
.add(10, 0x4DD0E1);
74 aColorSet
.add(11, 0x0097A7);
75 maColorSets
.push_back(aColorSet
);
78 ColorSet
aColorSet("Material Red");
79 aColorSet
.add(0, 0x212121);
80 aColorSet
.add(1, 0xFFFFFF);
81 aColorSet
.add(2, 0x424242);
82 aColorSet
.add(3, 0xF5F5F5);
83 aColorSet
.add(4, 0xFF9800);
84 aColorSet
.add(5, 0xFF6D00);
85 aColorSet
.add(6, 0xFF5722);
86 aColorSet
.add(7, 0xDD2C00);
87 aColorSet
.add(8, 0xF44336);
88 aColorSet
.add(9, 0xD50000);
89 aColorSet
.add(10, 0xE91E63);
90 aColorSet
.add(11, 0xC51162);
91 maColorSets
.push_back(aColorSet
);
94 ColorSet
aColorSet("Material Green");
95 aColorSet
.add(0, 0x212121);
96 aColorSet
.add(1, 0xFFFFFF);
97 aColorSet
.add(2, 0x424242);
98 aColorSet
.add(3, 0xF5F5F5);
99 aColorSet
.add(4, 0x009688);
100 aColorSet
.add(5, 0x00bfa5);
101 aColorSet
.add(6, 0x4caf50);
102 aColorSet
.add(7, 0x00c853);
103 aColorSet
.add(8, 0x8bc34a);
104 aColorSet
.add(9, 0x64dd17);
105 aColorSet
.add(10, 0xcddc39);
106 aColorSet
.add(11, 0xaeea00);
107 maColorSets
.push_back(aColorSet
);
111 const ColorSet
& ColorSets::getColorSet(const OUString
& rName
)
113 for (const ColorSet
& rColorSet
: maColorSets
)
115 if (rColorSet
.getName() == rName
)
118 return maColorSets
[0];
121 } // end of namespace svx
123 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */