[
https://issues.apache.org/jira/browse/CB-10440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15119615#comment-15119615
]
ASF GitHub Bot commented on CB-10440:
-------------------------------------
Github user daserge commented on a diff in the pull request:
https://github.com/apache/cordova-docs/pull/466#discussion_r51000111
--- Diff: www/docs/en/dev/config_ref/index.md ---
@@ -167,6 +167,17 @@ all of them:
<preference name="BackgroundColor" value="0xff0000ff"/>
+ Applies to Windows.
+
+- CSS Color names are also supported:
+
+```
+<platform name="windows">
+ <preference name="BackgroundColor" value="turquoise"/>
+</platform>
+```
+ __NOTE__: `transparent` value will cause black/white background color in
case of Dark/Light theme accordingly.
+
Applies to Android and BlackBerry. Overrides CSS otherwise available
--- End diff --
Yes, thanks, I've just confused this notation with the plugin docs one
where we have a supported platforms list in the start and Quirks in the end.
> Add CSS color names support for BackgroundColor on Windows
> ----------------------------------------------------------
>
> Key: CB-10440
> URL: https://issues.apache.org/jira/browse/CB-10440
> Project: Apache Cordova
> Issue Type: Improvement
> Components: Windows
> Reporter: Sergey Shakhnazarov
> Assignee: Sergey Shakhnazarov
>
> 1. Create a new Cordova project
> 2. Open config.xml
> 3. Add <preference name="BackgroundColor" value="transparent"/> to the file.
> 4. Build for Windows platform
> Actual:
> APPX3037
> App manifest validation failed. Value '#transparent' of attribute
> '/Package/Applications/Application/m3:VisualElements/@BackgroundColor' is not
> a valid color name or color hexadecimal identifier.
>
> This is because the generated appmanifest has this line :
> <uap:VisualElements BackgroundColor="#transparent" ... />
> where it doesn't expect the value to be a named color value other than a
> hexadecimal color value.
> Expected:
> The appmanifest file can be generated correctly, with a value like:
> <uap:VisualElements BackgroundColor="transparent" ... />
> or
> <uap:VisualElements BackgroundColor="turquoise" ... />
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]