Color adjustments
This commit is contained in:
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/asyncTask/asyncTask.bs"
|
||||||
import "pkg:/source/utils/StringUtils.bs"
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
import "DialogPalette.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
|
SetPalette()
|
||||||
m.urlLabel = m.top.findNode("urlLabel")
|
m.urlLabel = m.top.findNode("urlLabel")
|
||||||
m.qrCode = m.top.findNode("QrCodePoster")
|
m.qrCode = m.top.findNode("QrCodePoster")
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
horizAlign="right"
|
horizAlign="right"
|
||||||
width="400"
|
width="400"
|
||||||
extendToDialogEdge="false"
|
extendToDialogEdge="false"
|
||||||
showDivider="true">
|
showDivider="false">
|
||||||
<Label
|
<Label
|
||||||
text="Scan the QR Code"
|
text="Scan the QR Code"
|
||||||
horizAlign="center"
|
horizAlign="center"
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
import "DialogPalette.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
|
SetPalette()
|
||||||
m.top.observeField("buttonSelected", FuncName(CloseDialog))
|
m.top.observeField("buttonSelected", FuncName(CloseDialog))
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ function PopulateButtons() as void
|
|||||||
for each item in navBarItems
|
for each item in navBarItems
|
||||||
button = CreateObject("roSGNode", "IconButton")
|
button = CreateObject("roSGNode", "IconButton")
|
||||||
button.background = ColorUtils.HexToInt("242424")
|
button.background = ColorUtils.HexToInt("242424")
|
||||||
button.focusBackground = ColorUtils.HexToInt("ff1c30")
|
button.focusBackground = ColorUtils.HexToInt("FF1C30")
|
||||||
button.padding = 20
|
button.padding = 20
|
||||||
button.height = 50
|
button.height = 50
|
||||||
button.width = 90
|
button.width = 90
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
</Poster>
|
</Poster>
|
||||||
<Poster
|
<Poster
|
||||||
id="highlightPoster"
|
id="highlightPoster"
|
||||||
blendColor="0xFF0000"
|
blendColor="0xFF1C30"
|
||||||
width="164"
|
width="164"
|
||||||
height="94" />
|
height="94" />
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
function SetPlayerStyle()
|
function SetPlayerStyle()
|
||||||
m.top.trickPlayBar.filledBarBlendColor = "0xFF0000FF"
|
m.top.trickPlayBar.filledBarBlendColor = "0xFF1C30FF"
|
||||||
m.top.bufferingBar.filledBarBlendColor = "0xFF0000FF"
|
m.top.bufferingBar.filledBarBlendColor = "0xFF1C30FF"
|
||||||
m.top.retrievingBar.filledBarBlendColor = "0xFF0000FF"
|
m.top.retrievingBar.filledBarBlendColor = "0xFF1C30FF"
|
||||||
|
|
||||||
' Find the BusySpinner built into the Video node
|
' Find the BusySpinner built into the Video node
|
||||||
busySpinner = FindChildNodeOfType(m.top, "BusySpinner")
|
busySpinner = FindChildNodeOfType(m.top, "BusySpinner")
|
||||||
if busySpinner <> invalid
|
if busySpinner <> invalid
|
||||||
busySpinner.poster.blendColor = "0xFF0000FF"
|
busySpinner.poster.blendColor = "0xFF1C30FF"
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user