diff --git a/docs/part-2-quickshell/config-structure-and-imports.md b/docs/part-2-quickshell/config-structure-and-imports.md index 9f92ed9..6ded736 100644 --- a/docs/part-2-quickshell/config-structure-and-imports.md +++ b/docs/part-2-quickshell/config-structure-and-imports.md @@ -68,6 +68,7 @@ The `import Quickshell` statement is the only one you must write. Everything els Split the shell from the previous chapter into three files. + ```qml // Theme.qml pragma Singleton @@ -85,6 +86,7 @@ QtObject { Create a panel component file: + ```qml // Panel.qml import QtQuick @@ -110,6 +112,7 @@ PanelWindow { And the root shell file: + ```qml // shell.qml import Quickshell @@ -127,6 +130,7 @@ Notice that `Panel.qml` is used as `Panel {}` in `shell.qml` without any import For components in subdirectories, use relative import paths. + ```qml // widgets/Clock.qml import QtQuick diff --git a/docs/part-2-quickshell/shell-qml-and-shellroot.md b/docs/part-2-quickshell/shell-qml-and-shellroot.md index fef3f6a..cc8fab4 100644 --- a/docs/part-2-quickshell/shell-qml-and-shellroot.md +++ b/docs/part-2-quickshell/shell-qml-and-shellroot.md @@ -76,6 +76,7 @@ The `settings` property (a `QuickshellSettings` object, read-only) is inherited Here is a shell with a theme declared on `ShellRoot` and consumed by two windows. + ```qml import Quickshell