docs: add driver argument guideline

This commit is contained in:
Travis Abendshien
2026-07-24 14:51:57 -07:00
parent 9e05bf26d8
commit 43adc77b95
+1
View File
@@ -50,6 +50,7 @@ TagStudio provides an [EditorConfig](https://editorconfig.org/#example-file) fil
### :material-tag: TagStudio Systems
- Translation keys can be accessed via bracket notation (e.g. `Translations["translation_key"]`) or with the `Translations.format()` method when a value needs to be passed to a placeholder in the translation.
- Avoid passing around the `QtDriver` class where possible. Instead, pass only the necessary components such as the `Library` and `GlobalSettings` instances.
- Use HTML-like tags inside strings over explicit stylesheets where possible. The `Style` class provides several handy methods for formatting text with these.
- Use the `format` method in the stylesheets class to format text headers.