From 43adc77b95c5aa650dbc9941d2cbc66fbc9dcc78 Mon Sep 17 00:00:00 2001 From: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> Date: Fri, 24 Jul 2026 14:51:57 -0700 Subject: [PATCH] docs: add driver argument guideline --- docs/style.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/style.md b/docs/style.md index 336ad05f..5f8b9001 100644 --- a/docs/style.md +++ b/docs/style.md @@ -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.