Skip to content

Commit d434309

Browse files
committed
popup: Add light theme
Closes browserpass#98
1 parent e5b30a3 commit d434309

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

src/options/interface.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ function view(ctl, params) {
5353
nodes.push(createInput.call(this, "gpgPath", "Custom gpg binary", "/path/to/gpg"));
5454

5555
nodes.push(m("h3", "Theme"));
56-
nodes.push(createDropdown.call(this, "theme", [m("option", { value: "dark" }, "Dark")]));
56+
nodes.push(
57+
createDropdown.call(this, "theme", [
58+
m("option", { value: "dark" }, "Dark"),
59+
m("option", { value: "light" }, "Light")
60+
])
61+
);
5762

5863
nodes.push(m("h3", "Custom store locations"));
5964
nodes.push(

src/popup/colors-light.less

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@import "colors.less";
2+
3+
.colors-light {
4+
.colors(
5+
@bg-color: #f1f3f5,
6+
@default-bg-color: #dee2e6,
7+
@hover-bg-color: #ced4da,
8+
@text-color: #343a40,
9+
@error-text-color: #e03131,
10+
@dim-text-color: #868e96,
11+
@badge-color: #bec4ca,
12+
@input-bg-color: #e9ecef,
13+
@active-input-bg-color: #e3e6e9,
14+
@input-text-color: #343a40,
15+
@hint-bg-color: #d6336c,
16+
@hint-color: #ffdeeb
17+
);
18+
}

src/popup/popup.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "colors-dark.less";
2+
@import "colors-light.less";
23

34
@login-height: 53px;
45
@max-logins-height: @login-height * 7;

0 commit comments

Comments
 (0)