1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 * @fileoverview Specifications for NTP design.
10 var THUMBNAIL_FALLBACK = {
11 DOT: 'dot' // Draw single dot.
15 * Specifications for an NTP design (not comprehensive).
17 * fontFamily: Font family to use for title and thumbnail iframes.
18 * fontSize: Font size to use for the iframes, in px.
19 * tileWidth: The width of each suggestion tile, in px.
20 * tileMargin: Spacing between successive tiles, in px.
21 * titleColor: The RRGGBBAA color of title text.
22 * titleColorAgainstDark: The RRGGBBAA color of title text against a dark theme.
23 * titleTextAlign: (Optional) The alignment of title text. If unspecified, the
24 * default value is 'center'.
25 * titleTextFade: (Optional) The number of pixels beyond which title
26 * text begins to fade. This overrides the default ellipsis style.
27 * thumbnailTextColor: The RRGGBBAA color that thumbnail iframe may use to
28 * display text message in place of missing thumbnail.
29 * thumbnailFallback: (Optional) A value in THUMBNAIL_FALLBACK to specify the
30 * thumbnail fallback strategy. If unassigned, then the thumbnail.html
31 * iframe would handle the fallback.
39 * titleColorAgainstDark: string,
40 * titleTextAlign: string|null|undefined,
41 * TODO(huangs): Clean-up certain parameters once previous design is no longer
43 * titleTextFade: number|null|undefined,
44 * thumbnailTextColor: string,
45 * thumbnailFallback: string|null|undefined
49 fontFamily: 'arial, sans-serif',
53 titleColor: '323232ff',
54 titleColorAgainstDark: 'd2d2d2ff',
55 titleTextAlign: 'inherit',
56 titleTextFade: 122 - 36, // 112px wide title with 32 pixel fade at end.
57 thumbnailTextColor: '323232ff', // Unused.
58 thumbnailFallback: THUMBNAIL_FALLBACK.DOT