summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/welcome/set_as_default/nux_set_as_default.html
blob: 53688f8c5495763731fd761efdf56f905a43d799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<link rel="import" href="chrome://resources/html/polymer.html">

<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html">
<link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="../navigation_behavior.html">
<link rel="import" href="../shared/animations_css.html">
<link rel="import" href="../shared/i18n_setup.html">
<link rel="import" href="../shared/step_indicator.html">
<link rel="import" href="nux_set_as_default_proxy.html">
<if expr="is_win">
<link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
</if>

<dom-module id="nux-set-as-default">
  <template>
    <style include="animations">
      .container {
        text-align: center;
      }

      .logo {
        content: url(../images/module_icons/set_default_light.svg);
        display: inline-block;
        height: 38px;
        margin-bottom: 16px;
        width: 42px;
      }

      @media (prefers-color-scheme: dark) {
        .logo {
          content: url(../images/module_icons/set_default_dark.svg);
        }
      }

      .illustration {
        content: url(../images/set_default_light.svg);
        margin: auto;
        width: 454px;
      }

      @media (prefers-color-scheme: dark) {
        .illustration {
          content: url(../images/set_default_dark.svg);
        }
      }

      h1 {
        color: var(--cr-primary-text-color);
        font-size: 1.5rem;
        font-weight: 500;
        line-height: 2.5rem;
        margin: 0;
        outline: none;
      }

      h2 {
        color: var(--cr-secondary-text-color);
        font-size: 1.25rem;
        font-weight: unset;
        line-height: 1.875rem;
        margin: auto;
        margin-bottom: 48px;
        margin-top: 16px;
        max-width: 400px;
      }

      .button-bar {
        display: flex;
        justify-content: space-between;
        margin-top: 64px;
      }

<if expr="is_win">
      iron-icon[icon='cr:open-in-new'] {
        height: 20px;
        margin-inline-start: 6px;
        margin-inline-end: -10px;
        width: 20px;
      }
</if>
    </style>
    <div class="container">
      <div class="logo"></div>
      <h1 tabindex="-1">$i18n{setDefaultHeader}</h1>
      <h2>$i18n{setDefaultSubHeader}</h2>
      <div class="illustration slide-in" aria-hidden="true"></div>
      <div class="button-bar">
        <cr-button id="decline-button" on-click="onDeclineClick_">
          $i18n{skip}
        </cr-button>
        <step-indicator model="[[indicatorModel]]"></step-indicator>
        <cr-button class="action-button" on-click="onSetDefaultClick_">
          $i18n{setDefaultConfirm}
<if expr="is_win">
          <iron-icon icon="cr:open-in-new" hidden="[[!isWin10]]"></iron-icon>
</if>
        </cr-button>
      </div>
    </div>
  </template>
  <script src="nux_set_as_default.js"></script>
</dom-module>