Skip to content

Commit c2349dd

Browse files
committed
Change default colors of From highlighting to work with dark mode (#460)
1 parent 0326514 commit c2349dd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
1111
- Show all DKIM signatures with additional details in the DKIM button pop-up (#160, #299).
1212
- Improved table views for sign rules and DKIM keys (#248, #305).
1313
E.g. it is now possible to delete multiple entries at once.
14+
- Changed the default color scheme for highlighting of the From header to better work with dark mode (#460).
1415

1516
### Fixes
1617

modules/preferences.mjs.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Provides access to the add-ons preferences.
33
*
4-
* Copyright (c) 2020-2023 Philippe Lieser
4+
* Copyright (c) 2020-2023;2025 Philippe Lieser
55
*
66
* This software is licensed under the terms of the MIT License.
77
*
@@ -420,19 +420,19 @@ export class BasePreferences {
420420
return this.#tryGetStringValue("color.success.text", "windowtext");
421421
}
422422
get "color.success.background"() {
423-
return this.#tryGetStringValue("color.success.background", "#00FF00");
423+
return this.#tryGetStringValue("color.success.background", "rgba(0,255,0,0.5)");
424424
}
425425
get "color.warning.text"() {
426426
return this.#tryGetStringValue("color.warning.text", "windowtext");
427427
}
428428
get "color.warning.background"() {
429-
return this.#tryGetStringValue("color.warning.background", "orange");
429+
return this.#tryGetStringValue("color.warning.background", "rgba(255,150,0,0.5)");
430430
}
431431
get "color.permfail.text"() {
432432
return this.#tryGetStringValue("color.permfail.text", "windowtext");
433433
}
434434
get "color.permfail.background"() {
435-
return this.#tryGetStringValue("color.permfail.background", "red");
435+
return this.#tryGetStringValue("color.permfail.background", "rgba(255,0,0,0.5)");
436436
}
437437
get "color.tempfail.text"() {
438438
return this.#tryGetStringValue("color.tempfail.text", "unset");

0 commit comments

Comments
 (0)