Commit 93d74422 authored by Michael Checo's avatar Michael Checo Committed by Commit Bot

Scanning: App container styles

Screenshot: http://shortn/_mzhvW5izxD

Bug: 1059779
Test: browser_tests --gtest_filter=ScanningUIBrowserTest.All
Change-Id: I21ca4135a98534b83ddbf7f419ad6b28f03686ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500950Reviewed-by: default avatarJimmy Gong <jimmyxgong@chromium.org>
Reviewed-by: default avatarZentaro Kavanagh <zentaro@chromium.org>
Commit-Queue: Michael Checo <michaelcheco@google.com>
Cr-Commit-Position: refs/heads/master@{#821525}
parent 491d0e51
<h1 id="appTitle">[[i18n('appTitle')]]</h1> <style include="cr-shared-style scanning-shared">
<scanner-select id="scannerSelect" scanners="[[scanners_]]" loaded="[[loaded_]]" #scanningContainer {
settings-disabled="[[settingsDisabled_]]" box-sizing: border-box;
selected-scanner-id="{{selectedScannerId}}"></scanner-select> display: block;
<source-select id="sourceSelect" sources="[[capabilities_.sources]]" margin: 0 auto;
settings-disabled="[[settingsDisabled_]]" min-height: 480px;
selected-source="{{selectedSource}}"></source-select> min-width: 600px;
<file-type-select id="fileTypeSelect" settings-disabled="[[settingsDisabled_]]" position: relative;
selected-file-type="{{selectedFileType}}"></file-type-select> width: var(--container-width);
<color-mode-select id="colorModeSelect" }
color-modes="[[capabilities_.colorModes]]" </style>
settings-disabled="[[settingsDisabled_]]" <div id="scanningContainer">
selected-color-mode="{{selectedColorMode}}"></color-mode-select> <h1 id="appTitle">[[i18n('appTitle')]]</h1>
<page-size-select id="pageSizeSelect" page-sizes="[[selectedSourcePageSizes_]]" <scanner-select id="scannerSelect" scanners="[[scanners_]]" loaded="[[loaded_]]"
settings-disabled="[[settingsDisabled_]]" settings-disabled="[[settingsDisabled_]]"
selected-page-size="{{selectedPageSize}}"></page-size-select> selected-scanner-id="{{selectedScannerId}}"></scanner-select>
<resolution-select id="resolutionSelect" <source-select id="sourceSelect" sources="[[capabilities_.sources]]"
resolutions="[[capabilities_.resolutions]]" settings-disabled="[[settingsDisabled_]]"
settings-disabled="[[settingsDisabled_]]" selected-source="{{selectedSource}}"></source-select>
selected-resolution="{{selectedResolution}}"></resolution-select> <file-type-select id="fileTypeSelect" settings-disabled="[[settingsDisabled_]]"
<!-- TODO(jschettler): Replace button label with finalized i18n string. --> selected-file-type="{{selectedFileType}}"></file-type-select>
<cr-button id="scanButton" on-click="onScanClick_" <color-mode-select id="colorModeSelect"
disabled$="[[scanButtonDisabled_]]"> color-modes="[[capabilities_.colorModes]]"
Scan settings-disabled="[[settingsDisabled_]]"
</cr-button> selected-color-mode="{{selectedColorMode}}"></color-mode-select>
<p id="statusText">[[statusText_]]</p> <page-size-select id="pageSizeSelect" page-sizes="[[selectedSourcePageSizes_]]"
settings-disabled="[[settingsDisabled_]]"
selected-page-size="{{selectedPageSize}}"></page-size-select>
<resolution-select id="resolutionSelect"
resolutions="[[capabilities_.resolutions]]"
settings-disabled="[[settingsDisabled_]]"
selected-resolution="{{selectedResolution}}"></resolution-select>
<!-- TODO(jschettler): Replace button label with finalized i18n string. -->
<cr-button id="scanButton" on-click="onScanClick_"
disabled$="[[scanButtonDisabled_]]">
Scan
</cr-button>
<p id="statusText">[[statusText_]]</p>
</div>
...@@ -11,6 +11,7 @@ import './file_type_select.js'; ...@@ -11,6 +11,7 @@ import './file_type_select.js';
import './page_size_select.js'; import './page_size_select.js';
import './resolution_select.js'; import './resolution_select.js';
import './scanner_select.js'; import './scanner_select.js';
import './scanning_shared_css.js';
import './source_select.js'; import './source_select.js';
import {I18nBehavior} from 'chrome://resources/js/i18n_behavior.m.js'; import {I18nBehavior} from 'chrome://resources/js/i18n_behavior.m.js';
......
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
<link rel="stylesheet" href="chrome://resources/css/md_colors.css"> <link rel="stylesheet" href="chrome://resources/css/md_colors.css">
<template> <template>
<style include="cr-shared-style"> <style include="cr-shared-style">
:host {
--container-width: 960px;
}
html { html {
background-color: var(--cros-bg-color); background-color: var(--cros-bg-color);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment