Enhance shelves settings visual appeal

This commit is contained in:
MustafaJafar 2023-10-31 18:06:06 +02:00
parent 711976e685
commit dd070c6fcc
3 changed files with 26 additions and 14 deletions

View file

@ -7,22 +7,30 @@
"object_type": {
"type": "dict",
"children": [
{
"type": "label",
"label": "Option 1: Add a .shelf file"
},
{
"type": "path",
"key": "shelf_set_source_path",
"label": "Shelf Set Path",
"multipath": false,
"multiplatform": true
},
{
"type": "label",
"label": "<strong>OR</strong> Option 2: Add Shelf Set Name and Shelves Definitions"
},
{
"type": "text",
"key": "shelf_set_name",
"label": "Shelf Set Name"
},
{
"type": "path",
"key": "shelf_set_source_path",
"label": "Shelf Set Path (optional)",
"multipath": false,
"multiplatform": true
},
{
"type": "list",
"key": "shelf_definition",
"label": "Shelves",
"label": "Shelves Definitions",
"use_label_wrap": true,
"object_type": {
"type": "dict",

View file

@ -24,14 +24,18 @@ class ShelfDefinitionModel(BaseSettingsModel):
class ShelvesModel(BaseSettingsModel):
_layout = "expanded"
shelf_set_name: str = Field("", title="Shelfs set name")
shelf_set_source_path: MultiplatformPathModel = Field(
default_factory=MultiplatformPathModel,
title="Shelf Set Path (optional)"
title="Shelf Set Path",
section="Option 1: Add a .shelf file."
)
shelf_set_name: str = Field(
"",
title="Shelf Set Name",
section=("OR Option 2: Add Shelf Set Name "
"and Shelves Definitions.")
)
shelf_definition: list[ShelfDefinitionModel] = Field(
default_factory=list,
title="Shelf Definitions"
title="Shelves Definitions"
)

View file

@ -1 +1 @@
__version__ = "0.2.6"
__version__ = "0.2.7"