{"id":2880,"date":"2023-05-16T19:42:39","date_gmt":"2023-05-17T02:42:39","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=2880"},"modified":"2023-06-23T19:36:01","modified_gmt":"2023-06-24T02:36:01","slug":"add-dark-mode","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/add-dark-mode\/","title":{"rendered":"Add Dark Mode"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Add Variables <\/h2>\n\n\n\n<p>App OnStart: create a boolean to store Light or Dark mode Set(Dark_Mode, false)<br>create a variable to store Dark Color for fill Set(Color_Dark_Mode, RGBA(50,86,160,1)<br>create a variable to store Light Color for fill Set(Color_Light_Mode, Color.White)<br>create a variable to store Dark Color for Fonts Set(Color_Dark_Font, Color.White) <br>create a variable to store Light Color for fill Set(Color_Light_Font, RGBA(50,86,160,1)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"> toggle for dark mode<\/h2>\n\n\n\n<p>add a toggle to set dark mode boolean to control light or dark mode <br>rename to toggle dark mode<br>Uncheck set (dark mode, true)<br>on Uncheck Set (dark mode, false)<br>default dark mode boolean<\/p>\n\n\n\n<p>Set the following parameters<br>false text dark<br>true text light<br>handle fill if (dark mode, color _light mode, color _dark _mode)<br>color If(dark mode, color _light mode, color _dark _mode)<br>size 10<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">set screen background<\/h2>\n\n\n\n<p>set screen background to match dark mode<br>fill if (dark mode, color _dark_mode, color _light_mode)<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">add color mode to components<\/h2>\n\n\n\n<p> Add custom property set the following parameters<br>display name : color mode<br>Description dark or light mode<br>property type: input <br>data type: Boolean <br>raise on reset: true <\/p>\n\n\n\n<p> Add components set fill background to match color mode<br>add custom properties for color dark mode and color light mode to match the power apps colors or set component to dark or light color<br>set fill to if (component _name.color_mode, color _dark _mode, color _light _mode)<br>for labels set color and fill were appropriate<\/p>\n\n\n\n<p>EX: class label<br>for a class label <br>set Color: if (component _name. color _mode, color _ light _mode, color _purple)<br>set Fill: if (component _name. color _mode, color _purple, color _ Light _mode)<br>*color _purple = RGBA(109, 49, 162, 1)<br> <\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add Variables App OnStart: create a boolean to store Light or Dark mode Set(Dark_Mode, false)create a variable to store Dark Color for fill Set(Color_Dark_Mode, RGBA(50,86,160,1)create a variable to store Light Color for fill Set(Color_Light_Mode, Color.White)create a variable to store Dark Color for Fonts Set(Color_Dark_Font, Color.White) create a variable to store Light Color for fill Set(Color_Light_Font, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/add-dark-mode\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Add Dark Mode&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2880","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=2880"}],"version-history":[{"count":3,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2880\/revisions"}],"predecessor-version":[{"id":2893,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2880\/revisions\/2893"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=2880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}