Skip to content

Commit 8e695b0

Browse files
committed
update theme for safari
1 parent 4d5fe4a commit 8e695b0

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

sass/_ui.scss

+19
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,25 @@ $themes: (
9999
grey-search: #b1b1b3,
100100
blue-menu: #f4fcff,
101101
),
102+
flat: (
103+
black-1: black,
104+
black-transparent: rgba(0, 0, 0, 0.5),
105+
white-1: white,
106+
white-transparent: rgba(255, 255, 255, 0.5),
107+
grey-1: grey,
108+
grey-2: #ccc,
109+
grey-3: #eee,
110+
grey-background: #eee,
111+
blue-1: #08c,
112+
yellow-1: #fff1ba,
113+
yellow-2: #fff4cc,
114+
red-1: #dd4b39,
115+
red-2: #eea59c,
116+
black-search: #2a2a2e,
117+
white-search: #f9f9fa,
118+
grey-search: #b1b1b3,
119+
blue-menu: #f4fcff,
120+
),
102121
);
103122

104123
$theme-map: null;

sass/popup.scss

+4
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,10 @@ svg {
13371337
p {
13381338
color: #727272;
13391339

1340+
&:not(:last-child) {
1341+
border-bottom: #f5f4f7 1px solid;
1342+
}
1343+
13401344
span svg {
13411345
fill: #727272;
13421346
}

src/store/Menu.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { isSafari } from "../browser";
12
import { ManagedStorage } from "../models/storage";
23

34
export class Menu implements Module {
@@ -11,7 +12,11 @@ export class Menu implements Module {
1112
enableContextMenu: localStorage.enableContextMenu === "true",
1213
theme:
1314
localStorage.theme ||
14-
(localStorage.highContrast === "true" ? "accessibility" : "normal"),
15+
(localStorage.highContrast === "true"
16+
? "accessibility"
17+
: isSafari
18+
? "flat"
19+
: "normal"),
1520
autolock: Number(localStorage.autolock) || 0,
1621
backupDisabled: await ManagedStorage.get("disableBackup", false),
1722
exportDisabled: await ManagedStorage.get("disableExport", false),

0 commit comments

Comments
 (0)