Table of contents
TOC
Collapse the table of content
Expand the table of content

Start + theme settings: Enabling dark mode

Last Updated: 12/12/2016

OEMs can choose to specify whether the dark mode is applied.

Constraints: FirstVariationOnly

Instructions:

  1. Create a customization answer file using the contents shown in the following code sample.

    <?xml version="1.0" encoding="utf-8" ?>  
    <ImageCustomizations xmlns="http://schemas.microsoft.com/embedded/2004/10/ImageUpdate"  
                         Name="DefaultBackgroundColor"  
                         Description="Specifies whether the dark mode is applied."
                         Owner=""  
                         OwnerType="OEM"> 
    
      <Static>  
    
        <Settings Path="Theme">  
          <Setting Name="DefaultBackgroundColor" Value="" /> 
       </Settings>  
    
      </Static>
    
    </ImageCustomizations>
    
  2. Specify an Owner.

  3. Set DefaultBackgroundColor to specify a mode. The possible values are:

    ValueDescription

    0 or 'Light'

    Enables light mode.

    1 or 'Dark'

    Enables dark mode. This is the default OS setting.

Testing:

  1. Flash an image containing this customization to a phone.

  2. Verify that the phone is using the correct mode.

Send comments about this topic to Microsoft

© 2017 Microsoft