2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 14:08:41 +00:00

Moved light part of palette gradients to top in userpic emoji builder.

This commit is contained in:
23rd
2023-02-07 05:03:18 +03:00
committed by John Preston
parent e486cf1afa
commit d7aa18cb0a

View File

@@ -97,7 +97,7 @@ void AlignChildren(not_null<Ui::RpWidget*> widget, int fullWidth) {
} }
[[nodiscard]] std::vector<std::vector<QColor>> PaletteGradients() { [[nodiscard]] std::vector<std::vector<QColor>> PaletteGradients() {
return std::vector<std::vector<QColor>>{ auto v = std::vector<std::vector<QColor>>{
{ {
QColor(32, 226, 205), QColor(32, 226, 205),
QColor(14, 225, 241), QColor(14, 225, 241),
@@ -141,6 +141,12 @@ void AlignChildren(not_null<Ui::RpWidget*> widget, int fullWidth) {
QColor(176, 99, 255), QColor(176, 99, 255),
}, },
}; };
for (auto &g : v) {
// Rotate 180 degrees.
std::swap(g[0], g[2]);
std::swap(g[1], g[3]);
}
return v;
} }
void ShowGradientEditor( void ShowGradientEditor(