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

Unified Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.html

Issue 2643653003: MD Settings: Bluetooth: Use labels instead of icons to show connection status. (Closed)
Patch Set: Fix closure compiler error. Created 3 years, 11 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
Index: chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.html
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.html b/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.html
index 8f0adbed9887551b2d88c05ddcc101c72239aa56..07766b119eabe109d2900d9f123800ccb412034d 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.html
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.html
@@ -9,32 +9,27 @@
<dom-module id="bluetooth-device-list-item">
<style include="settings-shared">
- #check {
- -webkit-padding-start: 10px;
- }
-
- #deviceIcon {
- -webkit-padding-end: 10px;
- }
-
- span.name {
- padding: 10px 0;
+ .name[connected] {
+ font-weight: 500;
}
- span.name[connected] {
- font-weight: 500;
+ .state[connected] {
+ color: var(--google-green-500);
}
</style>
<template>
- <div class="flex layout horizontal center" dropdown$="[[dropdownOpened]]">
+ <div class="list-item">
<iron-icon id="deviceIcon" icon="[[getDeviceIcon_(device)]]">
</iron-icon>
- <span class="name" connected$="[[device.connected]]">
- [[getDeviceName_(device)]]
- </span>
- <iron-icon id="check" icon="cr:check" hidden$="[[!device.connected]]">
- </iron-icon>
- <span class="flex"></span>
+ <div class="middle">
+ <div class="name" connected$="[[device.connected]]">
+ [[getDeviceName_(device)]]
+ </div>
+ <div class="state secondary" connected$="[[device.connected]]"
+ hidden$="[[!hasConnectionStatusText_(device)]]">
+ [[getConnectionStatusText_(device)]]
+ </div>
+ </div>
<span hidden$="[[!device.connecting]]">$i18n{bluetoothConnecting}</span>
<div hidden$="[[!device.paired]]">
<paper-icon-button icon="cr:more-vert" on-tap="onMenuButtonTap_"

Powered by Google App Engine
This is Rietveld 408576698