mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
[apps/graph] Added a color menu in graph and list (#189)
* Revert "[github/workflows] Update Metrics to remove NumWorksBot" This reverts commit110f333122. * Added a color menu in graph and list * Fixed color select display issue and build issue * Changed color_cell to a circle * Revert "Changed color_cell to a circle" This reverts commit28dddb42af. * Color_cell with mask * Fixed build issue * Color selection : Added right handle and color name display in menu * Fixed constexpr static colorMask * Changed font in color_parameter_controller * Fix building without debug * Re-Fix building without debug * Update colors Co-authored-by: Hugo Saint-Vignes <hugo.saint-vignes@numworks.com> Co-authored-by: Joachim LF <joachimlf@pm.me>
This commit is contained in:
@@ -24,38 +24,18 @@ const char * ListParameterController::title() {
|
||||
|
||||
bool ListParameterController::handleEvent(Ion::Events::Event event) {
|
||||
bool hasAdditionalRow = hasInitialRankRow();
|
||||
#if FUNCTION_COLOR_CHOICE
|
||||
if (event == Ion::Events::OK || event == Ion::Events::EXE || (event == Ion::Events::Right && selectedRow() == 1)) {
|
||||
#else
|
||||
if (event == Ion::Events::OK || event == Ion::Events::EXE || (event == Ion::Events::Right && selectedRow() == 0)) {
|
||||
#endif
|
||||
int selectedRowIndex = selectedRow();
|
||||
#if FUNCTION_COLOR_CHOICE
|
||||
if (selectedRowIndex == 0) {
|
||||
return handleEnterOnRow(selectedRowIndex);
|
||||
}
|
||||
if (selectedRowIndex == 1) {
|
||||
#else
|
||||
if (selectedRowIndex == 0) {
|
||||
#endif
|
||||
StackViewController * stack = (StackViewController *)(parentResponder());
|
||||
m_typeParameterController.setRecord(m_record);
|
||||
stack->push(&m_typeParameterController);
|
||||
return true;
|
||||
}
|
||||
#if FUNCTION_COLOR_CHOICE
|
||||
if (selectedRowIndex == 2+hasAdditionalRow) {
|
||||
|
||||
#else
|
||||
if (selectedRowIndex == 1+hasAdditionalRow) {
|
||||
#endif
|
||||
if (selectedRowIndex == 1+hasAdditionalRow || selectedRowIndex == 2+hasAdditionalRow) {
|
||||
return handleEnterOnRow(selectedRowIndex-hasAdditionalRow-1);
|
||||
}
|
||||
#if FUNCTION_COLOR_CHOICE
|
||||
if (selectedRowIndex == 3+hasAdditionalRow) {
|
||||
#else
|
||||
if (selectedRowIndex == 2+hasAdditionalRow) {
|
||||
#endif
|
||||
App::app()->localContext()->resetCache();
|
||||
return handleEnterOnRow(selectedRowIndex-hasAdditionalRow-1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user