Bug 121174 - Allow per-module LibreOffice UI themes
Summary: Allow per-module LibreOffice UI themes
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
6.2.0.0.alpha1+
Hardware: All All
: medium enhancement
Assignee: Heiko Tietze
URL:
Whiteboard: target:26.8.0 inReleaseNotes:26.8 tar...
Keywords:
: 125443 130268 133736 151816 (view as bug list)
Depends on:
Blocks: LibreOffice-Themes
  Show dependency treegraph
 
Reported: 2018-11-05 13:41 UTC by andreas_k
Modified: 2026-06-30 11:50 UTC (History)
11 users (show)

See Also:
Crash report or crash signature:


Attachments
Screencast with patch applied (112.80 KB, image/png)
2026-05-21 12:09 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andreas_k 2018-11-05 13:41:25 UTC
Now Firefox Personas settings are for all LibO Apps the same. Can it be extend that in writer header_writer.png and in calc header_calc.png will be shown?

So if there is an _writer, _calc, _impress, _draw, ... file for an specific application this specific fill will be open and if there is no specific _section header.png will be loaded.

thanks
Comment 1 Heiko Tietze 2018-11-05 16:22:27 UTC
Makes sense to have a bluish persona for Writer and some greenish for Calc etc. But most themes will be generic and the feature should not add additional effort/data. So ideally we have header* (general) and/or header_writer* (specific, overrides generic) options.
Comment 2 andreas_k 2019-04-08 22:48:33 UTC
can I do something to make it available? I can extend an existing personas theme with the app specific files so it's better to understood.
Comment 3 Heiko Tietze 2020-02-19 09:36:21 UTC
*** Bug 130268 has been marked as a duplicate of this bug. ***
Comment 4 stragu 2024-12-26 14:52:57 UTC
*** Bug 133736 has been marked as a duplicate of this bug. ***
Comment 5 stragu 2024-12-26 14:53:36 UTC
*** Bug 151816 has been marked as a duplicate of this bug. ***
Comment 6 V Stuart Foote 2024-12-26 16:07:22 UTC
@Sahil, expect this would require further expansion of the new theme framework to identify module specific color assignment (beyond current 25.2 Light/Dark/System).

Feasible? Obviously not 'til at least 25.8 or even out to 26.2
Comment 7 Heiko Tietze 2025-01-06 10:27:40 UTC
An alternative approach could be to invent the wheel again and owner-draw the titlebar (and hide the one from the OS).
Comment 8 V Stuart Foote 2025-01-06 12:29:04 UTC
(In reply to Heiko Tietze from comment #7)
> An alternative approach could be to invent the wheel again and owner-draw
> the titlebar (and hide the one from the OS).

The whole CSD approach of bug 113388 and dupes, possible but kind of heavy support tail cross os/DE vcl backends.
Comment 9 Sahil Gautam (Collabora) 2025-03-14 08:26:27 UTC
(In reply to V Stuart Foote from comment #6)
> @Sahil, expect this would require further expansion of the new theme
> framework to identify module specific color assignment (beyond current 25.2
> Light/Dark/System).
> 
> Feasible? Obviously not 'til at least 25.8 or even out to 26.2

Might hack something during the allotropia hackweek (happening from 7-12 April 2025)
Comment 10 waynejwoww 2025-03-14 14:54:51 UTC
i second the idea of per-app themes (if i got the idea right).

being able to apply a different theme to each (writer, calc, draw) would be a nice touch. a certain competing product just has made my brain wired to associate word processors with the color blue, calculation apps with green and so on...

distinct color schemes would also help to identify the right app at a first glance when they're displayed in a expose-like overview, for example.
Comment 11 Heiko Tietze 2026-05-20 06:29:19 UTC
*** Bug 125443 has been marked as a duplicate of this bug. ***
Comment 12 Heiko Tietze 2026-05-21 12:09:49 UTC
Created attachment 207184 [details]
Screencast with patch applied
Comment 13 Heiko Tietze 2026-05-21 12:13:48 UTC
(In reply to Heiko Tietze from comment #12)
> Created attachment 207184 [details]
> Screencast with patch applied

Patch incoming... it shades the background of Notebookbars with module-specific
colors, if Tools > Options > Appearance > [x] Enable application theming is enabled. The patch adds four *NOTEBOOKBARCOLOR colors at the UI theming section with default colors taken from the LibreOffice palette.

To deal with light/dark system themes, the colors are merged with the background at a transparency of 150 by default, which can be changed via the expert setting common::Misc::NotebookbarColorTransparency. Use 0 for full module color and 255 for full background color (ie. theming is enabled and *NOTEBOOKBARCOLOR are set but wont be visible).

MacOS is excluded since it draws the whole Notebookbar and has no extra colors for the background.
Comment 14 Commit Notification 2026-05-22 05:15:40 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/7877351d362f2c30b5ec1b0ee8746290dca2db99

Resolves tdf#121174 - Module-specific theme colors

It will be available in 26.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 15 Commit Notification 2026-06-21 06:21:31 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/5085f73af2761fe9949f5f570fd8da75f31c2086

Related tdf#121174 - Enable Themeing by default

It will be available in 27.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 16 Commit Notification 2026-06-22 06:04:57 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "libreoffice-26-8":

https://git.libreoffice.org/core/commit/186aa81feb201446b9ce7c15ad31ec866af22896

Related tdf#121174 - Enable Themeing by default

It will be available in 26.8.0.0.beta2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 17 Commit Notification 2026-06-22 08:42:16 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "libreoffice-26-8":

https://git.libreoffice.org/core/commit/cf3ec75761d4d8d625b2e5a0bb48c656b67c2fbe

Revert "Related tdf#121174 - Enable Themeing by default"

It will be available in 26.8.0.0.beta2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 18 Commit Notification 2026-06-22 08:42:19 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/8176e65e56baa68916e3e2eaa5f3f8d62b55d539

Revert "Related tdf#121174 - Enable Themeing by default"

It will be available in 27.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 19 Commit Notification 2026-06-30 08:04:53 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/08f5d410a474badedeaa3fbabaea9b6f564d1b83

Related tdf#121174 - Make module-specific colos non-configurable

It will be available in 27.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 20 Commit Notification 2026-06-30 11:43:41 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "libreoffice-26-8":

https://git.libreoffice.org/core/commit/a927410f1579e0347a108857e96b1741adbf3c46

Related tdf#121174 - Make module-specific colos non-configurable

It will be available in 26.8.0.0.beta2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 21 Heiko Tietze 2026-06-30 11:50:50 UTC
The last patch enables the module-specific background color independently from whether theming is active. This option leads to too many issues so we better keep it disabled. Since the feedback on the colors was positive I decided to implement it as hard-coded values (color themes do not change it) and to have it always enables. People who don't like it need to change the expert setting for NotebookbarColorTransparency to 255. I also enabled it on macOS.