| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/action_link.html"> | 1 <link rel="import" href="chrome://resources/html/action_link.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
| 3 <link rel="import" href="../controls/settings_toggle_button.html"> | 4 <link rel="import" href="../controls/settings_toggle_button.html"> |
| 4 <link rel="import" href="../settings_shared_css.html"> | 5 <link rel="import" href="../settings_shared_css.html"> |
| 5 | 6 |
| 6 <dom-module id="settings-stylus"> | 7 <dom-module id="settings-stylus"> |
| 7 <template> | 8 <template> |
| 8 <style include="settings-shared"></style> | 9 <style include="settings-shared md-select"> |
| 10 .settings-box > .secondary { |
| 11 align-items: center; |
| 12 display: flex; |
| 13 /* 'secondary' class applies a top margin. This breaks centering. */ |
| 14 margin-top: 0; |
| 15 } |
| 9 | 16 |
| 10 <div class="settings-box"> | 17 settings-toggle-button { |
| 18 width: 100%; |
| 19 } |
| 20 |
| 21 paper-spinner { |
| 22 margin-left: 12px; |
| 23 @apply(--cr-icon-height-width); |
| 24 } |
| 25 </style> |
| 26 |
| 27 <div class="settings-box continuation"> |
| 11 <settings-toggle-button class="start" | 28 <settings-toggle-button class="start" |
| 12 pref="{{prefs.settings.enable_stylus_tools}}" | 29 pref="{{prefs.settings.enable_stylus_tools}}" |
| 13 label="$i18n{stylusEnableStylusTools}"> | 30 label="$i18n{stylusEnableStylusTools}"> |
| 14 </settings-toggle-button> | 31 </settings-toggle-button> |
| 15 </div> | 32 </div> |
| 16 | 33 |
| 17 <div class="settings-box continuation"> | 34 <div class="settings-box"> |
| 18 <settings-toggle-button class="start" | 35 <settings-toggle-button class="start" |
| 19 pref="{{prefs.settings.launch_palette_on_eject_event}}" | 36 pref="{{prefs.settings.launch_palette_on_eject_event}}" |
| 20 label="$i18n{stylusAutoOpenStylusTools}" | 37 label="$i18n{stylusAutoOpenStylusTools}" |
| 21 disabled="[[!prefs.settings.enable_stylus_tools.value]]"> | 38 disabled="[[!prefs.settings.enable_stylus_tools.value]]"> |
| 22 </settings-toggle-button> | 39 </settings-toggle-button> |
| 23 </div> | 40 </div> |
| 24 | 41 |
| 42 <div class="settings-box"> |
| 43 <div class="start">$i18n{stylusNoteTakingApp}</div> |
| 44 |
| 45 <div id="no-apps" class="secondary" |
| 46 hidden$="[[!showNoApps_(appChoices_, waitingForAndroid_)]]"> |
| 47 $i18n{stylusNoteTakingAppNoneAvailable} |
| 48 </div> |
| 49 |
| 50 <div id="waiting" class="secondary" hidden$="[[!waitingForAndroid_]]"> |
| 51 $i18n{stylusNoteTakingAppWaitingForAndroid} |
| 52 <paper-spinner active></paper-spinner> |
| 53 </div> |
| 54 |
| 55 <div id="select-app" class="md-select-wrapper" |
| 56 hidden$="[[!showApps_(appChoices_, waitingForAndroid_)]]"> |
| 57 <select id="menu" class="md-select" |
| 58 disabled="[[!prefs.settings.enable_stylus_tools.value]]" |
| 59 on-change="onSelectedAppChanged_"> |
| 60 <template is="dom-repeat" items="[[appChoices_]]"> |
| 61 <option value="[[item.value]]" selected$="[[item.preferred]]"> |
| 62 [[item.name]] |
| 63 </option> |
| 64 </template> |
| 65 </select> |
| 66 <span class="md-select-underline"></span> |
| 67 </div> |
| 68 </div> |
| 69 |
| 25 <!-- TODO(scottchen): Make a proper a[href].settings-box with | 70 <!-- TODO(scottchen): Make a proper a[href].settings-box with |
| 26 icon-external (see: https://crbug.com/684005)--> | 71 icon-external (see: https://crbug.com/684005)--> |
| 27 <div class="settings-box"> | 72 <div class="settings-box two-line" on-tap="onFindAppsTap_" actionable> |
| 28 <!-- TODO(jdufault): This should launch an intent (using the | 73 <div class="start"> |
| 29 enable-intent-picker flag) that opens up the play store to a curated | 74 $i18n{stylusFindMoreAppsPrimary} |
| 30 list of apps. --> | 75 <div class="secondary"> |
| 31 <a target="_blank" | 76 $i18n{stylusFindMoreAppsSecondary} |
| 32 href="https://play.google.com/store/apps/collection/promotion_30023cb_s
tylus_apps"> | 77 </div> |
| 33 $i18n{stylusFindMoreApps} | 78 </div> |
| 34 </a> | 79 <button class="icon-external" is="paper-icon-button-light"></button> |
| 35 </div> | 80 </div> |
| 36 | 81 |
| 37 </template> | 82 </template> |
| 38 <script src="stylus.js"></script> | 83 <script src="stylus.js"></script> |
| 39 </dom-module> | 84 </dom-module> |
| OLD | NEW |