This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] MacOS Xamarin Forms does not support dark mode #8864
Labels
a/darkmode
e/7 🕖
7
in-progress
This issue has an associated pull request that may resolve it!
p/macOS
t/bug 🐛
Projects
Milestone
Comments
You have to manually implement this logic. To enable dark theme add this code
|
Thanks for the info. For anyone wanting to implement the location of the change is important, must happen after Init of XF i.e.
|
I have taken a quick look at this. I got the theme detection working and our own AppTheme concept pretty easily. We also have to remove hard-coded colors. The weird thing is though that some elements do update during runtime and other don't and I can't really put my finger on the why. I'll revisit later, just putting this here in case anyone might have an idea :) |
This was referenced May 5, 2020
myroot
pushed a commit
to myroot/Xamarin.Forms
that referenced
this issue
Aug 19, 2020
* Getting there * Some hardcoded color removal * Fix cell issues * Update PageRenderer.cs fixes xamarin#8864 fixes xamarin#3777
sung-su
pushed a commit
to sung-su/Xamarin.Forms
that referenced
this issue
Aug 20, 2020
* Getting there * Some hardcoded color removal * Fix cell issues * Update PageRenderer.cs fixes xamarin#8864 fixes xamarin#3777
sung-su
pushed a commit
to sung-su/Xamarin.Forms
that referenced
this issue
Aug 20, 2020
* Getting there * Some hardcoded color removal * Fix cell issues * Update PageRenderer.cs fixes xamarin#8864 fixes xamarin#3777
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
a/darkmode
e/7 🕖
7
in-progress
This issue has an associated pull request that may resolve it!
p/macOS
t/bug 🐛
Description
Out of box XF does not support Dark Mode
Steps to Reproduce
Steps to convert to XF
Change AppDelegate to ...
Change MainClass to
static void Main(string[] args)
{
NSApplication.Init();
NSApplication.SharedApplication.Delegate = new AppDelegate();
NSApplication.Main(args);
}
Remove story board reference from info.plist
Expected Behavior
Window should be in dark mode
Actual Behavior
Window is not in dark mode, always in light mode.
Basic Information
Run the macOS app before converting to XF and confirm that the Window shows in dark mode.
Screenshots
Reproduction Link
The text was updated successfully, but these errors were encountered: