aa
This commit is contained in:
1 parent
661f99c595
commit
badede4b8f
222 files changed
+14221
-4877
No files matched your search
@@ -0,0 +1,35 @@
|
||||
import Toybox.Application;
|
||||
import Toybox.Lang;
|
||||
import Toybox.WatchUi;
|
||||
|
||||
class hockeyTimerApp extends Application.AppBase {
|
||||
|
||||
function initialize() {
|
||||
AppBase.initialize();
|
||||
}
|
||||
|
||||
function onStart(state as Dictionary?) as Void {
|
||||
reloadSettings();
|
||||
}
|
||||
|
||||
function onStop(state as Dictionary?) as Void {
|
||||
}
|
||||
|
||||
function getInitialView() as [Views] or [Views, InputDelegates] {
|
||||
return [new mainView(), new mainDelegate()];
|
||||
}
|
||||
|
||||
function onSettingsChanged() as Void {
|
||||
reloadSettings();
|
||||
}
|
||||
}
|
||||
public function reloadSettings() as Void{
|
||||
var s = Application.Properties.getValue("color_theme") as Number;
|
||||
|
||||
setColourTheme(s);
|
||||
WatchUi.requestUpdate();
|
||||
|
||||
}
|
||||
function getApp() as hockeyTimerApp {
|
||||
return Application.getApp() as hockeyTimerApp;
|
||||
}
|
||||
Reference in new issue
Block a user