Skip to content

Commit 6241001

Browse files
committed
Update badge colours
- Adds checkmark on idle
1 parent 58e9868 commit 6241001

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/electron/rec-window.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,23 +141,23 @@ class RecWindowUI extends LitElement
141141
bottom: 0px;
142142
right: 0px;
143143
margin-right: -4px;
144-
margin-bottom: -4px;
145-
border: 1px solid black;
146-
border-radius: 3px;
144+
margin-bottom: -3px;
145+
border: 2px solid white;
146+
border-radius: 4px;
147147
font-size: 9px;
148148
color: white;
149149
}
150150
151151
.overlay-idle {
152-
background-color: #64e986;
152+
background-color: #4D7C0F;
153153
}
154154
155155
.overlay-waiting {
156-
background-color: #bb9f08;
156+
background-color: #C5A802;
157157
}
158158
159159
.overlay-auto {
160-
background-color: #3298dc;
160+
background-color: #0891B2;
161161
}
162162
163163
`);
@@ -202,7 +202,7 @@ class RecWindowUI extends LitElement
202202
${this.recording ? html`
203203
${this.autorun ? html`<span class="overlay overlay-auto"></span>` :
204204
!this.numPending ? html`
205-
<span class="overlay overlay-idle"></span>` : html`
205+
<span class="overlay overlay-idle"></span>` : html`
206206
<span class="overlay overlay-waiting">${this.numPending}</span>
207207
`}` : ""}
208208
</span>

src/ext/bg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const disabledCSPTabs = new Set();
2727
// ===========================================================================
2828

2929
function main() {
30-
chrome.action.setBadgeBackgroundColor({color: "#64e986"});
30+
chrome.action.setBadgeBackgroundColor({color: "#4D7C0F"});
3131

3232
chrome.contextMenus.create({"id": "toggle-rec", "title": "Start Recording", "contexts": ["browser_action"]});
3333
chrome.contextMenus.create({"id": "view-rec", "title": "View Web Archives", "contexts": ["all"]});

src/ext/browser-recorder.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,27 +186,27 @@ class BrowserRecorder extends Recorder {
186186
if (this.running) {
187187
if (this.behaviorState === BEHAVIOR_RUNNING) {
188188
title = "Archiving: Autopilot Running!";
189-
color = "#3298dc";
190-
text = " ";
189+
color = "#0891B2";
190+
text = "";
191191

192192
} else if (this.numPending === 0) {
193193
title = "Archiving: No URLs pending, can continue";
194-
color = "#64e986";
195-
text = " ";
194+
color = "#4D7C0F";
195+
text = "";
196196

197197
} else {
198198
title = `Archiving: ${this.numPending} URLs pending, please wait`;
199-
color = "#bb9f08";
199+
color = "#C5A802";
200200
text = "" + this.numPending;
201201
}
202202
} else if (this.failureMsg) {
203203
title = "Error: Can't Archive this page";
204204
text = "X";
205-
color = "#F00";
205+
color = "#D30808";
206206
} else {
207207
title = "Not Archiving";
208208
text = "";
209-
color = "#64e986";
209+
color = "#4D7C0F";
210210
}
211211

212212
chrome.action.setTitle({title, tabId});

0 commit comments

Comments
 (0)