Skip to content

Instantly share code, notes, and snippets.

View ggazzo's full-sized avatar
:octocat:
:)

Guilherme Gazzo ggazzo

:octocat:
:)
View GitHub Profile
@ggazzo
ggazzo / rocket_theme_dark.js
Created October 17, 2019 13:45 — forked from edvinassabaliauskas/rocket_theme_dark.js
Dark theme enabler for Rocket.Chat. Theme taken from https://github.com/0x0049/Rocket.Chat.Dark
var ThemeEnabler = {
isThemeOn: false,
controls: null,
onAppLoaded: async function() {
this.checkCookie()
do {
main {
--rcx-color-background-light: #1F2329;
--rcx-color-background-tint: #2F343D;
--rcx-color-surface-light: #1F2329;
--rcx-color-surface-tint: #2F343D;
--rcx-color-surface-neutral: #6C727A;
--rcx-color-surface-disabled: #2F343D;
--rcx-color-surface-hover: #6C727A;
--rcx-color-surface-selected: #9EA2A8;
import { useSyncExternalStore } from 'use-sync-external-store/shim';
import { appLayout } from '../../lib/appLayout';
import { blazePortals, useBlazePortals } from '../../lib/portals/blazePortals';
import PageLoading from './PageLoading';
import { useEscapeKeyStroke } from './hooks/useEscapeKeyStroke';
import { useGoogleTagManager } from './hooks/useGoogleTagManager';
export const AppLayout = (): ReactElement => {
const layout = useSyncExternalStore(appLayout.subscribe, appLayout.getSnapshot);