T ToolboxZX Member Licensed User Longtime User Aug 30, 2017 #1 Is there a method available to change the font color displayed for one or both of the text items that appear with the slide images? If so, what is the proper syntax to do it. Thank you.
Is there a method available to change the font color displayed for one or both of the text items that appear with the slide images? If so, what is the proper syntax to do it. Thank you.
alwaysbusy Expert Licensed User Longtime User Aug 31, 2017 #2 You can change the color using an ImageSlidertheme (it is a global property, so the same colors are used for every slide in your image slider). Creating the theme: B4X: theme.AddImageSliderTheme("myslider") theme.ImageSlider("myslider").TitleForeColor = ABM.COLOR_LIME theme.ImageSlider("myslider").TitleForeColorIntensity = ABM.INTENSITY_LIGHTEN2 theme.ImageSlider("myslider").SubTitleForeColor = ABM.COLOR_GREEN theme.ImageSlider("myslider").SubTitleForeColorIntensity = ABM.INTENSITY_LIGHTEN2 ... Using the theme: B4X: Dim slider As ABMImageSlider slider.Initialize(page, "slider", "myslider") ... Upvote 0
You can change the color using an ImageSlidertheme (it is a global property, so the same colors are used for every slide in your image slider). Creating the theme: B4X: theme.AddImageSliderTheme("myslider") theme.ImageSlider("myslider").TitleForeColor = ABM.COLOR_LIME theme.ImageSlider("myslider").TitleForeColorIntensity = ABM.INTENSITY_LIGHTEN2 theme.ImageSlider("myslider").SubTitleForeColor = ABM.COLOR_GREEN theme.ImageSlider("myslider").SubTitleForeColorIntensity = ABM.INTENSITY_LIGHTEN2 ... Using the theme: B4X: Dim slider As ABMImageSlider slider.Initialize(page, "slider", "myslider") ...
T ToolboxZX Member Licensed User Longtime User Aug 31, 2017 #3 Thank you that is exactly what I was looking for and works great! I assume since I do not see an attribute for it, that there is no way to change the size of the text, correct? Upvote 0
Thank you that is exactly what I was looking for and works great! I assume since I do not see an attribute for it, that there is no way to change the size of the text, correct?
alwaysbusy Expert Licensed User Longtime User Aug 31, 2017 #4 Yes, you are correct. All font sizes are regulated by Materialize CSS. Upvote 0