You are not logged in.

#1 2026-03-27 16:12:23

ot o
Member
Registered: 2026-03-26
Posts: 2

[suggestion] Could we have a dark mode toggle for the online manpages?

The manual pages at https://man.archlinux.org/  get your theme automagically, which is cool but there is no way (in my knowledge) to toggle it on the site. I'd like to be able to have my browser on dark theme and read the man pages in light theme as I find the dark theme difficult to read :)

Offline

#2 2026-03-27 19:26:28

teckk
Member
Registered: 2013-02-21
Posts: 579

Re: [suggestion] Could we have a dark mode toggle for the online manpages?

You can toggle it. Depends on your web browser.
Looks like https://0x0.st is taking a break.

https://limewire.com/d/bMQpp#hQ1FJGlAqm

With webenginge for example, like above link:

QAction *darkMode = viewMenu->addAction(tr("&Dark Mode"));
connect(darkMode, &QAction::triggered, [this]() {
    m_profile->settings()->setAttribute(QWebEngineSettings::ForceDarkMode, true);
});

QAction *lightMode = viewMenu->addAction(tr("&Light Mode"));
connect(lightMode, &QAction::triggered, [this]() {
    m_profile->settings()->setAttribute(QWebEngineSettings::ForceDarkMode, false);
});

Offline

#3 2026-03-27 20:10:35

ot o
Member
Registered: 2026-03-26
Posts: 2

Re: [suggestion] Could we have a dark mode toggle for the online manpages?

I'm on firefox so im not sure how that translates to gecko but your reply gave me the courage to try out making a userscript.
And I managed to get something working!, on my machine at least :D

// ==UserScript==
// @name        light mode override
// @namespace   Violentmonkey Scripts
// @match       https://man.archlinux.org/*
// @icon        data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAG8SURBVDiNjZM/iBNBFMZ/MzvJunfmYFfwtjgbEzk4jhSKoNa2goiNaGXhCaYRDAiHNlprcYuVhaCNWIj4BxSusBJRhNtDRTF6nCkWPUQMJJe4s2PhBhIvE/yaebz3vY/fDIwwxmBTGMX7JwtSNRbmX9g8yrr9V+ccISYAa4CwEey6sbpDCJpFR6rZwJ19fLzyeZRP2pIni3LBU3IbGNVJs/M2nzXAU3K3pySeknTS7OTZZ+v+fwccuvPhqOuIV64Sy56S9LTxm796i6O8W95g3633xcBTDWOYSY35kRl8bYzwHNkqFWX5/rHy97EEgafqEwU54yqBMQRdnYnf2rCps1JHm0tjCeZuvpvaE7hrG+3U/9rq0dPDdK4jWlOuU1k9PfdtJMGmzupvkrbf+NntLz8A7vbnXW1KG530wkiCMIp3Ag1gez57lNSqR/LZbeBU3m8D5aRWTf4luDywDPBwoH6anwb4AtSHrhBGcRk4w7A+DdRv+8SAC9wbCgCuAoW8XgOuAR8HAprAdWAdqADLYRSfABDTSyt7gdfAE+BKUqu+ZIzCKD4ILAKHgXkxvbRyEXie1KrWHzcm6MAfcSib4f24CrwAAAAASUVORK5CYII=
// @grant       GM_addStyle
// @version     1.0
// @author      me :)
// @description 3/27/2026, 9:33:15 PM
// ==/UserScript==

GM_addStyle(`
    :root {
    color-scheme: light;
    }
`);

Offline

Board footer

Powered by FluxBB