Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.DS_Store
out/*
Binary file removed source/itbl-sdk/ItblFonts/SourceSansPro-Bold.ttf
Binary file not shown.
Binary file removed source/itbl-sdk/ItblFonts/SourceSansPro-Regular.ttf
Binary file not shown.
Binary file removed source/itbl-sdk/ItblImages/assets/poster_fhd.png
Binary file not shown.
Binary file removed source/itbl-sdk/ItblImages/assets/poster_hd.png
Binary file not shown.
Binary file removed source/itbl-sdk/ItblImages/assets/poster_sd.png
Binary file not shown.
Binary file removed source/itbl-sdk/ItblImages/assets/splash_fhd.png
Binary file not shown.
Binary file removed source/itbl-sdk/ItblImages/assets/splash_hd.png
Binary file not shown.
Binary file removed source/itbl-sdk/ItblImages/assets/splash_sd.png
Binary file not shown.
Binary file removed source/itbl-sdk/ItblImages/brand/logo.png
Binary file not shown.
Binary file removed source/itbl-sdk/ItblImages/focus/loader.png
Binary file not shown.
Binary file removed source/itbl-sdk/ItblImages/overlay/Overlay.png
Binary file not shown.
Binary file removed source/itbl-sdk/ItblImages/overlay/full_drop.png
Binary file not shown.
16 changes: 8 additions & 8 deletions source/itbl-sdk/components/ItblCustomDialog.brs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ sub setLocals()
m.focusedIndex = 0
m.defaultTheme = {
"backgroundColor" : "#1C1C1C"
"defaultBoldFont" : "pkg:/ItblFonts/SourceSansPro-Bold.ttf"
"defaultRegularFont": "pkg:/ItblFonts/SourceSansPro-Regular.ttf",
"defaultBoldFont" : "font:MediumBoldSystemFont"
"defaultRegularFont": "font:MediumSystemFont"
"buttonBorderColor": "0xFFFFFF"
"buttonColorFocused": "0xB30041"
"buttonTextColorFocused": "0xFFFFFF"
Expand Down Expand Up @@ -142,10 +142,10 @@ function CreateLabel(labelText as string, fontSize as integer, labelFont as obje
label.width = m.width
if labelFont <> invalid and FileExists(labelFont)
fontPath = labelFont
font = CreateFont(fontPath, fontSize)
else
fontPath = defaultFont
font = defaultFont
end if
font = CreateFont(fontPath, fontSize)
label.font = font
return label
end function
Expand All @@ -164,24 +164,24 @@ function CreateButton(id as string, item as object, fontSize as integer, dialogB
if buttonColorUnFocused = invalid or buttonColorUnFocused = "" then buttonColorUnFocused = m.defaultTheme.buttonColorUnFocused
if buttonTextColorFocused = invalid or buttonTextColorFocused = "" then buttonTextColorFocused = m.defaultTheme.buttonTextColorFocused
if buttonTextColorUnFocused = invalid or buttonTextColorUnFocused = "" then buttonTextColorUnFocused = m.defaultTheme.buttonTextColorUnFocused

if dialogButtonFont <> invalid and FileExists(dialogButtonFont)
fontPath = dialogButtonFont
font = CreateFont(fontPath, fontSize)
else
fontPath = defaultFont
font = defaultFont
end if
font = CreateFont(fontPath, fontSize)
borderData = {
"height" : m.buttonHeight,
"width" : m.width,
"size" : m.buttonBorderSize,
"buttonBorderColor" : buttonBorderColor,
"buttonColorFocused" : buttonColorFocused,
"buttonColorUnFocused" : buttonColorUnFocused,
"buttonTextColorUnFocused" : buttonTextColorFocused,
"buttonTextColorFocused" : buttonTextColorFocused,
"buttonTextColorUnFocused" : buttonTextColorUnFocused
"font" : font
}
print "borderData "borderData
button = CreateObject("roSGNode", "ItblButton")
button.id = id
button.buttonText = item.buttonText
Expand Down
1 change: 0 additions & 1 deletion source/itbl-sdk/manifest
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
title=Itbl SDK
subtitle=Itbl SDK
major_version=1
minor_version=1
build_version=0
Expand Down
Binary file modified test-app/source/itbl-sdk.zip
Binary file not shown.