Skip to content

Commit dd4ece1

Browse files
committed
add simple theme
1 parent f2516af commit dd4ece1

File tree

5 files changed

+95
-1
lines changed

5 files changed

+95
-1
lines changed

_locales/en/messages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@
305305
"message": "Dark",
306306
"description": "Dark theme"
307307
},
308+
"theme_simple": {
309+
"message": "Simple",
310+
"description": "Simple theme"
311+
},
308312
"theme_high_contrast": {
309313
"message": "High Contrast",
310314
"description": "High Contrast theme"

sass/_ui.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,25 @@ $themes: (
6161
grey-search: rgba(255, 255, 255, 0.35),
6262
blue-menu: #2a2d2e,
6363
),
64+
simple: (
65+
black-1: black,
66+
black-transparent: rgba(0, 0, 0, 0.5),
67+
white-1: white,
68+
white-transparent: rgba(255, 255, 255, 0.5),
69+
grey-1: grey,
70+
grey-2: #ccc,
71+
grey-3: #eee,
72+
grey-background: #fff,
73+
blue-1: #08c,
74+
yellow-1: #fff1ba,
75+
yellow-2: #fff4cc,
76+
red-1: #dd4b39,
77+
red-2: #eea59c,
78+
black-search: #2a2a2e,
79+
white-search: #f9f9fa,
80+
grey-search: #b1b1b3,
81+
blue-menu: #f4fcff,
82+
),
6483
);
6584

6685
$theme-map: null;

sass/popup.scss

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,74 @@ svg {
10781078
}
10791079
}
10801080

1081+
// Simple overrides
1082+
.theme-simple {
1083+
.header {
1084+
border-bottom: white 1px solid !important;
1085+
1086+
&::after {
1087+
content: "";
1088+
display: block;
1089+
margin: 0 20px -1px 20px;
1090+
border-bottom: #eee 1px solid;
1091+
}
1092+
}
1093+
1094+
#search {
1095+
border-color: white !important;
1096+
}
1097+
1098+
.entry {
1099+
border-color: white !important;
1100+
}
1101+
1102+
&:not(.edit) {
1103+
.entry:hover {
1104+
background: #f8f8f8;
1105+
}
1106+
}
1107+
1108+
.control-group select {
1109+
border-color: white !important;
1110+
}
1111+
1112+
.menuList {
1113+
border-color: white !important;
1114+
1115+
p {
1116+
border-color: white !important;
1117+
}
1118+
}
1119+
1120+
::-webkit-scrollbar {
1121+
background-color: white !important;
1122+
}
1123+
1124+
::-webkit-scrollbar-thumb {
1125+
border: 2px solid white !important;
1126+
}
1127+
1128+
.button {
1129+
background: #f2f2f2 !important;
1130+
border: #f2f2f2 1px solid !important;
1131+
color: black !important;
1132+
1133+
&:hover {
1134+
background: #f8f8f8 !important;
1135+
border: #f8f8f8 1px solid !important;
1136+
}
1137+
}
1138+
1139+
#info {
1140+
box-shadow: none !important;
1141+
}
1142+
1143+
.message-box {
1144+
border: #ccc 1px solid;
1145+
box-shadow: none !important;
1146+
}
1147+
}
1148+
10811149
// Accessibility overrides
10821150
.theme-accessibility {
10831151
select {

src/components/Popup.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
<div
33
v-cloak
44
v-bind:class="{
5-
'theme-normal': theme !== 'accessibility' && theme !== 'dark',
5+
'theme-normal':
6+
theme !== 'accessibility' && theme !== 'dark' && theme !== 'simple',
67
'theme-accessibility': theme === 'accessibility',
78
'theme-dark': theme === 'dark',
9+
'theme-simple': theme === 'simple',
810
hideoutline,
911
}"
1012
v-on:mousedown="hideoutline = true"

src/components/Popup/PreferencesPage.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
>
88
<option value="normal">{{ i18n.theme_light }}</option>
99
<option value="dark">{{ i18n.theme_dark }}</option>
10+
<option value="simple">{{ i18n.theme_simple }}</option>
1011
<option value="accessibility">{{ i18n.theme_high_contrast }}</option>
1112
</a-select-input>
1213
<a-select-input

0 commit comments

Comments
 (0)