Cadenzo Active Member Licensed User Longtime User Oct 30, 2024 #1 How do you think about a color management system for designer and runtime? 1.In the designer (or somewhere else) we could define some colors. Not only for one form/page but for the whole app/project. Possible in two versions for DarkTheme and LightTheme. -primary: #FFECEFF1 -secondary: #FFECEFF1 -background: #FF263238 -color1: #FF263238 -color2: #FF263238 -color3: #FF263238 2. In runtime we could use an color-object to get this values -Text1.TextColor = Colors.primary -Label2.Color = Colors.color3 3. In designer we could write in a property field like "TextColor" instead the value just the resource key like ".color2" This would be very flexible, same for B4A/B4i and give better results in app design.
How do you think about a color management system for designer and runtime? 1.In the designer (or somewhere else) we could define some colors. Not only for one form/page but for the whole app/project. Possible in two versions for DarkTheme and LightTheme. -primary: #FFECEFF1 -secondary: #FFECEFF1 -background: #FF263238 -color1: #FF263238 -color2: #FF263238 -color3: #FF263238 2. In runtime we could use an color-object to get this values -Text1.TextColor = Colors.primary -Label2.Color = Colors.color3 3. In designer we could write in a property field like "TextColor" instead the value just the resource key like ".color2" This would be very flexible, same for B4A/B4i and give better results in app design.
aeric Expert Licensed User Longtime User Oct 30, 2024 #2 I agree. Currently the Designer Script does not allow setting Colors. This is a good idea so we can see the dynamic changes in real time.
I agree. Currently the Designer Script does not allow setting Colors. This is a good idea so we can see the dynamic changes in real time.
Erel B4X founder Staff member Licensed User Longtime User Oct 31, 2024 #4 This can be implemented with DSE: https://www.b4x.com/android/forum/threads/b4x-dse-designer-script-extensions.141312 And specifically the last post.
This can be implemented with DSE: https://www.b4x.com/android/forum/threads/b4x-dse-designer-script-extensions.141312 And specifically the last post.