Hi! I'd like to implement showing and editing of the bg/fg color property of the entries, and I have some questions regarding that.
Drawing colored rows is straightforward, as it's just about adding a few lines to EntryModel::data (I have a patch already), but I'm not sure where would be the best place to allow editing of these properties. One obvious place is the "Properties" tab, but it's implemented using an abstraction (EditWidgetProperties class) to make it somewhat read-only. I could certainly add some getters/setters, but I don't like that solution much in this case...
Another option would be removing that abstraction class and use a QScopedPointer<Ui::EditWidgetProperties> directly in the EditEntryWidget class, as is the case with the remaining tabs (Advanced, History etc.), but that would add more logic to EditEntryWidget.
The third option is to place the color settings to another tab. But which? (Of course, the code bloat in EditEntryWidget would happen here as well.)
Then the second set of questions: KeePass allows quickly setting one of four predefined bg colors from an entry's context menu. Do we want to implement it that way in KeePassXR too? Using the same colors? Or do you have another idea how to handle it?
Thanks in advance for any input.