diff --git a/README.md b/README.md index 34f826e7..2bf76a5b 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ To explore more about Enlightenment and their contributions to the open-source c ### Icons -Most icons were taken from [Lyra Icon Theme](https://github.com/yeyushengfan258/Lyra-icon-theme/tree/master/src), a beautiful icon theme for Linux desktops. +Most icons were taken from [Lyra Icon Theme](https://github.com/yeyushengfan258/Lyra-icon-theme/tree/master/src), a beautiful icon theme for Linux desktops. They ship as part of some of the bundled themes, in the `assets/images/icons/` directory of the theme pack. Several icons used in this project were adapted from icons sourced from [svgrepo](https://www.svgrepo.com/). diff --git a/docs/technical/theming/Theming.md b/docs/technical/theming/Theming.md index eb45aaae..9878a66d 100644 --- a/docs/technical/theming/Theming.md +++ b/docs/technical/theming/Theming.md @@ -162,6 +162,10 @@ Known page keys: | `shared/nav-menu` | The navigation menu of the theme. | | `shared/not-found` | The 404 page. | | `library/written-content-library/book-library/books/index` | The books browsing page. | +| `shared/file-system-browser` | The file system browser component shell. | +| `shared/file-system-browser/tree-node` | The tree view node of the file system browser. | +| `shared/file-system-browser/explorer-item` | The file system entry of the file system browser. | +| `shared/file-system-browser/path-segment` | The address bar path segment of the file system browser. | ### The Layout Template (shared/layout) @@ -229,6 +233,60 @@ The navigation template renders the menu of the active theme. Its model contains The navigation template is also best effort: when its template cannot be rendered, the application menu is used instead. +### The File System Browser Templates (shared/file-system-browser) + +The file system browser is a modal component hosted by the library editing page. Like the navigation menu, it is rendered from theme templates and is best effort: when its component template cannot be loaded, the application renders its own unstyled fallback. + +The component is split into a shell template and three sub templates, all provided as mirrored files under `templates/shared/file-system-browser/`. Because the sub template page keys live under the shell page key, the engine would resolve a missing sub template to the shell template by walking up the path scopes; the application detects this fallback and treats it as a missing sub template, so a theme can omit any sub template and keep the built-in rendering of that part. + +The shell template receives a model with the following fields: + +| Field | Content | +| --- | --- | +| `appBase` | The absolute base URL of the Web application, used to reference the application scripts, for example `{{appBase}}js/file-system-browser-dialog.js`. | +| `assetBase` | The base URL of the theme assets. | +| `iconBaseUrl` | The base URL of the file type icons of the theme, derived from `assetBase`. | +| `fileIconsUrl` | The URL of the file icons mapping of the theme, derived from `assetBase`. | +| `treeNodeTemplate` | The raw source of the `shared/file-system-browser/tree-node` template, inlined by the application into a `