Zettelkasten-Team / Zettelkasten

Zettelkasten-Developer-Builds
http://zettelkasten.danielluedecke.de
GNU General Public License v3.0
730 stars 92 forks source link

Refactor UI Initialization to Separate Class #504

Closed RalfBarkow closed 3 months ago

RalfBarkow commented 4 months ago

We currently have UI initialization tasks, such as installing FlatLafs Light and Dark themes, mixed within the initDefaultSettingsIfMissing method of the SettingsInitializer class. To adhere to the principle of separation of concerns and improve code maintainability, we should refactor this by extracting UI initialization tasks into a separate class.

Proposed Changes:

  1. Create a new class named UIInitializer responsible for UI initialization tasks.
  2. Move the installation of FlatLafs themes into the UIInitializer class.
  3. Modify initDefaultSettingsIfMissing in the SettingsInitializer class to call the appropriate method in UIInitializer for UI initialization tasks.

Benefits:

Additional Notes:

RalfBarkow commented 4 months ago

See Refactor Initialization Logic for Default Settings #503

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.