forked from Shinonome/dots-hyprland
sidebar: config option for expanding calendar by default (#1070)
This commit is contained in:
@@ -117,7 +117,10 @@ let configOptions = {
|
||||
},
|
||||
'quickToggles': {
|
||||
'order': ["wifi", "bluetooth", "nightlight", "gamemode", "idleinhibitor", "cloudflarewarp"],
|
||||
}
|
||||
},
|
||||
'calendar': {
|
||||
'expandByDefault': true,
|
||||
},
|
||||
},
|
||||
'search': {
|
||||
'enableFeatures': {
|
||||
|
||||
@@ -259,7 +259,7 @@ export const ModuleCalendar = () => {
|
||||
transition: 'slide_up_down',
|
||||
transitionDuration: userOptions.animations.durationLarge,
|
||||
setup: (stack) => Utils.timeout(1, () => {
|
||||
stack.shown = 'expanded';
|
||||
stack.shown = userOptions.sidebar.calendar.expandByDefault ? 'expanded' : 'collapsed';
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user