Hello so, I am making a block where tinydb is mostly used for loading the color, the tinydb tag "mode" is to check, if tinydb "mode" = 1 it means in light mode. if 0 it will output for darkmode version.
I have hard time optimizing since the buton to label 1. Since i have to do 30 labels, and each of the have different tag in their save db, (what I meant is ex: label 1 = tinydb tag = C1, label 2 = tinydb tag = C2 etc..). Is there anyway to make it more optimize? please and thank you, and also ask me anything if you are confused bout what I said or meant!
Use the everyLabel block, which provides a list of all your labels, you can then iterate over this list, using property setters from the anyLabel component blocks.
So in my project, each Label have a different tinydb save file where each of the were save in different tag. Ex : Label 1 is save in tag "C1", Label 2 is save in tag "C2", Lavel 3 is save in tag "C3", and etc... Is there anyway to optimize that using list?
Oh yeah fyi that each label save in tag are the backgroundcolors.