fix: remove a setting from desktop settings
This commit is contained in:
parent
8f4a66d679
commit
351fa2a1ea
4 changed files with 10 additions and 22 deletions
|
|
@ -151,7 +151,6 @@ def load_desktop_data(bootinfo):
|
|||
|
||||
bootinfo.desktop_icons = get_desktop_icons()
|
||||
bootinfo.workspaces = get_workspace_sidebar_items()
|
||||
bootinfo.app_name_style = frappe.db.get_single_value("Desktop Settings", "show_app_name_in_header")
|
||||
bootinfo.show_app_icons_as_folder = frappe.db.get_single_value(
|
||||
"Desktop Settings", "show_app_icons_as_folder"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,9 +7,7 @@
|
|||
"field_order": [
|
||||
"icon_style",
|
||||
"navbar_style",
|
||||
"show_app_icons_as_folder",
|
||||
"sidebar_section",
|
||||
"show_app_name_in_header"
|
||||
"show_app_icons_as_folder"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
|
|
@ -25,17 +23,6 @@
|
|||
"label": "Navbar Style",
|
||||
"options": "Awesomebar\nmacOS Launchpad\nBrand Logo\nBrand Logo with Search\nTimeless Launchpad\nApps with Search"
|
||||
},
|
||||
{
|
||||
"fieldname": "sidebar_section",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Sidebar"
|
||||
},
|
||||
{
|
||||
"fieldname": "show_app_name_in_header",
|
||||
"fieldtype": "Select",
|
||||
"label": "Show App Name in Header",
|
||||
"options": "Default\nTitle\nSubtitle"
|
||||
},
|
||||
{
|
||||
"default": "0",
|
||||
"fieldname": "show_app_icons_as_folder",
|
||||
|
|
@ -47,7 +34,7 @@
|
|||
"index_web_pages_for_search": 1,
|
||||
"issingle": 1,
|
||||
"links": [],
|
||||
"modified": "2025-11-11 00:23:53.552669",
|
||||
"modified": "2025-11-15 11:38:34.968344",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Desk",
|
||||
"name": "Desktop Settings",
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ class DesktopSettings(Document):
|
|||
"Apps with Search",
|
||||
]
|
||||
show_app_icons_as_folder: DF.Check
|
||||
show_app_name_in_header: DF.Literal["Default", "Title", "Subtitle"]
|
||||
# end: auto-generated types
|
||||
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
--desktop-modal-width: 508px;
|
||||
--desktop-modal-height: 448px;
|
||||
--folder-thumbnail-icon-height: 12px;
|
||||
--desktop-icon-dimension: 54px;
|
||||
}
|
||||
.desktop-wrapper{
|
||||
max-width: 100%;
|
||||
|
|
@ -74,8 +75,8 @@
|
|||
background-color: unset;
|
||||
}
|
||||
.icon-container img{
|
||||
width: 54px;
|
||||
height: 54px;
|
||||
width: var(--desktop-icon-dimension);
|
||||
height: var(--desktop-icon-dimension);
|
||||
}
|
||||
.icon-container{
|
||||
padding: 10px;
|
||||
|
|
@ -83,8 +84,8 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 54px;
|
||||
height: 54px;
|
||||
width: var(--desktop-icon-dimension);
|
||||
height: var(--desktop-icon-dimension);
|
||||
}
|
||||
.icon-container:has(.icon){
|
||||
background-color: var(--surface-gray-3);
|
||||
|
|
@ -145,11 +146,13 @@
|
|||
|
||||
.desktop-modal-body {
|
||||
width: var(--desktop-modal-width);
|
||||
height: var(--desktop-modal-height);
|
||||
padding: 23px 0px 23px 0px !important;
|
||||
& .icons{
|
||||
gap: 0px 0px;
|
||||
}
|
||||
.icon-container{
|
||||
min-height: var(--desktop-icon-dimension);
|
||||
}
|
||||
}
|
||||
.modal-heading{
|
||||
display: flex;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue