Committed by
Gerrit Code Review
GUI - Added theme accessor to view token.
Change-Id: I0ee8b7c7c1b70762fc8fde4e88d22d37210bc636
Showing
2 changed files
with
7 additions
and
3 deletions
| ... | @@ -587,7 +587,8 @@ | ... | @@ -587,7 +587,8 @@ |
| 587 | setRadio: this.setRadio, | 587 | setRadio: this.setRadio, |
| 588 | setKeys: this.setKeys, | 588 | setKeys: this.setKeys, |
| 589 | dataLoadError: this.dataLoadError, | 589 | dataLoadError: this.dataLoadError, |
| 590 | - alert: this.alert | 590 | + alert: this.alert, |
| 591 | + theme: this.theme | ||
| 591 | } | 592 | } |
| 592 | }, | 593 | }, |
| 593 | 594 | ||
| ... | @@ -679,6 +680,10 @@ | ... | @@ -679,6 +680,10 @@ |
| 679 | setKeyBindings(keyArg); | 680 | setKeyBindings(keyArg); |
| 680 | }, | 681 | }, |
| 681 | 682 | ||
| 683 | + theme: function () { | ||
| 684 | + return current.theme; | ||
| 685 | + }, | ||
| 686 | + | ||
| 682 | uid: function (id) { | 687 | uid: function (id) { |
| 683 | return makeUid(this, id); | 688 | return makeUid(this, id); |
| 684 | }, | 689 | }, | ... | ... |
| ... | @@ -221,8 +221,7 @@ | ... | @@ -221,8 +221,7 @@ |
| 221 | // Key Callbacks | 221 | // Key Callbacks |
| 222 | 222 | ||
| 223 | function testMe(view) { | 223 | function testMe(view) { |
| 224 | - //view.alert('test'); | 224 | + view.alert('Theme is ' + view.theme()); |
| 225 | - noWebSock(true); | ||
| 226 | } | 225 | } |
| 227 | 226 | ||
| 228 | function abortIfLive() { | 227 | function abortIfLive() { | ... | ... |
-
Please register or login to post a comment