File: app.html

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (147 lines) | stat: -rw-r--r-- 3,727 bytes parent folder | download | duplicates (3)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<style>
  #main {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: fit-content;
    padding: 70px 40px 36px 40px;
    width: 800px;
  }

  #icon {
    height: 32px;
    margin-bottom: 40px;
    width: 32px;
  }

  #img-gaming-illustration {
    display: block;
    width: 100%;
    margin-top: 65px;
  }

  #title {
    color: var(--cr-primary-text-color);
    font: var(--cros-display-4-font);
    margin-bottom: 16px;
  }

  #message-container {
    color: var(--cr-secondary-text-color);
    flex-grow: 1;
    font: var(--cros-body-1-font);
    margin-bottom: 16px;
  }

  #progress-container {
    color: var(--cr-secondary-text-color);
    flex-grow: 1;
    font: var(--cros-display-7-font);
    margin-bottom: 16px;
  }

  paper-progress {
    margin-top: 31px;
    width: 100%;
    --paper-progress-active-color: var(--cros-color-prominent);
    --paper-progress-container-color: var(--cros-highlight-color)
  }

  #button-container {
    display: flex;
    justify-content: flex-end;
    font: var(--cros-button-1-font);
    margin-top: 80px;
  }

  .two-column-layout {
    display: flex;
  }

  .two-column-layout .left-column {
    flex: 45%;
    padding-right: 80px;
  }

  .two-column-layout .right-column {
    flex: 55%;
  }

  .action-button {
    border-radius: 24px;
  }

  .cancel-button {
    border-radius: 24px;
  }
  .beta-badge {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 3px;
    width: fit-content;
  }
  .chip {
    font-family: Google Sans;
    font: var(--cros-button-1-font);
    background-color: var(--cros-highlight-color);
    color: var(--cros-color-selection);
    border-radius: 10px;
    width: fit-content;
    padding: 2px 6px;
  }
</style>

<div id="main">
  <div id="status-container" class="two-column-layout" role="status">
    <div class="left-column">
      <img id="icon" src="images/icon.svg">
      <div id="title">
        [[getTitle(state)]]
        <div class="beta-badge" hidden="[[eq(state, 'completed')]]">
          <div hidden="[[eq(state, 'completed')]]" class="chip">
            $i18n{beta}
          </div>
        </div>
      </div>
      <div id="message-container">
        <div>[[getMessage(state)]]</div>
      </div>
      <div id="progress-container" hidden="[[!eq(state, 'installing')]]">
        <div id= "progress-message">
          [[getProgressMessage(installerProgress)]] | [[getProgressLabel(
              progressLabel)]]
        </div>
        <paper-progress class="progress-bar" value="[[installerProgress]]">
        </paper-progress>
      </div>
    </div>
    <div class="right-column" >
      <picture hidden="[[eq(state, 'completed')]]">
        <source srcset="images/start_dark.svg"
            media="(prefers-color-scheme: dark)">
        <img src="images/start.svg" id="img-gaming-illustration">
      </picture>
      <picture hidden="[[!eq(state, 'completed')]]">
        <source srcset="images/success_dark.svg"
            media="(prefers-color-scheme: dark)">
        <img src="images/success.svg" id="img-gaming-illustration">
      </picture>
    </div>
  </div>
  <div id="button-container">
    <cr-button id="cancel" class="cancel-button"
        on-click="onCancelButtonClicked">
      [[getCancelOrCloseLabel(state)]]
    </cr-button>
    <cr-button id="installLaunch" class="action-button"
        on-click="onInstallOrLaunchButtonClicked"
        aria-describedby="title" aria-details="prompt-message"
        autofocus="true"
        hidden="[[!shouldShowInstallOrLaunchButton(state)]]">
      [[getInstallOrLaunchLabel(state)]]
    </cr-button>
  </div>
</div>

<borealis-installer-error-dialog id="errorDialog">
</borealis-installer-error-dialog>