问题
My system gives the user to change the color and font of several items on multiple forms.
I need a way to save these fonts and colors. My system uses sql so is there a way to save them there or is there another way to save them.
回答1:
You can create a second table named users_prefereces with 2 column: users and preferences.
preferences will be a json string where you save the user preferences. in that way you can have a struct with all the user preferences like a string. when you get the preference string decode that string and you will have the struct.
user_id the id of the usr
second way:
add a column in the users tables alway with json values.
来源:https://stackoverflow.com/questions/18870256/saving-fonts-and-colors-delphi