Bug 168489 - button that inverts the colours of the displayed document with a single click (.uno:ChangeTheme)
Summary: button that inverts the colours of the displayed document with a single click...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.4.7.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LibreOffice-Themes
  Show dependency treegraph
 
Reported: 2025-09-20 08:57 UTC by Jérôme
Modified: 2025-09-30 19:43 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jérôme 2025-09-20 08:57:11 UTC
Most of the time, I want to use a dark view of a document. For that, I'm currently using the "Dark" colour scheme.

However, many persons use a specific colour for font and/or background. This make their document unreadable with the "Dark" colour scheme. For those documents, I have to browse the preferences in order to choose back a usual light colour scheme.

Instead of choosing the "Dark" colour, I would like to choose a feature which just invert the colours. With only one click, I could activate or deactivate this feature.

Compared to Dark colour scheme, the inverted colours could be activated most of the time while reading or redacting. This is just for laying out the document that I would deactivate the inverted colours in order to see the chosen colours (most of the time for white background on white paper).

A few pdf readers offer this feature (Evince, Sumatrapdf, ...).
Comment 1 V Stuart Foote 2025-09-20 11:18:21 UTC
Beleive the 'Dark Mode' with tt. "Toggle between light and dark modes"-- .uno:ChangeTheme, is available via customize dialog and does exactly this.

Control can be assigned to menu, keyboard or toolbar. As tb button or menu its icon motif is a Waxing crescent/First quarter moon - ☽ (U+263D)

Please check if that UNO functions as needed.
Comment 2 V Stuart Foote 2025-09-20 11:20:23 UTC
Also, a 7.4.7 release is haplessly out of date, with minimal Dark mode support.

Please move to a 25.8 install or even test nightly of master against a 26.2.0
Comment 3 Jérôme 2025-09-28 20:06:37 UTC
I confirm the feature is missing in 25.2.6.2 version (most recent snap package).

Version: 25.2.6.2 (X86_64) / LibreOffice Community
Build ID: 0b720ef5e7394b1db407719d7da75840109af140
CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 4 V Stuart Foote 2025-09-28 23:49:46 UTC
Works for me as expected on the 25.8 release. Please update.

Just checked and when the 'Dark Mode' UNO control button is added to each module standard toolbar, it does in fact toggle the UI between Light and Dark modes.

Tools -> Options -> Appearance should be set as follows:

'Enable application theming' -- checked enabled
'Use white document background' -- unchecked disabled (won't work otherwise).

Start with LibreOffice Themes listbox selection as 'Automatic'

The 'Dark Mode' UNO will follow os/DE provided color scheme for Light or Dark. Automatic is bypassed. That is the Tools -> Options -> Appearance will show Light or Dark only as UI is toggled.

Reset to 'Automatic' and restart LibreOffice to get out of the Dark Mode toggle cycle.

Probably should not try to also add an Appearance theme OXT extension and expect sane toggle. Just works with default os/DE provided system color scheme.

@Sahil, anything more to add?

Version: 25.8.1.1 (X86_64)
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 28; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 5 Jérôme 2025-09-29 18:38:48 UTC
Is there a toggle button in toolbar that inverts the document colours without changing the application theming (keep light or dark UI) ?
Comment 6 V Stuart Foote 2025-09-29 20:46:53 UTC
(In reply to Jérôme from comment #5)
> Is there a toggle button in toolbar that inverts the document colours
> without changing the application theming (keep light or dark UI) ?

No, just the Light or Dark of the os/DE color scheme toggling of the appearance theme--which should solve issue of comment 0.

And otherwise you'd need to apply different Appearance themes (probably needing document save and LO restart to fully apply).
Comment 7 Jérôme 2025-09-30 19:43:47 UTC
(In reply to V Stuart Foote from comment #6)
> (In reply to Jérôme from comment #5)
> > Is there a toggle button in toolbar that inverts the document colours
> > without changing the application theming (keep light or dark UI) ?
> 
> No, just the Light or Dark of the os/DE color scheme toggling of the
> appearance theme--which should solve issue of comment 0.

Then the light dark scheme toggling would not solve the current issue.

I would like to invert only the document colours without changing the window colours scheme, without changing the icons themes.