Discussion Forums  >  Self Hosted Control Panels

Replies: 8    Views: 84

Zjapp
Apple Fan
Profile
Posts: 33
Reg: Jun 30, 2011
Amsterdam
320
04/12/12 06:08 AM (13 years ago)

Screenbehavior

i do have a button screen. The buttons are loaded, including the images. However the background cannot be changed, the size cannot be changed. I could do this perfectly in BT, but in BT server it does not work. Any ideas?
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
04/12/12 07:57 AM (13 years ago)
It may be a bug in BT Server, and I had the same issue. The way I solved it was to modify the global theme for my app. Once I did that, I was able to change background and button sizes on my button screens. Not sure the relationship and why that worked, but it did.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/12/12 10:34 PM (13 years ago)
Hmm...haven't heard of this. If the background won't load...help me understand this: Are the setting in the Global Theme being ignored or are the settings in the Button Screen's Advanced Properties being ignored? Also, iOS or Android or both?
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
04/12/12 10:40 PM (13 years ago)
Setting in the button screen's advanced properties are ignored. This is for iOS (at least so far). If I modify the global theme, for instance add a default background or color, then the button settings work. Weird.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/12/12 11:05 PM (13 years ago)
Good info...looking. It's either... a) Control panel honors settings (remembers them) but BT_screen_menuButtons.m ignores them. b) Control panel does not honor them (forgets them) so BT_screen_menuButtons.m never gets them. c) Control panel honors settings, BT_screen_menuButtons.m tries to read them but fails. C seems logical. It's been awhile since I looked at the code for the button plugin, I'll re-visit it.
 
Zjapp
Apple Fan
Profile
Posts: 33
Reg: Jun 30, 2011
Amsterdam
320
like
04/12/12 11:18 PM (13 years ago)
I changed the Global Theme background but still no effect. It looks as if the settings are ignored.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/14/12 02:20 AM (13 years ago)
I think this is figured out. a) Look at your app's Configuration Data using the control panel. b) Look for the "BT_themes" part of the config data. It should look like this (it may have more properties)... {"itemId":"01DA97D11B6AC8C50FB0F3E", "itemType":"BT_theme", "backgroundColor":"#FFFFFF", more properties could be here...} but it could look like... {"backgroundColor":"#FFFFFF", more properties could be here...} The difference is huge. The first example has an itemId and an itemType. The second example does not. This is the problem. For a few weeks now, new v2.0 apps using the default theme have had this error. This is / was a typo on our part and has been fixed. But, if you're dealing with an app you've already created, you'll need to re-create a theme then set that theme as the apps theme (remove the original). Overriding the themes values in the screens advanced properties did not seem to fix this. @MGoBlue idea of modifying the existing theme could have worked but it's better to remove / replace the theme. Wowza, two entire days to find that thing!
 
Zjapp
Apple Fan
Profile
Posts: 33
Reg: Jun 30, 2011
Amsterdam
320
like
04/17/12 12:12 AM (13 years ago)
This is how the string looks like: "BT_themes":[{"itemId":"E1D1F37AFD7B07067930AC2", "itemType":"BT_theme", "itemNickname":"Default Theme", "splashScreenItemId":"", "statusBarStyle":"default", "navBarStyle":"solid", "toolbarStyle":"solid", "backgroundColor":"#FFFFFF"} Should this work?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/17/12 08:00 PM (13 years ago)
That should work. If it does not, check the JSON for the screen itself (lower in the JSON data). Make sure the screen itself does not also use a backgroundColor, if it does, the screens backgroundColor will override the themes background color.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.