Skip to content

Commit

Permalink
fix colorscheme background detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kopa committed Nov 11, 2015
1 parent 857d211 commit 8e117f2
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions source/RunnersField.mc
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,12 @@ var hasBackgroundColorOption = false;

function onLayout(dc) {
setDeviceSettingsDependentVariables();
}

function onShow() {
setDeviceSettingsDependentVariables();
onUpdate(dc);
}

function onUpdate(dc) {
// reset color
setColors();
// reset background
dc.setColor(backgroundColor, backgroundColor);
dc.fillRectangle(0, 0, 218, 218);

Expand All @@ -93,8 +91,6 @@ var hasBackgroundColorOption = false;
}
is24Hour = System.getDeviceSettings().is24Hour;

setColors();

paceStr = Ui.loadResource(Rez.Strings.pace);
avgPaceStr = Ui.loadResource(Rez.Strings.avgpace);
hrStr = Ui.loadResource(Rez.Strings.hr);
Expand Down Expand Up @@ -298,8 +294,8 @@ var hasBackgroundColorOption = false;
}
}

//! A circular queue implementation.
//! @author Konrad Paumann
//! A circular queue implementation.
//! @author Konrad Paumann
class DataQueue {

//! the data array.
Expand Down

0 comments on commit 8e117f2

Please sign in to comment.