From 21f039856f5122269054225391cb8091c04496aa Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 17 Sep 2024 02:06:50 -0700 Subject: [PATCH 1/5] Update highlight_contributed_content.js --- src/features/tweaks/highlight_contributed_content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/tweaks/highlight_contributed_content.js b/src/features/tweaks/highlight_contributed_content.js index 48e4b49cf..e9ead296e 100644 --- a/src/features/tweaks/highlight_contributed_content.js +++ b/src/features/tweaks/highlight_contributed_content.js @@ -2,6 +2,6 @@ import { buildStyle } from '../../utils/interface.js'; export const styleElement = buildStyle(` [data-is-contributed-content="true"] { - display: flow-root; background-color: rgb(var(--follow)); + display: flow-root; background-color: rgb(var(--deprecated-accent), 0.07); } `); From e5910811c082ad38356f6c271824fdbdd18b9fac Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 17 Sep 2024 02:07:00 -0700 Subject: [PATCH 2/5] alternative color demo --- src/features/tweaks/highlight_contributed_content.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/features/tweaks/highlight_contributed_content.js b/src/features/tweaks/highlight_contributed_content.js index e9ead296e..362682ac1 100644 --- a/src/features/tweaks/highlight_contributed_content.js +++ b/src/features/tweaks/highlight_contributed_content.js @@ -4,4 +4,7 @@ export const styleElement = buildStyle(` [data-is-contributed-content="true"] { display: flow-root; background-color: rgb(var(--deprecated-accent), 0.07); } +:has(+ [data-is-contributed-content="true"]) { + display: flow-root; background-color: rgb(var(--blue), 0.07); +}) `); From 919ec513c1ac56afbb7d5e53592043c5f0e6601f Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 17 Sep 2024 02:07:05 -0700 Subject: [PATCH 3/5] Revert "alternative color demo" This reverts commit e5910811c082ad38356f6c271824fdbdd18b9fac. --- src/features/tweaks/highlight_contributed_content.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/features/tweaks/highlight_contributed_content.js b/src/features/tweaks/highlight_contributed_content.js index 362682ac1..e9ead296e 100644 --- a/src/features/tweaks/highlight_contributed_content.js +++ b/src/features/tweaks/highlight_contributed_content.js @@ -4,7 +4,4 @@ export const styleElement = buildStyle(` [data-is-contributed-content="true"] { display: flow-root; background-color: rgb(var(--deprecated-accent), 0.07); } -:has(+ [data-is-contributed-content="true"]) { - display: flow-root; background-color: rgb(var(--blue), 0.07); -}) `); From f7270efa520625d9ad54f2671eb4bf3046d11b2a Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 17 Sep 2024 02:10:45 -0700 Subject: [PATCH 4/5] disable with individual theming --- src/features/tweaks/highlight_contributed_content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/tweaks/highlight_contributed_content.js b/src/features/tweaks/highlight_contributed_content.js index e9ead296e..1cc30982d 100644 --- a/src/features/tweaks/highlight_contributed_content.js +++ b/src/features/tweaks/highlight_contributed_content.js @@ -1,7 +1,7 @@ import { buildStyle } from '../../utils/interface.js'; export const styleElement = buildStyle(` -[data-is-contributed-content="true"] { +[data-is-contributed-content="true"]:not([data-xkit-themed]) { display: flow-root; background-color: rgb(var(--deprecated-accent), 0.07); } `); From 1787dec9db6b7562d096eb65831cbade35b33af1 Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 17 Sep 2024 11:37:19 -0700 Subject: [PATCH 5/5] darken (could be 0.15 too) --- src/features/tweaks/highlight_contributed_content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/tweaks/highlight_contributed_content.js b/src/features/tweaks/highlight_contributed_content.js index 1cc30982d..2177cc140 100644 --- a/src/features/tweaks/highlight_contributed_content.js +++ b/src/features/tweaks/highlight_contributed_content.js @@ -2,6 +2,6 @@ import { buildStyle } from '../../utils/interface.js'; export const styleElement = buildStyle(` [data-is-contributed-content="true"]:not([data-xkit-themed]) { - display: flow-root; background-color: rgb(var(--deprecated-accent), 0.07); + display: flow-root; background-color: rgb(var(--deprecated-accent), 0.1); } `);