mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
[apps/escher] Share color selection for data (Red, blue, Green, Yellow)
This commit is contained in:
@@ -70,4 +70,20 @@ void FunctionStore::tidy() {
|
||||
}
|
||||
}
|
||||
|
||||
const KDColor FunctionStore::firstAvailableColor() {
|
||||
for (int k = 0; k < maxNumberOfFunctions(); k++) {
|
||||
int j = 0;
|
||||
while (j < m_numberOfFunctions) {
|
||||
if (functionAtIndex(j)->color() == Palette::DataColor[k]) {
|
||||
break;
|
||||
}
|
||||
j++;
|
||||
}
|
||||
if (j == m_numberOfFunctions) {
|
||||
return Palette::DataColor[k];
|
||||
}
|
||||
}
|
||||
return Palette::DataColor[0];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user