1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 12:52:06 -04:00

feat(Settings): Add sidebar state management on categories

This commit is contained in:
purian23
2026-03-20 00:38:34 -04:00
parent 1e48976ae5
commit 959190dcbc
3 changed files with 18 additions and 1 deletions

View File

@@ -370,6 +370,7 @@ Rectangle {
if (_collapsedIds.indexOf(marker) < 0)
_collapsedIds = _collapsedIds + id + ",";
}
SessionData.setSettingsSidebarState(_expandedIds, _collapsedIds);
}
function _setAutoExpanded(id, value) {
@@ -538,6 +539,11 @@ Rectangle {
color: Theme.surfaceContainer
radius: Theme.cornerRadius
Component.onCompleted: {
root._expandedIds = SessionData.settingsSidebarExpandedIds;
root._collapsedIds = SessionData.settingsSidebarCollapsedIds;
}
StyledTextMetrics {
id: __m1
font.pixelSize: Theme.fontSizeMedium