Skip to content

Commit

Permalink
Use Google Chrome font in popup
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Jun 26, 2013
1 parent 0734f0a commit 526e1d7
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
2 changes: 0 additions & 2 deletions Chrome/chromepackage/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ function update(oneTime) {
} else {
chrome.browserAction.setBadgeText({text: ''});
}
chrome.browserAction.setTitle({title: 'Stop ADB'});
} else {
chrome.browserAction.setIcon({
path: {
Expand All @@ -33,7 +32,6 @@ function update(oneTime) {
}
});
chrome.browserAction.setBadgeText({text: ''});
chrome.browserAction.setTitle({title: 'Start ADB'});
}
if (!oneTime)
setTimeout(update, 3000);
Expand Down
20 changes: 17 additions & 3 deletions Chrome/chromepackage/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,25 @@
<head>
<style>
body {
font: 13px/1.65em sans-serif;
width: 120px;
color: rgb(48, 57, 66);
cursor: default;
padding: 0;
font-family: 'Lucida Grande', sans-serif;
font-size: 12px;
margin: 4px 0;
padding: 0;
width: 120px;
}

body.platform-linux {
font-family: Ubuntu, Arial, sans-serif;
}

body.platform-mac {
font-family: 'Lucida Grande', sans-serif;
}

body.platform-windows {
font-family: 'Segoe UI', Tahoma, sans-serif;
}

div.item {
Expand Down
9 changes: 9 additions & 0 deletions Chrome/chromepackage/popup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
(function () {
if (navigator.userAgent.match(/Windows NT/))
document.body.classList.add('platform-windows');
else if (navigator.userAgent.match(/Mac OS X/))
document.body.classList.add('platform-mac');
else if (navigator.userAgent.match(/Linux/))
document.body.classList.add('platform-linux');
})();

var devices = document.getElementById('devices');
var start = document.getElementById('start');
var stop = document.getElementById('stop');
Expand Down
Binary file modified out/npADBPlugin-crx.crx
Binary file not shown.

0 comments on commit 526e1d7

Please sign in to comment.