Open CarolusMagnuss opened 2 years ago
Themes can be a bit finicky with Access; the Addin has also changed how Themes import/export and apply to UI elements (controls/forms/reports...).
A few low-level fruit items to check:
Extract Theme Files
to OFF
.vcs-options.json
file to the repo; this will ensure all developers are using the same options settings for consistency.modRepair.RepairColorDefinitionBlocks
on your database followed by a FullExport
.@CarolusMagnuss - Another thing you might check into is the setup of a default database. Allen Brown has a great article on creating default forms, reports and databases that very possibly may solve the issue you are encountering by ensuring that you and your coworker are using a default database with the same configuration.
@joyfullservice Thanks a lot I think you are on the right track.
The way I see it, the AddIn Creates a completely new Database from the source files, using the default settings for databases on the local machine.
This includes the default properties for each control type, which you can set by clicking on the control type in the Toolbox and having the properties Window open.
I can set these defaults for a control type within a database but i haven't figured out how to save these defaults so that they are used persistently in all new databases.
Do you have any ideas, where these settings are stored?
At least based on my experience there is a bug in Access with the handling of UseTheme
property. The property is reset to False if a form is created using LoadFromText
function or a new instance of the form is created using the New operator (i.e., Set newForm = New Form_XXX
).
As a workaround I restore the UseTheme
property in the import hook of the addin, but assuming that this bug affects most versions of Access, it would be nice if the addon would handle this automatically (I’m using version 16.0.4266.1001/64bit). Btw. this has been already discussed in #170 and #41.
Discussed in https://github.com/joyfullservice/msaccess-vcs-integration/discussions/312
After getting more Feedback from my partner, its not just the UseTheme Property which gets set to false, All related Format Properties are also set to a Default. Colour when Button is pushed is white for instance.
I tried exporting Themes with the database, but it didn't help
Any ideas`?