Skip to content

Commit

Permalink
Update UI to support themes
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed May 29, 2024
1 parent 9345e28 commit f09ad98
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Source/NIDAQEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ void EditorBackground::paint(Graphics& g)
int colIndex = i / aiChannelsPerColumn;
int rowIndex = i % aiChannelsPerColumn;

g.setColour(Colours::lightgrey);
g.setColour(findColour(ThemeColors::outline));
g.drawRoundedRectangle(
aiChanOffsetX + paddingX * colIndex * aiChanWidth,
aiChanOffsetY + paddingY * rowIndex * aiChanHeight,
aiChanWidth, aiChanHeight, 4, 3);
aiChanWidth, aiChanHeight, 4, 1);


g.setColour(Colours::darkgrey);
g.setColour(findColour(ThemeColors::outline));

g.drawRoundedRectangle(
aiChanOffsetX + paddingX * colIndex * aiChanWidth,
Expand Down Expand Up @@ -99,13 +99,13 @@ void EditorBackground::paint(Graphics& g)
int colIndex = i / diChannelsPerColumn;
int rowIndex = i % diChannelsPerColumn;

g.setColour(Colours::lightgrey);
g.setColour(findColour(ThemeColors::outline));
g.drawRoundedRectangle(
diChanOffsetX + paddingX * colIndex * diChanWidth,
diChanOffsetY + paddingY * rowIndex * diChanHeight,
diChanWidth, diChanHeight, 4, 3);
diChanWidth, diChanHeight, 4, 1);

g.setColour(Colours::darkgrey);
g.setColour(findColour(ThemeColors::outline));
g.drawRoundedRectangle(
diChanOffsetX + paddingX * colIndex * diChanWidth,
diChanOffsetY + paddingY * rowIndex * diChanHeight,
Expand All @@ -124,7 +124,7 @@ void EditorBackground::paint(Graphics& g)

//FIFO monitor label
float settingsOffsetX = diChanOffsetX + ((nDI % maxChannelsPerColumn == 0 ? 0 : 1) + nDI / diChannelsPerColumn) * paddingX * diChanWidth + 5;
g.setColour(Colours::darkgrey);
g.setColour(findColour(ThemeColors::defaultText));
g.setFont(10);

g.drawText(String("DEVICE"), settingsOffsetX, 13, 100, 10, Justification::centredLeft);
Expand Down

0 comments on commit f09ad98

Please sign in to comment.