Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: change text selection color

thecodrr9846214ca9f4
diff --git a/apps/web/src/components/editor/editor.css b/apps/web/src/components/editor/editor.css
index 532186512..6233b5fda 100644
--- a/apps/web/src/components/editor/editor.css
+++ b/apps/web/src/components/editor/editor.css
@@ -138,15 +138,9 @@
height: 15px !important;
}
-::-moz-selection {
- /* Code for Firefox */
- color: var(--fontSecondary);
- background: var(--primary);
-}
-
+::-moz-selection,
::selection {
- color: var(--fontSecondary);
- background: var(--primary);
+ background: var(--textSelection);
}
.mce-content-body code[data-mce-selected="inline-boundary"] {
diff --git a/apps/web/src/theme/colorscheme/static.js b/apps/web/src/theme/colorscheme/static.js
index e6e660167..0fe2d03dc 100644
--- a/apps/web/src/theme/colorscheme/static.js
+++ b/apps/web/src/theme/colorscheme/static.js
@@ -4,6 +4,7 @@ class StaticColorSchemeFactory {
constructor(accent) {
return {
shade: hexToRGB(accent, 0.1),
+ textSelection: hexToRGB(accent, 0.2),
dimPrimary: hexToRGB(accent, 0.7),
transparent: "transparent",
static: "white",