The following settings were configured on this App - see docs
⬇️ Result | Source ➡️
-
App.Settings.PrimaryColor
#8BC34AD9
-
App.Settings.SecondaryColor
#00BCD4B3
-
App.Settings.QrForegroundColor
#000000
-
App.Settings.QrBackgroundColor
#FFFFFF
-
App.Settings.QrDimension
200
@inherits Custom.Hybrid.RazorTyped
@*
Important: In Typed code, we recommend .Attribute(...), .Int(...).
It ensures it's safe for use in attributes or as a definite integer.
*@
<ul>
<li>
@{ var colorPri = App.Settings.Attribute("PrimaryColor"); }
<div style="background-color: @colorPri" class="color-box"></div>
App.Settings.PrimaryColor <br>
@colorPri
</li>
<li>
@{ var colorSec = App.Settings.Attribute("SecondaryColor"); }
<div style="background-color: @colorSec" class="color-box"></div>
App.Settings.SecondaryColor <br>
@colorSec
</li>
<li>
@{ var colorQrF = App.Settings.Attribute("QrForegroundColor"); }
<div style="background-color: @colorQrF" class="color-box"></div>
App.Settings.QrForegroundColor <br>
@colorQrF
</li>
<li>
@{ var colorQrB = App.Settings.Attribute("QrBackgroundColor"); }
<div style="background-color: @colorQrB" class="color-box"></div>
App.Settings.QrBackgroundColor <br>
@colorQrB
</li>
<li>
App.Settings.QrDimension <br>
@App.Settings.Int("QrDimension")
</li>
</ul>
<style> .color-box { width: 20px; height: 20px; float: left; } </style>