aboutsummaryrefslogtreecommitdiffstats
path: root/support/hololens/ServoApp/BrowserPage.cpp
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2019-09-11 11:58:04 +0200
committerPaul Rouget <me@paulrouget.com>2019-09-11 11:58:57 +0200
commit19d961626ba5c30b7d063dcd4093bae79e40e016 (patch)
treec1a6ed766cbe89e84575c451fdf1e4d218dfceb0 /support/hololens/ServoApp/BrowserPage.cpp
parent2f0dbc57a6614b586559168f3c3f70b598a7c03e (diff)
downloadservo-19d961626ba5c30b7d063dcd4093bae79e40e016.tar.gz
servo-19d961626ba5c30b7d063dcd4093bae79e40e016.zip
Make the UI look better
Diffstat (limited to 'support/hololens/ServoApp/BrowserPage.cpp')
-rw-r--r--support/hololens/ServoApp/BrowserPage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/support/hololens/ServoApp/BrowserPage.cpp b/support/hololens/ServoApp/BrowserPage.cpp
index 1a9b2073bbd..a4d5fcd2a94 100644
--- a/support/hololens/ServoApp/BrowserPage.cpp
+++ b/support/hololens/ServoApp/BrowserPage.cpp
@@ -28,12 +28,18 @@ void BrowserPage::BindServoEvents() {
forwardButton().IsEnabled(forward);
});
servoControl().OnLoadStarted([=] {
+ throbber().IsActive(true);
reloadButton().IsEnabled(false);
+ reloadButton().Visibility(Visibility::Collapsed);
stopButton().IsEnabled(true);
+ stopButton().Visibility(Visibility::Visible);
});
servoControl().OnLoadEnded([=] {
+ throbber().IsActive(false);
reloadButton().IsEnabled(true);
+ reloadButton().Visibility(Visibility::Visible);
stopButton().IsEnabled(false);
+ stopButton().Visibility(Visibility::Collapsed);
});
servoControl().OnCaptureGesturesStarted([=] {
servoControl().Focus(FocusState::Programmatic);