Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5000)

Unified Diff: chrome/browser/resources/settings/on_startup_page/startup_urls_page.html

Issue 1780053002: [MD settings] favicons for OnStartup url settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/settings/on_startup_page/startup_urls_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/on_startup_page/startup_urls_page.html
diff --git a/chrome/browser/resources/settings/on_startup_page/startup_urls_page.html b/chrome/browser/resources/settings/on_startup_page/startup_urls_page.html
index f8741364893c87775493352034a51291581c3880..c759e5a4fedd3e2413f5f96790ce41b6e6dbdbbf 100644
--- a/chrome/browser/resources/settings/on_startup_page/startup_urls_page.html
+++ b/chrome/browser/resources/settings/on_startup_page/startup_urls_page.html
@@ -1,17 +1,26 @@
<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
+<link rel="import" href="chrome://resources/js/util.js">
<link rel="import" href="chrome://md-settings/settings_dialog.html">
<link rel="import" href="chrome://md-settings/settings_shared_css.html">
<dom-module id="settings-startup-urls-page">
<link rel="import" type="css" href="on_startup_shared.css">
<template>
- <style include="settings-shared"></style>
+ <style include="settings-shared">
+ .favicon-image {
+ background-size: contain;
+ background-repeat: no-repeat;
+ height: 16px;
+ width: 16px;
+ }
+ </style>
<div class="list-frame vertical-list">
<template is="dom-repeat" items="[[startupPages_]]">
<div class="list-item">
- <iron-icon class="secondary" icon="image:brightness-1"
- item-icon></iron-icon>
+ <div class="favicon-image"
+ style="background-image: [[getIconSet_(item.url)]]">
+ </div>
<div class="middle">
<div class="text-elide">[[item.title]]</div>
<div class="text-elide secondary">[[item.url]]</div>
« no previous file with comments | « no previous file | chrome/browser/resources/settings/on_startup_page/startup_urls_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698