Skip to content

Commit 5a2ad74

Browse files
committed
Update code docs
1 parent 3419fa0 commit 5a2ad74

14 files changed

Lines changed: 68 additions & 29 deletions

docs/components_Buttons_JRButtons.bs.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
m.focusAnimWidth = m.top.findNode("focusWidth")
1616
m.focusAnimHeight = m.top.findNode("focusHeight")
1717

18-
' Set button color to global
19-
m.focusRing.color = m.global.constants.colorPrimary
18+
applyTheme()
2019

2120
m.buttonCount = 0
2221
m.selectedFocusedIndex = 0
@@ -29,6 +28,12 @@
2928

3029
end sub
3130

31+
sub applyTheme()
32+
constants = m.global.constants
33+
m.menubg.blendColor = constants.colorBackgroundPrimary
34+
m.focusRing.color = constants.colorPrimary
35+
end sub
36+
3237
'
3338
' When Selected Index set, ensure it is the one Focused
3439
sub selectedIndexChanged()

docs/components_ItemGrid_GridItemSmall.bs.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
m.posterText = m.top.findNode("posterText")
99
initTitle()
1010
m.backdrop = m.top.findNode("backdrop")
11+
m.backdrop.blendColor = m.global.constants.colorBackgroundSecondary
1112

1213
m.itemPoster.observeField("loadStatus", "onPosterLoadStatusChanged")
1314

@@ -27,8 +28,6 @@
2728
end sub
2829

2930
sub itemContentChanged()
30-
m.backdrop.blendColor = "#101010"
31-
3231
m.title.visible = false
3332

3433
if isValid(m.topParent.showItemTitles)

docs/components_ItemGrid_ItemGridOptions.bs.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
sub init()
77
m.log = log.Logger("ItemGridOptions")
8+
m.top.findNode("dialogBackground").blendColor = m.global.constants.colorBackgroundSecondary
9+
810
m.buttons = m.top.findNode("buttons")
911
m.buttons.buttons = [tr("View"), tr("Sort"), tr("Filter")]
1012
m.buttons.selectedIndex = 1

docs/components_ItemGrid_MusicArtistGridItem.bs.html

Lines changed: 34 additions & 11 deletions
Large diffs are not rendered by default.

docs/components_ItemGrid_MusicLibraryView.bs.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,6 @@
684684

685685
if m.options.view <> m.view
686686
m.view = m.options.view
687-
m.top.view = m.view
688687
setLibraryDisplaySetting(m.top.parentItem.Id, "landing", m.view)
689688

690689
' Reset any filtering or search terms

docs/components_JRMessageDialog.bs.html

Lines changed: 2 additions & 0 deletions
Large diffs are not rendered by default.

docs/components_movies_MovieOptions.bs.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
m.videoNames = []
1818
m.audioNames = []
1919

20-
' Set button colors to global
21-
constants = m.global.constants
22-
m.top.findNode("videoMenu").focusBitmapBlendColor = constants.colorSecondary
23-
m.top.findNode("audioMenu").focusBitmapBlendColor = constants.colorSecondary
20+
applyTheme()
2421

2522
' Animation
2623
m.fadeAnim = m.top.findNode("fadeAnim")
@@ -32,6 +29,13 @@
3229

3330
end sub
3431

32+
sub applyTheme()
33+
constants = m.global.constants
34+
m.top.findNode("dialogBackground").blendColor = constants.colorBackgroundSecondary
35+
m.top.findNode("videoMenu").focusBitmapBlendColor = constants.colorPrimary
36+
m.top.findNode("audioMenu").focusBitmapBlendColor = constants.colorPrimary
37+
end sub
38+
3539
sub optionsSet()
3640
' Videos Tab
3741
if isValid(m.top.options.videos)

docs/components_settings_settings.bs.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
m.settingDetail = m.top.findNode("settingDetail")
1717
m.settingDesc = m.top.findNode("settingDesc")
1818
m.path = m.top.findNode("path")
19+
m.top.findNode("testRectangle").blendColor = m.global.constants.colorBackgroundSecondary
1920

2021
m.boolSetting = m.top.findNode("boolSetting")
2122
m.integerSetting = m.top.findNode("integerSetting")

docs/components_tvshows_TVListOptions.bs.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
m.videoNames = []
1919
m.audioNames = []
2020

21-
' Set button colors to global
22-
constants = m.global.constants
23-
m.top.findNode("videoMenu").focusBitmapBlendColor = constants.colorSecondary
24-
m.top.findNode("audioMenu").focusBitmapBlendColor = constants.colorSecondary
21+
applyTheme()
2522

2623
' Animation
2724
m.fadeAnim = m.top.findNode("fadeAnim")
@@ -33,6 +30,13 @@
3330

3431
end sub
3532

33+
sub applyTheme()
34+
constants = m.global.constants
35+
m.top.findNode("dialogBackground").blendColor = constants.colorBackgroundSecondary
36+
m.top.findNode("videoMenu").focusBitmapBlendColor = constants.colorPrimary
37+
m.top.findNode("audioMenu").focusBitmapBlendColor = constants.colorPrimary
38+
end sub
39+
3640
sub optionsSet()
3741
' Videos Tab
3842
if isValid(m.top.options.videos)

docs/data/search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)