Issue with Dark Mode

Discussions for the Apple Mac OS builds of Pale Moon

Moderator: dbsoft

Forum rules
Important note:
The old Mac OS versions of Pale Moon were provided by various people and not official or in any way organized. Please make sure you check the date of topic threads to know if the topic is current or relevant! We are using this board for both old discussions and new development of Pale Moon on Mac.

Any specific bugs you find that don't have their own topic yet: please make a new topic; one bug per topic please to keep things organized.
User avatar
asimsiddiqui
New to the forum
New to the forum
Posts: 1
Joined: 2024-04-10, 13:13

Issue with Dark Mode

Unread post by asimsiddiqui » 2024-04-10, 13:28

Hello,

My Macbook is updated to the latest OS (Ventura 13.6.5) and I have the native Dark Mode activated.
I installed the latest version of Pale Moon (33.0.2 - 64 bit).
I have the theme Dark Moon 2.7.2 installed.
I am also using the following two extensions together:
AutoPageColor 2.2.1
Swarth 1.1.0

The issue is that the top bar on Pale Moon is white in color. I have tried to tweak all settings but I cannot find a way to change it to dark. All the other applications on my Mac have a black bar on the top. Another issue I just noticed is that when I try to attach a file with this message, the dialog box that pops up is white too. A screenshot is attached for both issues.

Any help would be really appreciated.

Thank you.
You do not have the required permissions to view the files attached to this post.

User avatar
somdcomputerguy
Lunatic
Lunatic
Posts: 403
Joined: 2014-02-23, 17:25
Location: Greenbrier County, West Virginia

Re: Issue with Dark Mode

Unread post by somdcomputerguy » 2024-04-10, 17:01

I would suggest you disable those two extensions and see if either or both contribute to this issue. Also, try another one of the dark themes available, with and without those extensions. Good luck.
:cool: -bruce /* somdcomputerguy.com */
'If you change the way you look at things, the things you look at change.'

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1579
Joined: 2012-02-09, 23:35
Location: United Kingdom

Re: Issue with Dark Mode

Unread post by Lootyhoof » 2024-04-10, 17:46

I'm pretty sure that no theme can style the titlebar on a Mac (even the default). Though I'm not sure how it reacts with the native dark mode - I don't use macOS.

Goodydino
Keeps coming back
Keeps coming back
Posts: 886
Joined: 2017-10-10, 21:20

Re: Issue with Dark Mode

Unread post by Goodydino » 2024-04-10, 18:58

I am using the dark mode with MacOS. Some applications do not have a title bar, some (like Pale Moon and SeaMonkey) have a white title bar, and both LibreWolf with its dark theme and Vivaldi with one of the dark themes have black title bars. I really do not control the colour of the title bars. I think it depends on the application.

User avatar
RealityRipple
Keeps coming back
Keeps coming back
Posts: 842
Joined: 2018-05-17, 02:34
Location: Los Berros Canyon, California

Re: Issue with Dark Mode

Unread post by RealityRipple » 2024-04-10, 20:27

A cursory search online indicates the Mac UI expects a window to have "titlebarAppearsTransparent" set to true and then to set the background color of the window to the color you wish for the titlebar to be. A comment on StackOverflow seems to hint that a hidden theme name, "vibrantDark", can be used to force the text color to white. Looking at the current nsNativethemeCocoa.mm file, seems like UXP is setting a named NSAppearance of "Aqua" on Yosemite+.

dbsoft
Project Contributor
Project Contributor
Posts: 490
Joined: 2020-02-21, 17:35

Re: Issue with Dark Mode

Unread post by dbsoft » 2024-04-16, 20:26

We currently force Aqua (light) appearance in both the code and in the Info.plist.

The reason for this is when building with these newer SDKs that support dark mode, foreground and background colors get inverted. The Pale Moon MacOS theme does not take this into account and thus in dark mode Pale Moon becomes unusable because you can't read the text with the light theme.

I have it on my long term TODO list to allow it to function in dark mode, but it will require a rework to the theme... or a second dark mode compatible MacOS theme.

Goodydino
Keeps coming back
Keeps coming back
Posts: 886
Joined: 2017-10-10, 21:20

Re: Issue with Dark Mode

Unread post by Goodydino » 2024-06-03, 19:09

dbsoft wrote:
2024-04-16, 20:26
We currently force Aqua (light) appearance in both the code and in the Info.plist.

The reason for this is when building with these newer SDKs that support dark mode, foreground and background colors get inverted. The Pale Moon MacOS theme does not take this into account and thus in dark mode Pale Moon becomes unusable because you can't read the text with the light theme.

I have it on my long term TODO list to allow it to function in dark mode, but it will require a rework to the theme... or a second dark mode compatible MacOS theme.
I have noticed that the default theme of Pale Moon uses light system colours, while I use the dark theme for the system interface. Buttons in dialog boxes are hard to read with white text on a light background because sometimes the colours used by the operating system are coming through. This does not make much sense to me. Why not either let all the colours of the shell come through or block them all?
This is one reason why I use third-party themes which control all the colours.