Color adjustments

This commit is contained in:
Brahim Hadriche committed 2023-12-20 16:59:15 -05:00
1 parent 64f5985aae
commit 482daf5e12
7 files changed
+23 -7

No files matched your search

@@ -0,0 +1,12 @@
function SetPalette()
palette = createObject("roSGNode", "RSGPalette")
palette.colors = {
DialogBackgroundColor: "#242424FF",
DialogFocusColor: "#CECECEFF",
DialogFocusItemColor: "#202020FF",
DialogSecondaryTextColor: "#F8F8F8FF",
DialogSecondaryItemColor: "0xFF1C30FF",
DialogTextColor: "#EEEEEEFF"
}
m.top.palette = palette
end function
@@ -2,8 +2,10 @@ import "pkg:/components/Screens/WebAppScreen/GenerateQrCodeTask.bs"
import "pkg:/source/asyncTask/asyncTask.bs"
import "pkg:/source/utils/StringUtils.bs"
import "pkg:/source/utils/Types.bs"
import "DialogPalette.bs"
function Init()
SetPalette()
m.urlLabel = m.top.findNode("urlLabel")
m.qrCode = m.top.findNode("QrCodePoster")
@@ -18,7 +18,7 @@
horizAlign="right"
width="400"
extendToDialogEdge="false"
showDivider="true">
showDivider="false">
<Label
text="Scan the QR Code"
horizAlign="center"
@@ -1,6 +1,8 @@
import "pkg:/source/utils/Types.bs"
import "DialogPalette.bs"
function Init()
SetPalette()
m.top.observeField("buttonSelected", FuncName(CloseDialog))
end function
+1 -1
View File
@@ -32,7 +32,7 @@ function PopulateButtons() as void
for each item in navBarItems
button = CreateObject("roSGNode", "IconButton")
button.background = ColorUtils.HexToInt("242424")
button.focusBackground = ColorUtils.HexToInt("ff1c30")
button.focusBackground = ColorUtils.HexToInt("FF1C30")
button.padding = 20
button.height = 50
button.width = 90
@@ -35,7 +35,7 @@
</Poster>
<Poster
id="highlightPoster"
blendColor="0xFF0000"
blendColor="0xFF1C30"
width="164"
height="94" />
@@ -1,12 +1,12 @@
function SetPlayerStyle()
m.top.trickPlayBar.filledBarBlendColor = "0xFF0000FF"
m.top.bufferingBar.filledBarBlendColor = "0xFF0000FF"
m.top.retrievingBar.filledBarBlendColor = "0xFF0000FF"
m.top.trickPlayBar.filledBarBlendColor = "0xFF1C30FF"
m.top.bufferingBar.filledBarBlendColor = "0xFF1C30FF"
m.top.retrievingBar.filledBarBlendColor = "0xFF1C30FF"
' Find the BusySpinner built into the Video node
busySpinner = FindChildNodeOfType(m.top, "BusySpinner")
if busySpinner <> invalid
busySpinner.poster.blendColor = "0xFF0000FF"
busySpinner.poster.blendColor = "0xFF1C30FF"
end if
end function