dsh-im-ops/plugin-src/client/channels/qq/styles.js
oliver d53daf7d26 Rebrand as dsh-im-ops fork of xmanrui/dsh-im@4.9.1.
Keep all IM channels; rename package/cordis id for local profile install without colliding with the community plugin. Document fork intent in FORK.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 15:02:54 +08:00

19 lines
729 B
JavaScript

export const QQ_STYLE_ID = 'xmanrui-dsh-im-qq-settings';
const CSS = String.raw`
.dqq-page { --ddt-accent: #1677ff; --ddt-accent-deep: #0958d9; --ddt-accent-wash: #eaf3ff; }
.dqq-avatar, .dqq-brand { color: #fff; background: #1677ff; }
.dqq-avatar svg, .dqq-brand svg { display: block; }
`;
export function installQqStyles() {
if (typeof document === 'undefined') return () => {};
const existing = document.querySelector(`style[data-plugin-css="${QQ_STYLE_ID}"]`);
if (existing) return () => {};
const style = document.createElement('style');
style.dataset.plugin = 'dsh-im-ops';
style.dataset.pluginCss = QQ_STYLE_ID;
style.textContent = CSS;
document.head.appendChild(style);
return () => style.remove();
}